subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | nyamsprod | ar8q8r | <|sols|><|sot|>DateInterval sadness.. this one is a 10 year old bug!!!<|eot|><|sol|>https://3v4l.org/JRlDG<|eol|><|eols|><|endoftext|> | 19 |
lolphp | Sandbucketman | egljthc | <|sols|><|sot|>DateInterval sadness.. this one is a 10 year old bug!!!<|eot|><|sol|>https://3v4l.org/JRlDG<|eol|><|sor|>I think people aren't quite grasping what is really going on here and the rabbit hole goes much deeper.
DateIntervals are simply not compareable. The support doesn't exist within PHP and while nearl... | 20 |
lolphp | nyamsprod | egliukb | <|sols|><|sot|>DateInterval sadness.. this one is a 10 year old bug!!!<|eot|><|sol|>https://3v4l.org/JRlDG<|eol|><|sor|>Please give some description of what is happening and what should happen for us non php people.<|eor|><|soopr|>Instead of failing by throwing an exception or returning false... createFromDateString re... | 8 |
lolphp | iheartrms | 3alb08 | <|sols|><|sot|>Encoding Web Shells in PNG IDAT chunks | Application Security<|eot|><|sol|>https://www.idontplaydarts.com/2012/06/encoding-web-shells-in-png-idat-chunks/<|eol|><|eols|><|endoftext|> | 20 |
lolphp | Jonno_FTW | csef4x9 | <|sols|><|sot|>Encoding Web Shells in PNG IDAT chunks | Application Security<|eot|><|sol|>https://www.idontplaydarts.com/2012/06/encoding-web-shells-in-png-idat-chunks/<|eol|><|sor|>[deleted]<|eor|><|sor|>I get to be that person this time :-)
So, what is happening here is that when you configure nginx with FastCGI (re... | 7 |
lolphp | TimeToogo | 2efehz | <|sols|><|sot|>Closures and relative constants weirdness<|eot|><|sol|>http://3v4l.org/6loRa<|eol|><|eols|><|endoftext|> | 19 |
lolphp | tdammers | cjyyo5g | <|sols|><|sot|>Closures and relative constants weirdness<|eot|><|sol|>http://3v4l.org/6loRa<|eol|><|soopr|>I cannot understand this behaviour.
Why would when the closure is defined affect the output?
HHVM gets it right.<|eoopr|><|sor|>> Why would when the closure is defined affect the output?
Because the PHP parser/c... | 21 |
lolphp | nikic | cjz0qcb | <|sols|><|sot|>Closures and relative constants weirdness<|eot|><|sol|>http://3v4l.org/6loRa<|eol|><|soopr|>I cannot understand this behaviour.
Why would when the closure is defined affect the output?
HHVM gets it right.<|eoopr|><|sor|>> Why would when the closure is defined affect the output?
Because the PHP parser/c... | 10 |
lolphp | nikic | cjz3dxy | <|sols|><|sot|>Closures and relative constants weirdness<|eot|><|sol|>http://3v4l.org/6loRa<|eol|><|soopr|>I cannot understand this behaviour.
Why would when the closure is defined affect the output?
HHVM gets it right.<|eoopr|><|sor|>> Why would when the closure is defined affect the output?
Because the PHP parser/c... | 8 |
lolphp | terrorobe | cjz2mdt | <|sols|><|sot|>Closures and relative constants weirdness<|eot|><|sol|>http://3v4l.org/6loRa<|eol|><|soopr|>I cannot understand this behaviour.
Why would when the closure is defined affect the output?
HHVM gets it right.<|eoopr|><|sor|>> Why would when the closure is defined affect the output?
Because the PHP parser/c... | 6 |
lolphp | shitbangs | 2dbvc1 | <|sols|><|sot|>lolPHP *and* HHVM<|eot|><|sol|>http://3v4l.org/qDQa2<|eol|><|eols|><|endoftext|> | 20 |
lolphp | shitbangs | cjnzt23 | <|sols|><|sot|>lolPHP *and* HHVM<|eot|><|sol|>http://3v4l.org/qDQa2<|eol|><|soopr|>All of these are wrong because according to [the documentation](http://php.net/manual/en/class.reflectionfunctionabstract.php), ReflectionFunctionAbstract implements [Reflector](http://php.net/manual/en/class.reflector.php) which contain... | 11 |
lolphp | ChoHag | cjo0zuc | <|sols|><|sot|>lolPHP *and* HHVM<|eot|><|sol|>http://3v4l.org/qDQa2<|eol|><|sor|>At least the exit code is consistent.<|eor|><|eols|><|endoftext|> | 8 |
lolphp | shitbangs | cjo1ddi | <|sols|><|sot|>lolPHP *and* HHVM<|eot|><|sol|>http://3v4l.org/qDQa2<|eol|><|soopr|>All of these are wrong because according to [the documentation](http://php.net/manual/en/class.reflectionfunctionabstract.php), ReflectionFunctionAbstract implements [Reflector](http://php.net/manual/en/class.reflector.php) which contain... | 7 |
lolphp | pitiless | 2avzlh | <|sols|><|sot|>$errors = $user<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-login.php#L799<|eol|><|eols|><|endoftext|> | 20 |
lolphp | DCoder1337 | cj040y1 | <|sols|><|sot|>$errors = $user<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-login.php#L799<|eol|><|sor|>You linked to line 799 of `master`, which is a moving target. A change to that file has been made since you linked to it, which threw off your line numbers.
If you link to a specific revision i... | 19 |
lolphp | sloat | cizj35y | <|sols|><|sot|>$errors = $user<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-login.php#L799<|eol|><|sor|>I thought nobody wrote code like this anymore... https://github.com/WordPress/WordPress/blob/master/wp-login.php#L241-L253<|eor|><|sor|>If you want to know true horror, look at [wp-db.php](https... | 17 |
lolphp | allthediamonds | ciztjp5 | <|sols|><|sot|>$errors = $user<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-login.php#L799<|eol|><|sor|>[deleted]<|eor|><|sor|>Actually, this is the root of all other PHP's problems: no one has the slightest idea of what they're doing. It's the blind leading the blind.
<|eor|><|eols|><|endoftext|> | 11 |
lolphp | allthediamonds | cizeovq | <|sols|><|sot|>$errors = $user<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-login.php#L799<|eol|><|sor|>I thought nobody wrote code like this anymore... https://github.com/WordPress/WordPress/blob/master/wp-login.php#L241-L253<|eor|><|eols|><|endoftext|> | 9 |
lolphp | urquan | cj093m4 | <|sols|><|sot|>$errors = $user<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-login.php#L799<|eol|><|sor|>You linked to line 799 of `master`, which is a moving target. A change to that file has been made since you linked to it, which threw off your line numbers.
If you link to a specific revision i... | 6 |
lolphp | Varriount | 23ubnq | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|eols|><|endoftext|> | 19 |
lolphp | allthediamonds | ch0t5d2 | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>> Every language has unintuitive partsPHP more than mostbut if you're an intelligent programmer, you can avoid them.
No. No, no, no. NO.
I... | 27 |
lolphp | ajmarks | ch0qo7k | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>Dude actually says PHP's string functions are consistent? WTF?!?<|eor|><|eols|><|endoftext|> | 20 |
lolphp | ajmarks | ch1m8sc | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>Dude actually says PHP's string functions are consistent? WTF?!?<|eor|><|sor|>Corrected. Should've seen that bomb before it exploded in my f... | 19 |
lolphp | jmcs | ch0t49x | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>> Whatever the future holds, PHP will continue to be a relevant and important language for web development.<|eor|><|sor|>And Kim family will... | 17 |
lolphp | jmcs | ch0t3ai | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>I think the easiest way to end PHP's reign of terror is to make another language that's as easy to use and deploy as PHP and then port every... | 16 |
lolphp | nahguri | ch2ehy5 | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>Dude actually says PHP's string functions are consistent? WTF?!?<|eor|><|sor|>Corrected. Should've seen that bomb before it exploded in my f... | 14 |
lolphp | jmcs | ch0tf01 | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>I think the easiest way to end PHP's reign of terror is to make another language that's as easy to use and deploy as PHP and then port every... | 14 |
lolphp | allthediamonds | ch1koid | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>> Every language has unintuitive partsPHP more than mostbut if you're an intelligent programmer, you can avoid them.
No. No, no, no. NO.
I... | 13 |
lolphp | Varriount | ch0nrl8 | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|soopr|>And for even more fun, one only has to look at the pro-php'ers trying to defend [the post on /r/programming !](http://www.reddit.com/r/pro... | 12 |
lolphp | OneWingedShark | ch1ihl4 | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>I think the easiest way to end PHP's reign of terror is to make another language that's as easy to use and deploy as PHP and then port every... | 10 |
lolphp | EsperSpirit | ch15vet | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>If all PHP was like those examples, we wouldn't even need this subreddit.
PHP may be weird and dodgy in places, but a language like Ruby is... | 10 |
lolphp | captainramen | ch0oswc | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>This article misses the point. You're probably going to have to work until you are in your 60s or 70s (even more so considering that php dev... | 9 |
lolphp | OneWingedShark | ch1ioz6 | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>> Every language has unintuitive partsPHP more than mostbut if you're an intelligent programmer, you can avoid them.
No. No, no, no. NO.
I... | 9 |
lolphp | deadstone | ch0rna8 | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>> Whatever the future holds, PHP will continue to be a relevant and important language for web development.<|eor|><|eols|><|endoftext|> | 8 |
lolphp | ALLCAPS_SWEAR_WORDS | ch11d03 | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>This article misses the point. You're probably going to have to work until you are in your 60s or 70s (even more so considering that php dev... | 8 |
lolphp | nahguri | ch2endu | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>> Every language has unintuitive partsPHP more than mostbut if you're an intelligent programmer, you can avoid them.
No. No, no, no. NO.
I... | 7 |
lolphp | knaveofspades | ch0tzzv | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>Dude actually says PHP's string functions are consistent? WTF?!?<|eor|><|sor|>You don't have to be consistent as long as your alternate name... | 6 |
lolphp | EsperSpirit | ch16xax | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>If all PHP was like those examples, we wouldn't even need this subreddit.
PHP may be weird and dodgy in places, but a language like Ruby is... | 6 |
lolphp | allthediamonds | ch2h9yl | <|sols|><|sot|>/x/post from /r/programming - PHP: It doesn't have to be a bad experience<|eot|><|sol|>https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience<|eol|><|sor|>This article misses the point. You're probably going to have to work until you are in your 60s or 70s (even more so considering that php dev... | 6 |
lolphp | vytah | 12r1mg | <|sols|><|sot|>Guess the output: var_dump(Datetime::createFromFormat('u', '015700')->format('u'));<|eot|><|sol|>https://bugs.php.net/bug.php?id=63435<|eol|><|eols|><|endoftext|> | 21 |
lolphp | vytah | c6xhc6e | <|sols|><|sot|>Guess the output: var_dump(Datetime::createFromFormat('u', '015700')->format('u'));<|eot|><|sol|>https://bugs.php.net/bug.php?id=63435<|eol|><|sor|>This is actually a lolc, really.<|eor|><|soopr|>It's not C, it's PHP devs' choice to use double for storing time:
> Datetime objects hold microseconds as "d... | 10 |
lolphp | sloat | c6xns2r | <|sols|><|sot|>Guess the output: var_dump(Datetime::createFromFormat('u', '015700')->format('u'));<|eot|><|sol|>https://bugs.php.net/bug.php?id=63435<|eol|><|sor|>Waiting for the obligatory, "not a bug" comment from the php core team.<|eor|><|eols|><|endoftext|> | 7 |
lolphp | vytah | c6xpqhq | <|sols|><|sot|>Guess the output: var_dump(Datetime::createFromFormat('u', '015700')->format('u'));<|eot|><|sol|>https://bugs.php.net/bug.php?id=63435<|eol|><|sor|>Guess storing numbers in strings is just standard practice in PHP?<|eor|><|sor|>The `double` problem pops up occasionally in other places, but yeah, `int`s i... | 5 |
lolphp | ptrin | z11cf | <|sols|><|sot|>Note that elseif and else if will only be considered exactly the same when using curly brackets as in the above example. When using a colon to define your if/elseif conditions, you must not separate else if into two words, or PHP will fail with a parse error.<|eot|><|sol|>http://php.net/manual/en/control... | 22 |
lolphp | kingguru | c60kc8i | <|sols|><|sot|>Note that elseif and else if will only be considered exactly the same when using curly brackets as in the above example. When using a colon to define your if/elseif conditions, you must not separate else if into two words, or PHP will fail with a parse error.<|eot|><|sol|>http://php.net/manual/en/control... | 12 |
lolphp | kingguru | c60lqdh | <|sols|><|sot|>Note that elseif and else if will only be considered exactly the same when using curly brackets as in the above example. When using a colon to define your if/elseif conditions, you must not separate else if into two words, or PHP will fail with a parse error.<|eot|><|sol|>http://php.net/manual/en/control... | 10 |
lolphp | Jinxuan | ekz4vd | <|soss|><|sot|>in_array can return True, False and just simply fail.<|eot|><|sost|>The feature is provided by the default usage of `==` in in\_array.
For example,
```
$a = new stdClass;
$b = in_array($a, [0, $a]); // PHP Notice: Object of class stdClass could not be converted to int
```
$b is not assigned, because ... | 21 |
lolphp | barubary | fdewthp | <|soss|><|sot|>in_array can return True, False and just simply fail.<|eot|><|sost|>The feature is provided by the default usage of `==` in in\_array.
For example,
```
$a = new stdClass;
$b = in_array($a, [0, $a]); // PHP Notice: Object of class stdClass could not be converted to int
```
$b is not assigned, because ... | 25 |
lolphp | maxgee | fdeuvgi | <|soss|><|sot|>in_array can return True, False and just simply fail.<|eot|><|sost|>The feature is provided by the default usage of `==` in in\_array.
For example,
```
$a = new stdClass;
$b = in_array($a, [0, $a]); // PHP Notice: Object of class stdClass could not be converted to int
```
$b is not assigned, because ... | 17 |
lolphp | morphotomy | fdfbocf | <|soss|><|sot|>in_array can return True, False and just simply fail.<|eot|><|sost|>The feature is provided by the default usage of `==` in in\_array.
For example,
```
$a = new stdClass;
$b = in_array($a, [0, $a]); // PHP Notice: Object of class stdClass could not be converted to int
```
$b is not assigned, because ... | 9 |
lolphp | Takeoded | al3e8s | <|sols|><|sot|>is_callable "verify that the contents of a variable can be called as a function" - except when it doesn't.<|eot|><|sol|>https://3v4l.org/aPX8b<|eol|><|eols|><|endoftext|> | 17 |
lolphp | scatters | efadd97 | <|sols|><|sot|>is_callable "verify that the contents of a variable can be called as a function" - except when it doesn't.<|eot|><|sol|>https://3v4l.org/aPX8b<|eol|><|sor|>Y'see, `$o->foo` (without trailing parentheses) is a reference to a member variable. The right way to spell a reference to a bound method is `[$o, 'f... | 34 |
lolphp | mikeputerbaugh | efbohwk | <|sols|><|sot|>is_callable "verify that the contents of a variable can be called as a function" - except when it doesn't.<|eot|><|sol|>https://3v4l.org/aPX8b<|eol|><|sor|>Y'see, `$o->foo` (without trailing parentheses) is a reference to a member variable. The right way to spell a reference to a bound method is `[$o, 'f... | 17 |
lolphp | iopq | efb9zn9 | <|sols|><|sot|>is_callable "verify that the contents of a variable can be called as a function" - except when it doesn't.<|eot|><|sol|>https://3v4l.org/aPX8b<|eol|><|sor|>Y'see, `$o->foo` (without trailing parentheses) is a reference to a member variable. The right way to spell a reference to a bound method is `[$o, 'f... | 13 |
lolphp | vita10gy | efabul5 | <|sols|><|sot|>is_callable "verify that the contents of a variable can be called as a function" - except when it doesn't.<|eot|><|sol|>https://3v4l.org/aPX8b<|eol|><|sor|>This feels more like tricking PHP with dumbassery than a true LOLPHP.
You've created a situation where neither answer to is_callable($o->foo) is rig... | 12 |
lolphp | CliffEdgeOrg | efcm0c3 | <|sols|><|sot|>is_callable "verify that the contents of a variable can be called as a function" - except when it doesn't.<|eot|><|sol|>https://3v4l.org/aPX8b<|eol|><|sor|>this is not lolphp, this is lolOP for not even bothering to understand what is the difference between a property and a method.
​
I'm gonna b... | 11 |
lolphp | duskwuff | efaktqu | <|sols|><|sot|>is_callable "verify that the contents of a variable can be called as a function" - except when it doesn't.<|eot|><|sol|>https://3v4l.org/aPX8b<|eol|><|soopr|>(for the record, i would have expected a compile-time error, not whatever the *** it's actually doing here)<|eoopr|><|sor|>Why would you expect a c... | 11 |
lolphp | joske79 | efea883 | <|sols|><|sot|>is_callable "verify that the contents of a variable can be called as a function" - except when it doesn't.<|eot|><|sol|>https://3v4l.org/aPX8b<|eol|><|sor|>Works 100% as expected. You're checking if value 5 is callable; which ofcourse isn't.
Try this: https://3v4l.org/3s0uWo<|eor|><|eols|><|endoftext|> | 5 |
lolphp | shitcanz | efi8pwr | <|sols|><|sot|>is_callable "verify that the contents of a variable can be called as a function" - except when it doesn't.<|eot|><|sol|>https://3v4l.org/aPX8b<|eol|><|sor|>This is why PHP has such a bad rep. Its a clusterfuck of badly implemented thin wrapper functions around C that dont really mix well with the rest of... | 5 |
lolphp | jesseschalken | efbv89n | <|sols|><|sot|>is_callable "verify that the contents of a variable can be called as a function" - except when it doesn't.<|eot|><|sol|>https://3v4l.org/aPX8b<|eol|><|sor|>[deleted]<|eor|><|sor|>Java is the same (methods and fields can have the same name and are distinguished by syntax) so I guess that's where it came f... | 5 |
lolphp | dotancohen | efpr2gc | <|sols|><|sot|>is_callable "verify that the contents of a variable can be called as a function" - except when it doesn't.<|eot|><|sol|>https://3v4l.org/aPX8b<|eol|><|sor|>Y'see, `$o->foo` (without trailing parentheses) is a reference to a member variable. The right way to spell a reference to a bound method is `[$o, 'f... | 5 |
lolphp | Takeoded | a881yt | <|soss|><|sot|>let's play a little game with FILTER_VALIDATE_DOMAIN<|eot|><|sost|>FILTER_VALIDATE_DOMAIN returns bool(false) when it thinks the input isn't a domain. so what is a valid domain?
"" -> valid
"example.org/wat" -> valid
"DOG!" -> valid!
" " -> valid!
what else? test code here: https://3v4l.org/aGe63
&... | 21 |
lolphp | AyrA_ch | ecalq5o | <|soss|><|sot|>let's play a little game with FILTER_VALIDATE_DOMAIN<|eot|><|sost|>FILTER_VALIDATE_DOMAIN returns bool(false) when it thinks the input isn't a domain. so what is a valid domain?
"" -> valid
"example.org/wat" -> valid
"DOG!" -> valid!
" " -> valid!
what else? test code here: https://3v4l.org/aGe63
&... | 6 |
lolphp | AyrA_ch | ecbk0cb | <|soss|><|sot|>let's play a little game with FILTER_VALIDATE_DOMAIN<|eot|><|sost|>FILTER_VALIDATE_DOMAIN returns bool(false) when it thinks the input isn't a domain. so what is a valid domain?
"" -> valid
"example.org/wat" -> valid
"DOG!" -> valid!
" " -> valid!
what else? test code here: https://3v4l.org/aGe63
&... | 6 |
lolphp | AyrA_ch | ecboifh | <|soss|><|sot|>let's play a little game with FILTER_VALIDATE_DOMAIN<|eot|><|sost|>FILTER_VALIDATE_DOMAIN returns bool(false) when it thinks the input isn't a domain. so what is a valid domain?
"" -> valid
"example.org/wat" -> valid
"DOG!" -> valid!
" " -> valid!
what else? test code here: https://3v4l.org/aGe63
&... | 5 |
lolphp | Partonetrain | 9jze2l | <|sols|><|sot|>A long-winded apology comment<|eot|><|sol|>https://www.reddit.com/r/ProgrammerHumor/comments/9jx3vz/im_getting_second_thoughts_about_whether/?st=JMNS0O56&sh=c2063274<|eol|><|eols|><|endoftext|> | 18 |
lolphp | cleeder | e6wwh3y | <|sols|><|sot|>A long-winded apology comment<|eot|><|sol|>https://www.reddit.com/r/ProgrammerHumor/comments/9jx3vz/im_getting_second_thoughts_about_whether/?st=JMNS0O56&sh=c2063274<|eol|><|sor|>Stolen from r/programmerhumor<|eor|><|sor|>It's hardly stolen. The link is literally _to_ /r/ProgrammerHumor <|eor|><|eols|><|... | 9 |
lolphp | Partonetrain | e6v718p | <|sols|><|sot|>A long-winded apology comment<|eot|><|sol|>https://www.reddit.com/r/ProgrammerHumor/comments/9jx3vz/im_getting_second_thoughts_about_whether/?st=JMNS0O56&sh=c2063274<|eol|><|soopr|>Perhaps more about the fault of the author then the language, but still funny.<|eoopr|><|eols|><|endoftext|> | 8 |
lolphp | nuephelkystikon | e6v7k1r | <|sols|><|sot|>A long-winded apology comment<|eot|><|sol|>https://www.reddit.com/r/ProgrammerHumor/comments/9jx3vz/im_getting_second_thoughts_about_whether/?st=JMNS0O56&sh=c2063274<|eol|><|soopr|>Perhaps more about the fault of the author then the language, but still funny.<|eoopr|><|sor|>Two nails in the same coffin. ... | 8 |
lolphp | nyamsprod | 67n509 | <|sols|><|sot|>is this a bug or expected behaviour for substr<|eot|><|sol|>https://3v4l.org/JcYmO<|eol|><|eols|><|endoftext|> | 19 |
lolphp | arnoutboks | dgrppwd | <|sols|><|sot|>is this a bug or expected behaviour for substr<|eot|><|sol|>https://3v4l.org/JcYmO<|eol|><|sor|>Although it remains strange, this is documented behavior:
* The first expression returning false is documented in the parameter description for the start-parameter: http://php.net/manual/en/function.substr.ph... | 7 |
lolphp | implicit_cast | 2lwogw | <|sols|><|sot|>Reference arguments can retarget $this<|eot|><|sol|>http://3v4l.org/mtkR4<|eol|><|eols|><|endoftext|> | 19 |
lolphp | Lokaltog | clz7xz5 | <|sols|><|sot|>Reference arguments can retarget $this<|eot|><|sol|>http://3v4l.org/mtkR4<|eol|><|sor|>I expanded OP's example a bit, it appears that this would have been a much bigger issue in PHP <5: http://3v4l.org/mFSeh
In PHP >5 it seems $this is only overwritten in the function scope and not globally, making this... | 8 |
lolphp | Sarcastinator | clz8ojy | <|sols|><|sot|>Reference arguments can retarget $this<|eot|><|sol|>http://3v4l.org/mtkR4<|eol|><|sor|>What's the lol? It's doing exactly what it is being told to do. If in another language you passed the address of 'this' to some other function which then clobbered the data at that address... what exactly do you expe... | 8 |
lolphp | Lokaltog | clz726u | <|sols|><|sot|>Reference arguments can retarget $this<|eot|><|sol|>http://3v4l.org/mtkR4<|eol|><|sor|>What's the lol? It's doing exactly what it is being told to do. If in another language you passed the address of 'this' to some other function which then clobbered the data at that address... what exactly do you expe... | 5 |
lolphp | implicit_cast | clzgo3q | <|sols|><|sot|>Reference arguments can retarget $this<|eot|><|sol|>http://3v4l.org/mtkR4<|eol|><|sor|>What's the lol? It's doing exactly what it is being told to do. If in another language you passed the address of 'this' to some other function which then clobbered the data at that address... what exactly do you expe... | 5 |
lolphp | implicit_cast | clzlg5u | <|sols|><|sot|>Reference arguments can retarget $this<|eot|><|sol|>http://3v4l.org/mtkR4<|eol|><|sor|>What's the lol? It's doing exactly what it is being told to do. If in another language you passed the address of 'this' to some other function which then clobbered the data at that address... what exactly do you expe... | 5 |
lolphp | frezik | 1zmnx6 | <|sols|><|sot|>Language Community Litmus Test: Database Placeholders<|eot|><|sol|>http://www.wumpus-cave.net/2014/03/04/language-community-litmus-test-database-placeholders/<|eol|><|eols|><|endoftext|> | 18 |
lolphp | deadstone | cfv36oi | <|sols|><|sot|>Language Community Litmus Test: Database Placeholders<|eot|><|sol|>http://www.wumpus-cave.net/2014/03/04/language-community-litmus-test-database-placeholders/<|eol|><|sor|>MY EYES<|eor|><|eols|><|endoftext|> | 7 |
lolphp | iopq | cfvghxm | <|sols|><|sot|>Language Community Litmus Test: Database Placeholders<|eot|><|sol|>http://www.wumpus-cave.net/2014/03/04/language-community-litmus-test-database-placeholders/<|eol|><|sor|>Node doesn't have prepared statements, it's actually kind of embarrassing.<|eor|><|eols|><|endoftext|> | 7 |
lolphp | Jonny_Axehandle | zxhlr | <|sols|><|sot|>Why PHP is Efficient and Popular Scripting Language<|eot|><|sol|>http://www.blog.joomla-developers.com/why-php-is-efficient-and-popular-scripting-language/<|eol|><|eols|><|endoftext|> | 20 |
lolphp | ismtrn | c68mq5z | <|sols|><|sot|>Why PHP is Efficient and Popular Scripting Language<|eot|><|sol|>http://www.blog.joomla-developers.com/why-php-is-efficient-and-popular-scripting-language/<|eol|><|sor|>TIL: There is no limit to what you can achieve with PHP.
<|eor|><|sor|>http://www.zombo.com/
You can do anything at zombo.com, anything... | 22 |
lolphp | krinndnz | c68poiw | <|sols|><|sot|>Why PHP is Efficient and Popular Scripting Language<|eot|><|sol|>http://www.blog.joomla-developers.com/why-php-is-efficient-and-popular-scripting-language/<|eol|><|sor|>I can't decide if that's ESL English or Freshman In A Great Hurry To Turn Anything At All In English.
Alternatively, it could be just t... | 14 |
lolphp | duskwuff | c68sqls | <|sols|><|sot|>Why PHP is Efficient and Popular Scripting Language<|eot|><|sol|>http://www.blog.joomla-developers.com/why-php-is-efficient-and-popular-scripting-language/<|eol|><|sor|>I can't decide if that's ESL English or Freshman In A Great Hurry To Turn Anything At All In English.
Alternatively, it could be just t... | 9 |
lolphp | MonkeeSage | c68w69g | <|sols|><|sot|>Why PHP is Efficient and Popular Scripting Language<|eot|><|sol|>http://www.blog.joomla-developers.com/why-php-is-efficient-and-popular-scripting-language/<|eol|><|sor|>Oh, come on, you can find stupid articles about *any* programming language.<|eor|><|sor|> 1. Not usually on the dev blog of a company s... | 9 |
lolphp | blueskin | c6bsivk | <|sols|><|sot|>Why PHP is Efficient and Popular Scripting Language<|eot|><|sol|>http://www.blog.joomla-developers.com/why-php-is-efficient-and-popular-scripting-language/<|eol|><|sor|>>Any changes that are made to the source code can be saved and employed for commercial purposes without any legal drawbacks.
http://i.... | 8 |
lolphp | blueskin | c68vzn5 | <|sols|><|sot|>Why PHP is Efficient and Popular Scripting Language<|eot|><|sol|>http://www.blog.joomla-developers.com/why-php-is-efficient-and-popular-scripting-language/<|eol|><|sor|>That post says IIS supports PHP, which leads me to the question: has anyone actually managed this? It sounds like it would be *incredibl... | 7 |
lolphp | escozzia | c68mu10 | <|sols|><|sot|>Why PHP is Efficient and Popular Scripting Language<|eot|><|sol|>http://www.blog.joomla-developers.com/why-php-is-efficient-and-popular-scripting-language/<|eol|><|sor|>That post says IIS supports PHP, which leads me to the question: has anyone actually managed this? It sounds like it would be *incredibl... | 6 |
lolphp | rossryan | c68kg7t | <|sols|><|sot|>Why PHP is Efficient and Popular Scripting Language<|eot|><|sol|>http://www.blog.joomla-developers.com/why-php-is-efficient-and-popular-scripting-language/<|eol|><|sor|>Ow ow ow ow my head ow fuck why did I try to read that<|eor|><|sor|>Because you have masochistic tendencies. It could be worse -> you co... | 6 |
lolphp | Krenair | c68nydg | <|sols|><|sot|>Why PHP is Efficient and Popular Scripting Language<|eot|><|sol|>http://www.blog.joomla-developers.com/why-php-is-efficient-and-popular-scripting-language/<|eol|><|sor|>That post says IIS supports PHP, which leads me to the question: has anyone actually managed this? It sounds like it would be *incredibl... | 5 |
lolphp | fazzah | c6yqut2 | <|sols|><|sot|>Why PHP is Efficient and Popular Scripting Language<|eot|><|sol|>http://www.blog.joomla-developers.com/why-php-is-efficient-and-popular-scripting-language/<|eol|><|sor|>> Attractive section of content. I just stumbled upon your weblog and in accession capital to assert that I acquire in fact enjoyed acco... | 5 |
lolphp | Porges | vcvpv | <|sols|><|sot|>function f(){return f();} segfaults, no error message - "not a bug"
<|eot|><|sol|>https://bugs.php.net/bug.php?id=28687<|eol|><|eols|><|endoftext|> | 19 |
lolphp | Rhomboid | c53du76 | <|sols|><|sot|>function f(){return f();} segfaults, no error message - "not a bug"
<|eot|><|sol|>https://bugs.php.net/bug.php?id=28687<|eol|><|sor|>Well, in this case they're right. Infinite recursion is not a bug in the language. And it generates a segfault in many languages, for example C:
$ gcc -xc -<<<'int m... | 24 |
lolphp | FlyingBishop | c53f1bk | <|sols|><|sot|>function f(){return f();} segfaults, no error message - "not a bug"
<|eot|><|sol|>https://bugs.php.net/bug.php?id=28687<|eol|><|sor|>Well, in this case they're right. Infinite recursion is not a bug in the language. And it generates a segfault in many languages, for example C:
$ gcc -xc -<<<'int m... | 17 |
lolphp | zvxr | c53ghij | <|sols|><|sot|>function f(){return f();} segfaults, no error message - "not a bug"
<|eot|><|sol|>https://bugs.php.net/bug.php?id=28687<|eol|><|sor|>Well, in this case they're right. Infinite recursion is not a bug in the language. And it generates a segfault in many languages, for example C:
$ gcc -xc -<<<'int m... | 15 |
lolphp | ealf | c53lsh1 | <|sols|><|sot|>function f(){return f();} segfaults, no error message - "not a bug"
<|eot|><|sol|>https://bugs.php.net/bug.php?id=28687<|eol|><|sor|>[My favorite way to trigger this bug with a single typo](http://www.reddit.com/r/lolphp/comments/f91wt/segfault_the_interpreter_with_a_typo/):
class Foo {
var $n... | 14 |
lolphp | Porges | c53e4t7 | <|sols|><|sot|>function f(){return f();} segfaults, no error message - "not a bug"
<|eot|><|sol|>https://bugs.php.net/bug.php?id=28687<|eol|><|sor|>Well, in this case they're right. Infinite recursion is not a bug in the language. And it generates a segfault in many languages, for example C:
$ gcc -xc -<<<'int m... | 10 |
lolphp | adrenal8 | ppy9v | <|sols|><|sot|>PHP's case sensitivity inconsistencies<|eot|><|sol|>http://the-echoplex.net/log/php-case-sensitivity<|eol|><|eols|><|endoftext|> | 19 |
lolphp | HawtDawgH20 | p65d1t | <|soss|><|sot|>Product Manager seeking recommendations on static code performance optimizers.<|eot|><|sost|>Hi Everyone.
I am looking for a recommendation on a static PHP code analyzer for performance. I came from a Java background, so I am new to the PHP community. I am looking for a tool for a sniff test to de... | 19 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.