subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | tdammers | cb7pyjs | <|sols|><|sot|>echo ++$a + $a++; // may print 4 or 5<|eot|><|sol|>http://php.net/manual/en/language.operators.precedence.php#example-114<|eol|><|sor|>This is something PHP more or less inherits directly from C, where the following is undefined as well:
int i = 1;
i = ++i + i++;
printf("%i\n", i);<|eor|><|s... | 12 |
lolphp | nikic | cb7prtt | <|sols|><|sot|>echo ++$a + $a++; // may print 4 or 5<|eot|><|sol|>http://php.net/manual/en/language.operators.precedence.php#example-114<|eol|><|sor|>This is something PHP more or less inherits directly from C, where the following is undefined as well:
int i = 1;
i = ++i + i++;
printf("%i\n", i);<|eor|><|s... | 9 |
lolphp | smog_alado | cbi07a9 | <|sols|><|sot|>echo ++$a + $a++; // may print 4 or 5<|eot|><|sol|>http://php.net/manual/en/language.operators.precedence.php#example-114<|eol|><|sor|>Lots of people talk about how it's inherited from C, but for me, that's the lol here. I'm also sick of how many places in PHP the underlying C implementations get exposed... | 8 |
lolphp | InconsiderateBastard | cb7u1qg | <|sols|><|sot|>echo ++$a + $a++; // may print 4 or 5<|eot|><|sol|>http://php.net/manual/en/language.operators.precedence.php#example-114<|eol|><|soopr|>Discussion on the php internals mailing list: http://thread.gmane.org/gmane.comp.php.devel/81125<|eoopr|><|sor|>Sara's got her work cut out for her. I feel bad that sh... | 8 |
lolphp | djsumdog | cb7pru4 | <|sols|><|sot|>echo ++$a + $a++; // may print 4 or 5<|eot|><|sol|>http://php.net/manual/en/language.operators.precedence.php#example-114<|eol|><|sor|>This is something PHP more or less inherits directly from C, where the following is undefined as well:
int i = 1;
i = ++i + i++;
printf("%i\n", i);<|eor|><|s... | 7 |
lolphp | nikic | cb7pqv6 | <|sols|><|sot|>echo ++$a + $a++; // may print 4 or 5<|eot|><|sol|>http://php.net/manual/en/language.operators.precedence.php#example-114<|eol|><|soopr|>Discussion on the php internals mailing list: http://thread.gmane.org/gmane.comp.php.devel/81125<|eoopr|><|sor|>In particular quoting Sara's first post:
> If run [the ... | 7 |
lolphp | mirhagk | cb7ugr5 | <|sols|><|sot|>echo ++$a + $a++; // may print 4 or 5<|eot|><|sol|>http://php.net/manual/en/language.operators.precedence.php#example-114<|eol|><|sor|>Wait, why would that output 5?
$b = ++$a; echo $b + $a++; --> 2 + 2 = 4
$b = $a++; echo ++$a + $b; --> 3 + 1 = 4<|eor|><|sor|>It could return 5 because it could ... | 6 |
lolphp | tdammers | cb7pznz | <|sols|><|sot|>echo ++$a + $a++; // may print 4 or 5<|eot|><|sol|>http://php.net/manual/en/language.operators.precedence.php#example-114<|eol|><|sor|>This is something PHP more or less inherits directly from C, where the following is undefined as well:
int i = 1;
i = ++i + i++;
printf("%i\n", i);<|eor|><|s... | 6 |
lolphp | NotSantaAtAll | cb7ovhv | <|sols|><|sot|>echo ++$a + $a++; // may print 4 or 5<|eot|><|sol|>http://php.net/manual/en/language.operators.precedence.php#example-114<|eol|><|soopr|>Discussion on the php internals mailing list: http://thread.gmane.org/gmane.comp.php.devel/81125<|eoopr|><|eols|><|endoftext|> | 5 |
lolphp | josefx | cbq5x8o | <|sols|><|sot|>echo ++$a + $a++; // may print 4 or 5<|eot|><|sol|>http://php.net/manual/en/language.operators.precedence.php#example-114<|eol|><|sor|>Lots of people talk about how it's inherited from C, but for me, that's the lol here. I'm also sick of how many places in PHP the underlying C implementations get exposed... | 5 |
lolphp | InconsiderateBastard | cb7u4h6 | <|sols|><|sot|>echo ++$a + $a++; // may print 4 or 5<|eot|><|sol|>http://php.net/manual/en/language.operators.precedence.php#example-114<|eol|><|sor|>Just for kicks, is 4 correct? The $i++ would return 2 to the equation before incrementing, right? <|eor|><|sor|>The behavior is undefined. Anything it outputs is correct... | 5 |
lolphp | hashkitten | jmi7ng | <|sols|><|sot|>Syntax error, unexpected ')', expecting ')'<|eot|><|sol|>https://tio.run/##K8go@P/fxr4go0AhLb9Iw9rQ3k7z/38A<|eol|><|eols|><|endoftext|> | 52 |
lolphp | barubary | gavj1by | <|sols|><|sot|>Syntax error, unexpected ')', expecting ')'<|eot|><|sol|>https://tio.run/##K8go@P/fxr4go0AhLb9Iw9rQ3k7z/38A<|eol|><|sor|>> <?php for(;1?>)
PHP Parse error: syntax error, unexpected ')', expecting ')'
That's a fun one. Not only does the error message contradict itself, it's also wrong in genera... | 18 |
lolphp | Miserable_Fuck | gaxeoi3 | <|sols|><|sot|>Syntax error, unexpected ')', expecting ')'<|eot|><|sol|>https://tio.run/##K8go@P/fxr4go0AhLb9Iw9rQ3k7z/38A<|eol|><|sor|>Did you file a bug report?<|eor|><|sor|>the real lolphp is always in the comments<|eor|><|eols|><|endoftext|> | 16 |
lolphp | modestlife | gaxwahr | <|sols|><|sot|>Syntax error, unexpected ')', expecting ')'<|eot|><|sol|>https://tio.run/##K8go@P/fxr4go0AhLb9Iw9rQ3k7z/38A<|eol|><|sor|>The first `)` in your error message is parsed by PHP as T_INLINE_HTML because `?>` ends a PHP part (`<?php ... ?>`) within the file.
<?php for(;1?>)
PHP Parse error: syntax ... | 7 |
lolphp | HenkPoley | gavhnvc | <|sols|><|sot|>Syntax error, unexpected ')', expecting ')'<|eot|><|sol|>https://tio.run/##K8go@P/fxr4go0AhLb9Iw9rQ3k7z/38A<|eol|><|sor|>Is that a valid syntax in PHP?<|eor|><|sor|>No, basically it says `for(;1`, with some noise around it.
Btw, link for Apollo (also confused) https://tio.run/##K8go@P/fxr4go0AhLb9Iw9rQ... | 7 |
lolphp | maweki | 9mpzwb | <|sols|><|sot|>Class autoloader throws an exception: the class is ... partially loaded<|eot|><|sol|>https://bugs.php.net/bug.php?id=76980<|eol|><|eols|><|endoftext|> | 52 |
lolphp | maweki | e7geedv | <|sols|><|sot|>Class autoloader throws an exception: the class is ... partially loaded<|eot|><|sol|>https://bugs.php.net/bug.php?id=76980<|eol|><|soopr|>The first comment is pure gold.
> I think the way it works now is fine: Foo could be *mostly defined except the interface*, there was no other problem with it, and PH... | 47 |
lolphp | b1ackcat | e7gkmhz | <|sols|><|sot|>Class autoloader throws an exception: the class is ... partially loaded<|eot|><|sol|>https://bugs.php.net/bug.php?id=76980<|eol|><|soopr|>The first comment is pure gold.
> I think the way it works now is fine: Foo could be *mostly defined except the interface*, there was no other problem with it, and PH... | 38 |
lolphp | cleeder | e7guhqc | <|sols|><|sot|>Class autoloader throws an exception: the class is ... partially loaded<|eot|><|sol|>https://bugs.php.net/bug.php?id=76980<|eol|><|soopr|>The first comment is pure gold.
> I think the way it works now is fine: Foo could be *mostly defined except the interface*, there was no other problem with it, and PH... | 15 |
lolphp | vita10gy | e7ifdtw | <|sols|><|sot|>Class autoloader throws an exception: the class is ... partially loaded<|eot|><|sol|>https://bugs.php.net/bug.php?id=76980<|eol|><|soopr|>The first comment is pure gold.
> I think the way it works now is fine: Foo could be *mostly defined except the interface*, there was no other problem with it, and PH... | 9 |
lolphp | dotancohen | e7li141 | <|sols|><|sot|>Class autoloader throws an exception: the class is ... partially loaded<|eot|><|sol|>https://bugs.php.net/bug.php?id=76980<|eol|><|sor|>[deleted]<|eor|><|sor|>PHP classes are instantiated every time a PHP script runs, so there's not really a distinction between static initialization failures and dynamic ... | 8 |
lolphp | pilif | e7i2dtv | <|sols|><|sot|>Class autoloader throws an exception: the class is ... partially loaded<|eot|><|sol|>https://bugs.php.net/bug.php?id=76980<|eol|><|sor|>And as always, there's /u/nikic as the voice of reason. <3<|eor|><|eols|><|endoftext|> | 7 |
lolphp | SirClueless | e7i2n2m | <|sols|><|sot|>Class autoloader throws an exception: the class is ... partially loaded<|eot|><|sol|>https://bugs.php.net/bug.php?id=76980<|eol|><|sor|>[deleted]<|eor|><|sor|>PHP classes are instantiated every time a PHP script runs, so there's not really a distinction between static initialization failures and dynamic ... | 7 |
lolphp | TheBuzzSaw | 9feh0h | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|eols|><|endoftext|> | 50 |
lolphp | maweki | e5whwpa | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>Facebook used PHP to become as big as it is?<|eor|><|sor|>And immediately added a somewhat sane type system.<|eor|><|eols|><|endoftext|> | 27 |
lolphp | mrexodia | e5wa242 | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>Facebook used PHP to become as big as it is?<|eor|><|eols|><|endoftext|> | 21 |
lolphp | jesseschalken | e5wacb0 | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>IIRC the whole conversion of their codebase to partially typed Hack was finished in 2014, and anybody who has said "Facebook uses PHP" since then has been wro... | 16 |
lolphp | redwall_hp | e5x6505 | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>Facebook used PHP to become as big as it is?<|eor|><|sor|>Because what would be the alternative in 2004?
All backend webdev was utter shit back then. Note th... | 16 |
lolphp | vytah | e5wwb17 | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>Facebook used PHP to become as big as it is?<|eor|><|sor|>Because what would be the alternative in 2004?
All backend webdev was utter shit back then. Note th... | 11 |
lolphp | BooCMB | e7kmnry | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>Now that HHVM doesnt have performance advantage over PHP7, what other avenues for growth are there, other than focusing on extended syntax?
The project is ob... | 11 |
lolphp | mellett68 | e5wdvym | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>Oh shit, hack is still going<|eor|><|eols|><|endoftext|> | 10 |
lolphp | squiggleslash | e5y2csw | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>Facebook used PHP to become as big as it is?<|eor|><|sor|>Because what would be the alternative in 2004?
All backend webdev was utter shit back then. Note th... | 10 |
lolphp | vytah | e5x7ugz | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>Facebook used PHP to become as big as it is?<|eor|><|sor|>Because what would be the alternative in 2004?
All backend webdev was utter shit back then. Note th... | 9 |
lolphp | TorbenKoehn | e6g2jkb | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>Facebook used PHP to become as big as it is?<|eor|><|sor|>And immediately added a somewhat sane type system.<|eor|><|sor|>Well, PHP is getting a sane type-sys... | 8 |
lolphp | Hathery | e5x181s | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>From the outside looking in, the most interesting part of the post is the note about their new release cadence:
> As we expect the language to evolve rapidly... | 6 |
lolphp | wafflePower1 | e6b0iur | <|sols|><|sot|>Sooo can we stop saying "Facebook uses PHP" yet?<|eot|><|sol|>https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html<|eol|><|sor|>Facebook chose PHP and in the end reinvented Java. 10/10 would read the story again<|eor|><|eols|><|endoftext|> | 5 |
lolphp | bwoebi | 76vg5a | <|sols|><|sot|>[] ** [] === 0 (but e.g. [] - [] will fail)<|eot|><|sol|>https://3v4l.org/i06FN<|eol|><|eols|><|endoftext|> | 55 |
lolphp | John2143658709 | dohc6e5 | <|sols|><|sot|>[] ** [] === 0 (but e.g. [] - [] will fail)<|eot|><|sol|>https://3v4l.org/i06FN<|eol|><|sor|>On today's episode of "Is it a javascript feature or a php bug"...<|eor|><|eols|><|endoftext|> | 33 |
lolphp | Grimy_ | dohgohp | <|sols|><|sot|>[] ** [] === 0 (but e.g. [] - [] will fail)<|eot|><|sol|>https://3v4l.org/i06FN<|eol|><|sor|>But wait, [it gets better](https://3v4l.org/tqE64)!<|eor|><|eols|><|endoftext|> | 22 |
lolphp | bwoebi | dohjb5u | <|sols|><|sot|>[] ** [] === 0 (but e.g. [] - [] will fail)<|eot|><|sol|>https://3v4l.org/i06FN<|eol|><|sor|>who would do that? you just got your types wrong and want to blame PHP<|eor|><|soopr|>I am blaming PHP for not properly yelling at me here (I expect an Error: unsupported operand types)<|eoopr|><|eols|><|endoftex... | 17 |
lolphp | bwoebi | doheljg | <|sols|><|sot|>[] ** [] === 0 (but e.g. [] - [] will fail)<|eot|><|sol|>https://3v4l.org/i06FN<|eol|><|sor|>On today's episode of "Is it a javascript feature or a php bug"...<|eor|><|soopr|>Well, in Javascript `[] - []` will work perfectly though. So, either way, it's inconsistent in PHP.<|eoopr|><|eols|><|endoftext|> | 15 |
lolphp | bj_christianson | doi31ya | <|sols|><|sot|>[] ** [] === 0 (but e.g. [] - [] will fail)<|eot|><|sol|>https://3v4l.org/i06FN<|eol|><|sor|>who would do that? you just got your types wrong and want to blame PHP<|eor|><|soopr|>I am blaming PHP for not properly yelling at me here (I expect an Error: unsupported operand types)<|eoopr|><|sor|>FTFY:
I am ... | 9 |
lolphp | jfb1337 | doi11m3 | <|sols|><|sot|>[] ** [] === 0 (but e.g. [] - [] will fail)<|eot|><|sol|>https://3v4l.org/i06FN<|eol|><|sor|>who would do that? you just got your types wrong and want to blame PHP<|eor|><|soopr|>I am blaming PHP for not properly yelling at me here (I expect an Error: unsupported operand types)<|eoopr|><|sor|>FTFY:
I am ... | 8 |
lolphp | bwoebi | doi0653 | <|sols|><|sot|>[] ** [] === 0 (but e.g. [] - [] will fail)<|eot|><|sol|>https://3v4l.org/i06FN<|eol|><|sor|>who would do that? you just got your types wrong and want to blame PHP<|eor|><|soopr|>I am blaming PHP for not properly yelling at me here (I expect an Error: unsupported operand types)<|eoopr|><|sor|>FTFY:
I am ... | 8 |
lolphp | carlos_vini | dohx6l9 | <|sols|><|sot|>[] ** [] === 0 (but e.g. [] - [] will fail)<|eot|><|sol|>https://3v4l.org/i06FN<|eol|><|sor|>who would do that? you just got your types wrong and want to blame PHP<|eor|><|soopr|>I am blaming PHP for not properly yelling at me here (I expect an Error: unsupported operand types)<|eoopr|><|sor|>with that I... | 7 |
lolphp | Pesthuf | dolp463 | <|sols|><|sot|>[] ** [] === 0 (but e.g. [] - [] will fail)<|eot|><|sol|>https://3v4l.org/i06FN<|eol|><|sor|>Will this be the birth of PHFuck?<|eor|><|eols|><|endoftext|> | 6 |
lolphp | ProjectAmmeh | 2zsuqj | <|sols|><|sot|>PHP Easter Eggs - Because server software needs easter eggs too!<|eot|><|sol|>http://www.0php.com/php_easter_egg.php<|eol|><|eols|><|endoftext|> | 50 |
lolphp | barubary | cpm117f | <|sols|><|sot|>PHP Easter Eggs - Because server software needs easter eggs too!<|eot|><|sol|>http://www.0php.com/php_easter_egg.php<|eol|><|sor|>... Except almost all of these have been removed in newer versions of PHP.
Yet another quality shitpost bashing PHP for things that aren't a problem. <|eor|><|sor|>> almost a... | 45 |
lolphp | suspiciously_calm | cpmi4zh | <|sols|><|sot|>PHP Easter Eggs - Because server software needs easter eggs too!<|eot|><|sol|>http://www.0php.com/php_easter_egg.php<|eol|><|sor|>> If you see such a URL in your website logs, it may be because someone is trying to determine if your server is running PHP and attempting to discover weaknesses in your syst... | 35 |
lolphp | ProjectAmmeh | cplzd9n | <|sols|><|sot|>PHP Easter Eggs - Because server software needs easter eggs too!<|eot|><|sol|>http://www.0php.com/php_easter_egg.php<|eol|><|sor|>... Except almost all of these have been removed in newer versions of PHP.
Yet another quality shitpost bashing PHP for things that aren't a problem. <|eor|><|soopr|>>ELEPHAN... | 26 |
lolphp | gu3st12 | cplz2ew | <|sols|><|sot|>PHP Easter Eggs - Because server software needs easter eggs too!<|eot|><|sol|>http://www.0php.com/php_easter_egg.php<|eol|><|sor|>... Except almost all of these have been removed in newer versions of PHP.
Yet another quality shitpost bashing PHP for things that aren't a problem. <|eor|><|eols|><|endofte... | 25 |
lolphp | merreborn | cpm6iuk | <|sols|><|sot|>PHP Easter Eggs - Because server software needs easter eggs too!<|eot|><|sol|>http://www.0php.com/php_easter_egg.php<|eol|><|sor|>... Except almost all of these have been removed in newer versions of PHP.
Yet another quality shitpost bashing PHP for things that aren't a problem. <|eor|><|soopr|>>ELEPHAN... | 19 |
lolphp | captainramen | cpnxoqg | <|sols|><|sot|>PHP Easter Eggs - Because server software needs easter eggs too!<|eot|><|sol|>http://www.0php.com/php_easter_egg.php<|eol|><|sor|>... Except almost all of these have been removed in newer versions of PHP.
Yet another quality shitpost bashing PHP for things that aren't a problem. <|eor|><|sor|>Just becau... | 12 |
lolphp | cite-reader | cpo4jew | <|sols|><|sot|>PHP Easter Eggs - Because server software needs easter eggs too!<|eot|><|sol|>http://www.0php.com/php_easter_egg.php<|eol|><|sor|>... Except almost all of these have been removed in newer versions of PHP.
Yet another quality shitpost bashing PHP for things that aren't a problem. <|eor|><|sor|>[deleted]<... | 7 |
lolphp | edave64 | cpru73f | <|sols|><|sot|>PHP Easter Eggs - Because server software needs easter eggs too!<|eot|><|sol|>http://www.0php.com/php_easter_egg.php<|eol|><|sor|>... Except almost all of these have been removed in newer versions of PHP.
Yet another quality shitpost bashing PHP for things that aren't a problem. <|eor|><|sor|>[deleted]<... | 7 |
lolphp | Sandbucketman | cplzh5r | <|sols|><|sot|>PHP Easter Eggs - Because server software needs easter eggs too!<|eot|><|sol|>http://www.0php.com/php_easter_egg.php<|eol|><|sor|>... Except almost all of these have been removed in newer versions of PHP.
Yet another quality shitpost bashing PHP for things that aren't a problem. <|eor|><|sor|>It's great... | 5 |
lolphp | pitiless | 2sxic4 | <|sols|><|sot|>'new' keyword returning null - only in PHP<|eot|><|sol|>http://article.gmane.org/gmane.comp.php.devel/93547<|eol|><|eols|><|endoftext|> | 50 |
lolphp | barubary | cntt4ky | <|sols|><|sot|>'new' keyword returning null - only in PHP<|eot|><|sol|>http://article.gmane.org/gmane.comp.php.devel/93547<|eol|><|sor|>>
<?php
$foo = new IntlGregorianCalendar(new StdClass);
//Output: Catchable fatal error: Object of class stdClass could not be converted to string in..
?>
> Despite th... | 38 |
lolphp | greyphilosopher | cntwb5s | <|sols|><|sot|>'new' keyword returning null - only in PHP<|eot|><|sol|>http://article.gmane.org/gmane.comp.php.devel/93547<|eol|><|sor|>C's memory allocation functions return NULL on failure. C++'s are supposed to throw, but given how many people compile without exceptions, it's always worth remembering that they *migh... | 26 |
lolphp | barubary | cnu0uil | <|sols|><|sot|>'new' keyword returning null - only in PHP<|eot|><|sol|>http://article.gmane.org/gmane.comp.php.devel/93547<|eol|><|sor|>link to where he gets told this is a feature not a bug?<|eor|><|sor|>Not quite: http://article.gmane.org/gmane.comp.php.devel/93549<|eor|><|eols|><|endoftext|> | 21 |
lolphp | cythrawll | cnu7dsb | <|sols|><|sot|>'new' keyword returning null - only in PHP<|eot|><|sol|>http://article.gmane.org/gmane.comp.php.devel/93547<|eol|><|sor|>>
<?php
$foo = new IntlGregorianCalendar(new StdClass);
//Output: Catchable fatal error: Object of class stdClass could not be converted to string in..
?>
> Despite th... | 18 |
lolphp | ZorbaTHut | cntsaz4 | <|sols|><|sot|>'new' keyword returning null - only in PHP<|eot|><|sol|>http://article.gmane.org/gmane.comp.php.devel/93547<|eol|><|sor|>C's memory allocation functions return NULL on failure. C++'s are supposed to throw, but given how many people compile without exceptions, it's always worth remembering that they *migh... | 16 |
lolphp | barubary | cntt2tp | <|sols|><|sot|>'new' keyword returning null - only in PHP<|eot|><|sol|>http://article.gmane.org/gmane.comp.php.devel/93547<|eol|><|sor|>C's memory allocation functions return NULL on failure. C++'s are supposed to throw, but given how many people compile without exceptions, it's always worth remembering that they *migh... | 14 |
lolphp | greyphilosopher | cntwecb | <|sols|><|sot|>'new' keyword returning null - only in PHP<|eot|><|sol|>http://article.gmane.org/gmane.comp.php.devel/93547<|eol|><|sor|>link to where he gets told this is a feature not a bug?<|eor|><|sor|>This. It's the community of developers that cause PHP to be so bad.<|eor|><|eols|><|endoftext|> | 13 |
lolphp | Rainfly_X | cnudhii | <|sols|><|sot|>'new' keyword returning null - only in PHP<|eot|><|sol|>http://article.gmane.org/gmane.comp.php.devel/93547<|eol|><|sor|>link to where he gets told this is a feature not a bug?<|eor|><|sor|>Not quite: http://article.gmane.org/gmane.comp.php.devel/93549<|eor|><|sor|>Oh my god.<|eor|><|eols|><|endoftext|> | 7 |
lolphp | HildartheDorf | cnu7fqp | <|sols|><|sot|>'new' keyword returning null - only in PHP<|eot|><|sol|>http://article.gmane.org/gmane.comp.php.devel/93547<|eol|><|sor|>C's memory allocation functions return NULL on failure. C++'s are supposed to throw, but given how many people compile without exceptions, it's always worth remembering that they *migh... | 6 |
lolphp | vytah | 27rvrf | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|eols|><|endoftext|> | 52 |
lolphp | Banane9 | ci3rqsl | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>How does that even happen?
Also : Notice how nobody cared, *for four months*.<|eor|><|eols|><|endoftext|> | 26 |
lolphp | DoctorWaluigiTime | ci3s3lm | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>Meh, bugs happen.<|eor|><|sor|>Nice try, PHP team.<|eor|><|eols|><|endoftext|> | 25 |
lolphp | thedarkhaze | ci3xcxn | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>Honest question: PHP development... do they even have regression tests? How does this stuff even get *merged* let alone released?<|eor|><|sor|>They have tests they just fail
ht... | 18 |
lolphp | Drainedsoul | ci4181d | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>I'm surprised they didn't just update the manual and announce that it works as intended.<|eor|><|sor|>Well it'd make sense, someone might be relying on this behaviour to impleme... | 17 |
lolphp | ajmarks | ci3wojc | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>I'm surprised they didn't just update the manual and announce that it works as intended.<|eor|><|eols|><|endoftext|> | 14 |
lolphp | shillbert | ci3zqwc | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>Honest question: PHP development... do they even have regression tests? How does this stuff even get *merged* let alone released?<|eor|><|sor|>They have tests they just fail
ht... | 14 |
lolphp | merreborn | ci4178u | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>Meh, bugs happen.<|eor|><|sor|>I'm sorry, but this is such a lame fucking excuse. On one hand you have a bug in a business application - maybe it costs $1,000 or even $10,000 to... | 13 |
lolphp | ajmarks | ci41bh2 | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>I'm surprised they didn't just update the manual and announce that it works as intended.<|eor|><|sor|>Well it'd make sense, someone might be relying on this behaviour to impleme... | 11 |
lolphp | Trig90 | ci3uu0h | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>How does that even happen?
Also : Notice how nobody cared, *for four months*.<|eor|><|sor|>Nobody uses finally /sarcasm<|eor|><|eols|><|endoftext|> | 9 |
lolphp | ElusiveGuy | ci4dxxw | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>Meh, bugs happen.<|eor|><|sor|>I'm sorry, but this is such a lame fucking excuse. On one hand you have a bug in a business application - maybe it costs $1,000 or even $10,000 to... | 9 |
lolphp | michaelpb | ci3uyju | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>Honest question: PHP development... do they even have regression tests? How does this stuff even get *merged* let alone released?<|eor|><|eols|><|endoftext|> | 8 |
lolphp | Banane9 | ci3yvd8 | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>Honest question: PHP development... do they even have regression tests? How does this stuff even get *merged* let alone released?<|eor|><|sor|>They have tests they just fail
ht... | 8 |
lolphp | captainramen | ci41nwi | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>Meh, bugs happen.<|eor|><|sor|>I'm sorry, but this is such a lame fucking excuse. On one hand you have a bug in a business application - maybe it costs $1,000 or even $10,000 to... | 8 |
lolphp | captainramen | ci3za5c | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>Meh, bugs happen.<|eor|><|sor|>I'm sorry, but this is such a lame fucking excuse. On one hand you have a bug in a business application - maybe it costs $1,000 or even $10,000 to... | 7 |
lolphp | iconoklast | ci4b1sx | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>How does that even happen?
Also : Notice how nobody cared, *for four months*.<|eor|><|sor|>Nobody uses finally /sarcasm<|eor|><|sor|>It probably actually is true that not many ... | 7 |
lolphp | vytah | ci8h8kb | <|sols|><|sot|>In case of nested finally blocks, the outer block loops forever<|eot|><|sol|>https://bugs.php.net/bug.php?id=66608<|eol|><|sor|>Honest question: PHP development... do they even have regression tests? How does this stuff even get *merged* let alone released?<|eor|><|sor|>They have tests they just fail
ht... | 7 |
lolphp | midir | 20eisu | <|soss|><|sot|>Array errors<|eot|><|sost|> error_reporting(-1); // show all possible errors
$obj = new stdclass();
$arr = array();
var_dump($arr['foo']); // Notice: Undefined index
var_dump($arr[$obj]); // Warning: Illegal offset type
$arr = null;
var_dump($arr['foo']); // No error
var_dump($arr[$obj]); //... | 50 |
lolphp | lisp-case | cg2l9xe | <|soss|><|sot|>Array errors<|eot|><|sost|> error_reporting(-1); // show all possible errors
$obj = new stdclass();
$arr = array();
var_dump($arr['foo']); // Notice: Undefined index
var_dump($arr[$obj]); // Warning: Illegal offset type
$arr = null;
var_dump($arr['foo']); // No error
var_dump($arr[$obj]); //... | 36 |
lolphp | InconsiderateBastard | cg2vmqs | <|soss|><|sot|>Array errors<|eot|><|sost|> error_reporting(-1); // show all possible errors
$obj = new stdclass();
$arr = array();
var_dump($arr['foo']); // Notice: Undefined index
var_dump($arr[$obj]); // Warning: Illegal offset type
$arr = null;
var_dump($arr['foo']); // No error
var_dump($arr[$obj]); //... | 13 |
lolphp | suspiciously_calm | cg2m87j | <|soss|><|sot|>Array errors<|eot|><|sost|> error_reporting(-1); // show all possible errors
$obj = new stdclass();
$arr = array();
var_dump($arr['foo']); // Notice: Undefined index
var_dump($arr[$obj]); // Warning: Illegal offset type
$arr = null;
var_dump($arr['foo']); // No error
var_dump($arr[$obj]); //... | 7 |
lolphp | catcradle5 | 1z2kep | <|soss|><|sot|>A top tech company I recently interviewed for told me<|eot|><|sost|>that all employees were free, and even encouraged, to write code and personal scripts in whatever language they like. They had a totally open ecosystem and listed all the team members who were experts in X language. Java, Python, Scala, ... | 54 |
lolphp | ma-int | cfpy2v2 | <|soss|><|sot|>A top tech company I recently interviewed for told me<|eot|><|sost|>that all employees were free, and even encouraged, to write code and personal scripts in whatever language they like. They had a totally open ecosystem and listed all the team members who were experts in X language. Java, Python, Scala, ... | 43 |
lolphp | Serialk | cfq0itk | <|soss|><|sot|>A top tech company I recently interviewed for told me<|eot|><|sost|>that all employees were free, and even encouraged, to write code and personal scripts in whatever language they like. They had a totally open ecosystem and listed all the team members who were experts in X language. Java, Python, Scala, ... | 17 |
lolphp | MonadicTraversal | cfq7cev | <|soss|><|sot|>A top tech company I recently interviewed for told me<|eot|><|sost|>that all employees were free, and even encouraged, to write code and personal scripts in whatever language they like. They had a totally open ecosystem and listed all the team members who were experts in X language. Java, Python, Scala, ... | 16 |
lolphp | merreborn | cfqcu5p | <|soss|><|sot|>A top tech company I recently interviewed for told me<|eot|><|sost|>that all employees were free, and even encouraged, to write code and personal scripts in whatever language they like. They had a totally open ecosystem and listed all the team members who were experts in X language. Java, Python, Scala, ... | 15 |
lolphp | cfreak2399 | cfq9cl9 | <|soss|><|sot|>A top tech company I recently interviewed for told me<|eot|><|sost|>that all employees were free, and even encouraged, to write code and personal scripts in whatever language they like. They had a totally open ecosystem and listed all the team members who were experts in X language. Java, Python, Scala, ... | 8 |
lolphp | jsanc623 | cfq0khd | <|soss|><|sot|>A top tech company I recently interviewed for told me<|eot|><|sost|>that all employees were free, and even encouraged, to write code and personal scripts in whatever language they like. They had a totally open ecosystem and listed all the team members who were experts in X language. Java, Python, Scala, ... | 7 |
lolphp | Sarcastinator | cfrmx0s | <|soss|><|sot|>A top tech company I recently interviewed for told me<|eot|><|sost|>that all employees were free, and even encouraged, to write code and personal scripts in whatever language they like. They had a totally open ecosystem and listed all the team members who were experts in X language. Java, Python, Scala, ... | 6 |
lolphp | xiongchiamiov | cfqk513 | <|soss|><|sot|>A top tech company I recently interviewed for told me<|eot|><|sost|>that all employees were free, and even encouraged, to write code and personal scripts in whatever language they like. They had a totally open ecosystem and listed all the team members who were experts in X language. Java, Python, Scala, ... | 6 |
lolphp | n1c0_ds | cfq0mtd | <|soss|><|sot|>A top tech company I recently interviewed for told me<|eot|><|sost|>that all employees were free, and even encouraged, to write code and personal scripts in whatever language they like. They had a totally open ecosystem and listed all the team members who were experts in X language. Java, Python, Scala, ... | 5 |
lolphp | allthediamonds | 1vyy50 | <|sols|><|sot|>Fill in the blanks!<|eot|><|sol|>http://i.imgur.com/Wtg4OQZ.png<|eol|><|eols|><|endoftext|> | 51 |
lolphp | EmptyTon | cex4dg7 | <|sols|><|sot|>Fill in the blanks!<|eot|><|sol|>http://i.imgur.com/Wtg4OQZ.png<|eol|><|sor|> $x = 1;
$y = 1.1;
or some combination like that, because [float keys are converted to ints](http://us1.php.net/manual/en/language.types.array.php). Whee, php<|eor|><|eols|><|endoftext|> | 23 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.