subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | merreborn | cjy2kk4 | <|soss|><|sot|>Something snarky for you folks to post.<|eot|><|sost|>http://www.reddit.com/r/awesomephp is a thing. As long as I moderate it, it will not change from its state today :)<|eost|><|sor|>I thought to myself, "okay, if someone was to seriously make a subreddit like that, not as a joke, what would it contain... | 21 |
lolphp | ladaghini | cjy8ifw | <|soss|><|sot|>Something snarky for you folks to post.<|eot|><|sost|>http://www.reddit.com/r/awesomephp is a thing. As long as I moderate it, it will not change from its state today :)<|eost|><|sor|>I think there's room for [one submission](http://elabs.se.s3.amazonaws.com/uploads/picture/file/81/normal_php_-_the_good... | 19 |
lolphp | cfreak2399 | cjyajp7 | <|soss|><|sot|>Something snarky for you folks to post.<|eot|><|sost|>http://www.reddit.com/r/awesomephp is a thing. As long as I moderate it, it will not change from its state today :)<|eost|><|sor|>This post http://www.reddit.com/r/PHP/comments/s345g/php_sucks_but_i_like_it/
Reads like people stuck in an abusive rel... | 13 |
lolphp | gavintlgold | cjxuk92 | <|soss|><|sot|>Something snarky for you folks to post.<|eot|><|sost|>http://www.reddit.com/r/awesomephp is a thing. As long as I moderate it, it will not change from its state today :)<|eost|><|sor|>You should modify the CSS so it looks like the page doesn't exist :P<|eor|><|eoss|><|endoftext|> | 9 |
lolphp | totes_meta_bot | cjyaxk2 | <|soss|><|sot|>Something snarky for you folks to post.<|eot|><|sost|>http://www.reddit.com/r/awesomephp is a thing. As long as I moderate it, it will not change from its state today :)<|eost|><|sor|>This thread has been linked to from elsewhere on reddit.
- [/r/programmingcirclejerk] [PHP deserves no better](http:/... | 7 |
lolphp | VeXCe | cjy9fhy | <|soss|><|sot|>Something snarky for you folks to post.<|eot|><|sost|>http://www.reddit.com/r/awesomephp is a thing. As long as I moderate it, it will not change from its state today :)<|eost|><|sor|>My god, what have I done?!<|eor|><|eoss|><|endoftext|> | 6 |
lolphp | tdammers | cjynld9 | <|soss|><|sot|>Something snarky for you folks to post.<|eot|><|sost|>http://www.reddit.com/r/awesomephp is a thing. As long as I moderate it, it will not change from its state today :)<|eost|><|sor|>This post http://www.reddit.com/r/PHP/comments/s345g/php_sucks_but_i_like_it/
Reads like people stuck in an abusive rel... | 6 |
lolphp | Banane9 | cjxvgld | <|soss|><|sot|>Something snarky for you folks to post.<|eot|><|sost|>http://www.reddit.com/r/awesomephp is a thing. As long as I moderate it, it will not change from its state today :)<|eost|><|sor|>So does /r/wowphp now :)<|eor|><|eoss|><|endoftext|> | 5 |
lolphp | PlasmaSheep | 26culy | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|eols|><|endoftext|> | 31 |
lolphp | andsens | chpwgtg | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 28 |
lolphp | allthediamonds | chpz655 | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 28 |
lolphp | ahruss | chq0w6t | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>How did someone write this page and not realize everything about arrays is terrible?
> The above will appear to have two keys named 'AA', although one of them is actually named ... | 21 |
lolphp | DoctorWaluigiTime | chpzzqn | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 16 |
lolphp | allthediamonds | chqb3we | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 14 |
lolphp | allthediamonds | chq55vk | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 11 |
lolphp | smog_alado | chq9zsr | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 11 |
lolphp | skillet-thief | chq1mzd | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 9 |
lolphp | vita10gy | chrneg3 | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>If you make fun of PHP, you're kind of an asshole.
If you defend PHP, you're kind of an asshole.<|eor|><|sor|>Welcome to the internet, my friend.<|eor|><|sor|>It's almost as if it... | 7 |
lolphp | captainramen | chr1gst | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 7 |
lolphp | gu3st12 | chpxwex | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 6 |
lolphp | smog_alado | chr3e4n | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 6 |
lolphp | djsumdog | ci3nb8b | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>How did someone write this page and not realize everything about arrays is terrible?
> The above will appear to have two keys named 'AA', although one of them is actually named ... | 5 |
lolphp | nahguri | chvqpax | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 5 |
lolphp | gu3st12 | chq99f3 | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 5 |
lolphp | captainramen | chr1lwh | <|sols|><|sot|>"An array in PHP is actually an ordered map."<|eot|><|sol|>http://www.php.net/manual/en/language.types.array.php<|eol|><|sor|>> This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, a... | 5 |
lolphp | frezik | 1dhw9t | <|soss|><|sot|>How the phpBB MODX format must have been made<|eot|><|sost|>Another example of fractal badness, where an original bad decision somewhere causes further bad decisions to work around the problems encountered, leading to yet more bad decisions, etc.
The MODX format is used by phpBB for extending the system... | 30 |
lolphp | duskwuff | c9qhuot | <|soss|><|sot|>How the phpBB MODX format must have been made<|eot|><|sost|>Another example of fractal badness, where an original bad decision somewhere causes further bad decisions to work around the problems encountered, leading to yet more bad decisions, etc.
The MODX format is used by phpBB for extending the system... | 10 |
lolphp | infinull | c9qnikc | <|soss|><|sot|>How the phpBB MODX format must have been made<|eot|><|sost|>Another example of fractal badness, where an original bad decision somewhere causes further bad decisions to work around the problems encountered, leading to yet more bad decisions, etc.
The MODX format is used by phpBB for extending the system... | 8 |
lolphp | jerenept | c9r32br | <|soss|><|sot|>How the phpBB MODX format must have been made<|eot|><|sost|>Another example of fractal badness, where an original bad decision somewhere causes further bad decisions to work around the problems encountered, leading to yet more bad decisions, etc.
The MODX format is used by phpBB for extending the system... | 7 |
lolphp | frezik | c9qi5w2 | <|soss|><|sot|>How the phpBB MODX format must have been made<|eot|><|sost|>Another example of fractal badness, where an original bad decision somewhere causes further bad decisions to work around the problems encountered, leading to yet more bad decisions, etc.
The MODX format is used by phpBB for extending the system... | 6 |
lolphp | frezik | c9qnv6x | <|soss|><|sot|>How the phpBB MODX format must have been made<|eot|><|sost|>Another example of fractal badness, where an original bad decision somewhere causes further bad decisions to work around the problems encountered, leading to yet more bad decisions, etc.
The MODX format is used by phpBB for extending the system... | 6 |
lolphp | duskwuff | c9qic3n | <|soss|><|sot|>How the phpBB MODX format must have been made<|eot|><|sost|>Another example of fractal badness, where an original bad decision somewhere causes further bad decisions to work around the problems encountered, leading to yet more bad decisions, etc.
The MODX format is used by phpBB for extending the system... | 5 |
lolphp | bugybunny | 19zhuv | <|sols|><|sot|>This awesome yet simple and pragmatic PHP library performs an addition of two numbers (xpost r/programming)<|eot|><|sol|>https://github.com/Herzult/SimplePHPEasyPlus<|eol|><|eols|><|endoftext|> | 28 |
lolphp | merreborn | c8sujz4 | <|sols|><|sot|>This awesome yet simple and pragmatic PHP library performs an addition of two numbers (xpost r/programming)<|eot|><|sol|>https://github.com/Herzult/SimplePHPEasyPlus<|eol|><|sor|>This should look pretty familiar to java developers<|eor|><|eols|><|endoftext|> | 21 |
lolphp | french_toste | c8suov7 | <|sols|><|sot|>This awesome yet simple and pragmatic PHP library performs an addition of two numbers (xpost r/programming)<|eot|><|sol|>https://github.com/Herzult/SimplePHPEasyPlus<|eol|><|sor|>I dunno, without an AbstractSingletonProxyFactoryBean class I don't think I can use this for my Enterprise XML UX stories.<|eo... | 13 |
lolphp | polish_niceguy | c8sqd35 | <|sols|><|sot|>This awesome yet simple and pragmatic PHP library performs an addition of two numbers (xpost r/programming)<|eot|><|sol|>https://github.com/Herzult/SimplePHPEasyPlus<|eol|><|sor|>Damn, it took me at least five minutes to find the actual adding code. And it's done with array_sum(). Awesome.<|eor|><|eols|>... | 11 |
lolphp | kingguru | c8u4ny8 | <|sols|><|sot|>This awesome yet simple and pragmatic PHP library performs an addition of two numbers (xpost r/programming)<|eot|><|sol|>https://github.com/Herzult/SimplePHPEasyPlus<|eol|><|sor|>I dunno, without an AbstractSingletonProxyFactoryBean class I don't think I can use this for my Enterprise XML UX stories.<|eo... | 6 |
lolphp | davvblack | c9rsp6y | <|sols|><|sot|>This awesome yet simple and pragmatic PHP library performs an addition of two numbers (xpost r/programming)<|eot|><|sol|>https://github.com/Herzult/SimplePHPEasyPlus<|eol|><|sor|>This should look pretty familiar to java developers<|eor|><|sor|>I don't see any FactoryFactorys though.<|eor|><|eols|><|endof... | 5 |
lolphp | vytah | 18nra2 | <|sols|><|sot|>Indexing nulls gives no errors and no warnings<|eot|><|sol|>https://bugs.php.net/bug.php?id=64194<|eol|><|eols|><|endoftext|> | 35 |
lolphp | postmodest | c8gq96f | <|sols|><|sot|>Indexing nulls gives no errors and no warnings<|eot|><|sol|>https://bugs.php.net/bug.php?id=64194<|eol|><|soopr|> $ php -r 'error_reporting(E_ALL | E_STRICT); $a=null; var_dump($a["a"]);'
NULL
It's the same for PHP 5.3 and 5.4, both numeric and string indexes.
Also:
$ php -r 'error_reportin... | 7 |
lolphp | huf | c8gnfm4 | <|sols|><|sot|>Indexing nulls gives no errors and no warnings<|eot|><|sol|>https://bugs.php.net/bug.php?id=64194<|eol|><|soopr|> $ php -r 'error_reporting(E_ALL | E_STRICT); $a=null; var_dump($a["a"]);'
NULL
It's the same for PHP 5.3 and 5.4, both numeric and string indexes.
Also:
$ php -r 'error_reportin... | 5 |
lolphp | adrenal8 | rscpj | <|sols|><|sot|>PHP's unicode support is basically like playing minesweeper where all the string functions are bombs<|eot|><|sol|>http://www.phpwact.org/php/i18n/utf-8<|eol|><|eols|><|endoftext|> | 35 |
lolphp | Rhomboid | c48ivdh | <|sols|><|sot|>PHP's unicode support is basically like playing minesweeper where all the string functions are bombs<|eot|><|sol|>http://www.phpwact.org/php/i18n/utf-8<|eol|><|sor|>It's not just PHP. Bolting UTF onto 8 bit OSes is a fucking mess.<|eor|><|sor|>It's a good thing that modern OSes are all at least 32-bit, a... | 11 |
lolphp | Rhomboid | c48sm90 | <|sols|><|sot|>PHP's unicode support is basically like playing minesweeper where all the string functions are bombs<|eot|><|sol|>http://www.phpwact.org/php/i18n/utf-8<|eol|><|sor|>Are you being serious ?
Hard to tell in PHP forums.
<|eor|><|sor|>You tell us -- you were the one that brought up this "8 bit OS" nonsense ... | 7 |
lolphp | ThisIsADogHello | c48fgfa | <|sols|><|sot|>PHP's unicode support is basically like playing minesweeper where all the string functions are bombs<|eot|><|sol|>http://www.phpwact.org/php/i18n/utf-8<|eol|><|sor|>It's not just PHP. Bolting UTF onto 8 bit OSes is a fucking mess.<|eor|><|sor|>It's a good thing that modern OSes are all at least 32-bit, a... | 5 |
lolphp | Rhomboid | c48sddj | <|sols|><|sot|>PHP's unicode support is basically like playing minesweeper where all the string functions are bombs<|eot|><|sol|>http://www.phpwact.org/php/i18n/utf-8<|eol|><|sor|>It's not just PHP. Bolting UTF onto 8 bit OSes is a fucking mess.<|eor|><|sor|>It's a good thing that modern OSes are all at least 32-bit, a... | 5 |
lolphp | iheartrms | fjlr3e | <|sols|><|sot|>The report notes, however, that "PHPs relative number of vulnerabilities has risen significantly, while theres no indication of the same rise in popularity."<|eot|><|sol|>https://www.theregister.co.uk/2020/03/13/open_source_bugs/<|eol|><|eols|><|endoftext|> | 31 |
lolphp | colshrapnel | fkno2py | <|sols|><|sot|>The report notes, however, that "PHPs relative number of vulnerabilities has risen significantly, while theres no indication of the same rise in popularity."<|eot|><|sol|>https://www.theregister.co.uk/2020/03/13/open_source_bugs/<|eol|><|sor|>Theregister refers to whitesource, whitesource (wtf is whiteso... | 40 |
lolphp | CarnivorousSociety | fknobbn | <|sols|><|sot|>The report notes, however, that "PHPs relative number of vulnerabilities has risen significantly, while theres no indication of the same rise in popularity."<|eot|><|sol|>https://www.theregister.co.uk/2020/03/13/open_source_bugs/<|eol|><|sor|>Hasn't the number of people looking for them gone up? And the ... | 8 |
lolphp | bart2019 | fkps5vl | <|sols|><|sot|>The report notes, however, that "PHPs relative number of vulnerabilities has risen significantly, while theres no indication of the same rise in popularity."<|eot|><|sol|>https://www.theregister.co.uk/2020/03/13/open_source_bugs/<|eol|><|sor|>Hasn't the number of people looking for them gone up? And the ... | 7 |
lolphp | supermario182 | fkqy5e0 | <|sols|><|sot|>The report notes, however, that "PHPs relative number of vulnerabilities has risen significantly, while theres no indication of the same rise in popularity."<|eot|><|sol|>https://www.theregister.co.uk/2020/03/13/open_source_bugs/<|eol|><|sor|>Php started Corina virus<|eor|><|eols|><|endoftext|> | 5 |
lolphp | koebelin | fkqkusy | <|sols|><|sot|>The report notes, however, that "PHPs relative number of vulnerabilities has risen significantly, while theres no indication of the same rise in popularity."<|eot|><|sol|>https://www.theregister.co.uk/2020/03/13/open_source_bugs/<|eol|><|sor|>PHP is in a downward spiral, its out of the top10 soon. I thin... | 5 |
lolphp | FormerPHPDeveloper | beaxm2 | <|soss|><|sot|>Short closures are being voted!<|eot|><|sost|>What people wanted:
1. Real lexical scope (that is, like in ES)
2. Nice enough syntax
​
What people are getting:
\- No lexical scope, variables are imported by value
\- Of all the possibilities mentioned in the RFC the most god awful syntax is be... | 28 |
lolphp | the_alias_of_andrea | el5epat | <|soss|><|sot|>Short closures are being voted!<|eot|><|sost|>What people wanted:
1. Real lexical scope (that is, like in ES)
2. Nice enough syntax
​
What people are getting:
\- No lexical scope, variables are imported by value
\- Of all the possibilities mentioned in the RFC the most god awful syntax is be... | 11 |
lolphp | FormerPHPDeveloper | el5aacb | <|soss|><|sot|>Short closures are being voted!<|eot|><|sost|>What people wanted:
1. Real lexical scope (that is, like in ES)
2. Nice enough syntax
​
What people are getting:
\- No lexical scope, variables are imported by value
\- Of all the possibilities mentioned in the RFC the most god awful syntax is be... | 9 |
lolphp | barubary | el77cdz | <|soss|><|sot|>Short closures are being voted!<|eot|><|sost|>What people wanted:
1. Real lexical scope (that is, like in ES)
2. Nice enough syntax
​
What people are getting:
\- No lexical scope, variables are imported by value
\- Of all the possibilities mentioned in the RFC the most god awful syntax is be... | 8 |
lolphp | infinull | el54lrd | <|soss|><|sot|>Short closures are being voted!<|eot|><|sost|>What people wanted:
1. Real lexical scope (that is, like in ES)
2. Nice enough syntax
​
What people are getting:
\- No lexical scope, variables are imported by value
\- Of all the possibilities mentioned in the RFC the most god awful syntax is be... | 7 |
lolphp | Takeoded | 9hf1yy | <|sols|><|sot|>base_convert: invalid characters are silently ignored, because, y'know, an error would be inconvenient.<|eot|><|sol|>https://secure.php.net/manual/en/function.base-convert.php<|eol|><|eols|><|endoftext|> | 29 |
lolphp | yawkat | e6bxv0z | <|sols|><|sot|>base_convert: invalid characters are silently ignored, because, y'know, an error would be inconvenient.<|eot|><|sol|>https://secure.php.net/manual/en/function.base-convert.php<|eol|><|sor|>[deleted]<|eor|><|sor|>You shouldn't design your method around every possible use case. An error would have been mor... | 16 |
lolphp | shitcanz | 8k1dt5 | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|eols|><|endoftext|> | 32 |
lolphp | CornPlanter | dz4rmxg | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>It drives me mad every time I think about it... as a self tought programmer, 15 years ago I started learning programming from PHP and I used to t... | 25 |
lolphp | Dereleased | dz4gfy3 | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>Did you just start using PHP a week ago?<|eor|><|eols|><|endoftext|> | 20 |
lolphp | barubary | dz4lcm1 | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>But some of the functions on that page *are* namespaced. For example, *Ds*, *MongoDB*, *pht* and *Swoole* are top-level namespaces. Are you stupi... | 20 |
lolphp | barubary | dz6d7d3 | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>I guess the biggest lol in this mess is that PHP had the chance to actually fix this issue back when 5.3 was released. With the introduction of n... | 14 |
lolphp | coredumperror | dz5if7e | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>Did you just start using PHP a week ago?<|eor|><|sor|>Just because its something you learn to accept about PHP with use doesnt mean its not terri... | 13 |
lolphp | shitcanz | dz6dd3m | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>Did you just start using PHP a week ago?<|eor|><|sor|>Just because its something you learn to accept about PHP with use doesnt mean its not terri... | 11 |
lolphp | shitcanz | dz6f3os | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>Did you just start using PHP a week ago?<|eor|><|sor|>Just because its something you learn to accept about PHP with use doesnt mean its not terri... | 11 |
lolphp | shitcanz | dz6dyfx | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>Did you just start using PHP a week ago?<|eor|><|sor|>Just because its something you learn to accept about PHP with use doesnt mean its not terri... | 8 |
lolphp | carlos_vini | dz6s0dl | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>I guess the biggest lol in this mess is that PHP had the chance to actually fix this issue back when 5.3 was released. With the introduction of n... | 7 |
lolphp | cleeder | dz76ov4 | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>This is something I _really_ wish PHP would address, but alas it's not meant to be.
It's not like it would be particularly difficult. It would b... | 6 |
lolphp | cleeder | dz57ev1 | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>This is something I _really_ wish PHP would address, but alas it's not meant to be.
It's not like it would be particularly difficult. It would b... | 5 |
lolphp | cleeder | dz75utr | <|sols|><|sot|>Why bother with packages/modules when every function can live in the global namespace?<|eot|><|sol|>http://php.net/manual/en/indexes.functions.php<|eol|><|sor|>This is something I _really_ wish PHP would address, but alas it's not meant to be.
It's not like it would be particularly difficult. It would b... | 5 |
lolphp | human_bacon | 6qo7ve | <|sols|><|sot|>PHP's probabilistic session management<|eot|><|sol|>http://php.net/manual/en/session.configuration.php#ini.session.gc-divisor<|eol|><|eols|><|endoftext|> | 32 |
lolphp | iglocska | dkzlq0d | <|sols|><|sot|>PHP's probabilistic session management<|eot|><|sol|>http://php.net/manual/en/session.configuration.php#ini.session.gc-divisor<|eol|><|sor|>It's not the session management, just the garbage collection of expired sessions that goes through this. The idea is simple, if you want to run garbage collection (so... | 19 |
lolphp | duskwuff | dkz9ptq | <|sols|><|sot|>PHP's probabilistic session management<|eot|><|sol|>http://php.net/manual/en/session.configuration.php#ini.session.gc-divisor<|eol|><|sor|>...*why*?<|eor|><|soopr|>This is how cron is done in PHP because it doesn't have a long running process, cron jobs will be when there is an incoming request. WordPres... | 16 |
lolphp | iglocska | dl02f75 | <|sols|><|sot|>PHP's probabilistic session management<|eot|><|sol|>http://php.net/manual/en/session.configuration.php#ini.session.gc-divisor<|eol|><|sor|>It's not the session management, just the garbage collection of expired sessions that goes through this. The idea is simple, if you want to run garbage collection (so... | 14 |
lolphp | NickUnrelatedToPost | dkz1w0q | <|sols|><|sot|>PHP's probabilistic session management<|eot|><|sol|>http://php.net/manual/en/session.configuration.php#ini.session.gc-divisor<|eol|><|sor|>...*why*?<|eor|><|soopr|>This is how cron is done in PHP because it doesn't have a long running process, cron jobs will be when there is an incoming request. WordPres... | 14 |
lolphp | Tiquortoo | dkzc174 | <|sols|><|sot|>PHP's probabilistic session management<|eot|><|sol|>http://php.net/manual/en/session.configuration.php#ini.session.gc-divisor<|eol|><|sor|>...*why*?<|eor|><|soopr|>This is how cron is done in PHP because it doesn't have a long running process, cron jobs will be when there is an incoming request. WordPres... | 10 |
lolphp | SituationSoap | dkyriid | <|sols|><|sot|>PHP's probabilistic session management<|eot|><|sol|>http://php.net/manual/en/session.configuration.php#ini.session.gc-divisor<|eol|><|sor|>...*why*?<|eor|><|eols|><|endoftext|> | 9 |
lolphp | the_alias_of_andrea | 3tqufh | <|sols|><|sot|>The mysteries of properties<|eot|><|sol|>https://3v4l.org/hfUIS<|eol|><|eols|><|endoftext|> | 32 |
lolphp | FlyLo11 | cx9jdlh | <|sols|><|sot|>The mysteries of properties<|eot|><|sol|>https://3v4l.org/hfUIS<|eol|><|sor|>Interestingly enough, property_exists() still returns true after the unset()
https://3v4l.org/h8DUC
I hope this won't lead to a new function real_unset()<|eor|><|eols|><|endoftext|> | 17 |
lolphp | Dylan16807 | cx96swd | <|sols|><|sot|>The mysteries of properties<|eot|><|sol|>https://3v4l.org/hfUIS<|eol|><|sor|>What is the output you were expecting?<|eor|><|sor|>If you add a property with a new name, it's public. But even though the old x was supposedly "destroyed", it's making the new x private.<|eor|><|eols|><|endoftext|> | 12 |
lolphp | ThraShErDDoS | cx97ud2 | <|sols|><|sot|>The mysteries of properties<|eot|><|sol|>https://3v4l.org/hfUIS<|eol|><|sor|>What is the output you were expecting?<|eor|><|sor|>If you add a property with a new name, it's public. But even though the old x was supposedly "destroyed", it's making the new x private.<|eor|><|sor|>I changed it to protected... | 12 |
lolphp | the_alias_of_andrea | cx9a4e3 | <|sols|><|sot|>The mysteries of properties<|eot|><|sol|>https://3v4l.org/hfUIS<|eol|><|sor|>What is the output you were expecting?<|eor|><|sor|>If you add a property with a new name, it's public. But even though the old x was supposedly "destroyed", it's making the new x private.<|eor|><|soopr|>You can understand why ... | 6 |
lolphp | iheartrms | 30amcf | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|eols|><|endoftext|> | 35 |
lolphp | pilif | cpqtgat | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Our code is full of generators, closures, maps, filters and many other high-order functions. Even though we... | 21 |
lolphp | tapesmith | cpqvj2s | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Look, I don't like PHP. If it was a choice between getting fired and doing full-time PHP development, I'd p... | 20 |
lolphp | smog_alado | cpqx5mv | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>> Anonymous functions reign supreme in JavaScript, and PHP programmers who don't also know JavaScript are r... | 20 |
lolphp | ma-int | cpqtexm | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Wait, I have to declare what variables my function closes over? Shouldn't the PHP compiler be able to....oh... | 17 |
lolphp | HiddenKrypt | cpr98cn | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>> Anonymous functions reign supreme in JavaScript, and PHP programmers who don't also know JavaScript are r... | 15 |
lolphp | thelordofcheese | cpr88q1 | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Our code is full of generators, closures, maps, filters and many other high-order functions. Even though we... | 14 |
lolphp | accountforshit | cpr97ig | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Look, I don't like PHP. If it was a choice between getting fired and doing full-time PHP development, I'd p... | 14 |
lolphp | cbraga | cpr1txj | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Closures are great and allow for a lot of versatility in your code?
More retarded arguments from the PHP... | 11 |
lolphp | barubary | cpralay | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>More importantly, how were namespaces not a thing until >= 5.2? Seriously?<|eor|><|sor|>What makes it even ... | 10 |
lolphp | cparen | cpsueyp | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>More importantly, how were namespaces not a thing until >= 5.2? Seriously?<|eor|><|sor|>I still love their ... | 10 |
lolphp | thelordofcheese | cpr8a41 | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Look, I don't like PHP. If it was a choice between getting fired and doing full-time PHP development, I'd p... | 9 |
lolphp | serendependy | cpqprkf | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Closures are great and allow for a lot of versatility in your code?
More retarded arguments from the PHP... | 9 |
lolphp | HiddenKrypt | cpri91u | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>> Anonymous functions reign supreme in JavaScript, and PHP programmers who don't also know JavaScript are r... | 9 |
lolphp | jadkik94 | cpqnl1h | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Javascript has closures. I guess it's not the best criteria to judge the developers of a language. ;)
All ... | 8 |
lolphp | Sheepshow | cprlk82 | <|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Wait, I have to declare what variables my function closes over? Shouldn't the PHP compiler be able to....oh... | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.