subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | maweki | czybqe4 | <|sols|><|sot|>"phpversions.info now highlights PHP versions with known security issues", they could've saved themselves the effort and just painted everything red though<|eot|><|sol|>http://phpversions.info/shared-hosting/<|eol|><|sor|>So all the green ones have unknown security issues?<|eor|><|eols|><|endoftext|> | 44 |
lolphp | tommorris | czykhor | <|sols|><|sot|>"phpversions.info now highlights PHP versions with known security issues", they could've saved themselves the effort and just painted everything red though<|eot|><|sol|>http://phpversions.info/shared-hosting/<|eol|><|sor|>[deleted]<|eor|><|sor|>...and PHP has a culture of shared hosting where those secur... | 29 |
lolphp | Liorithiel | czyerhh | <|sols|><|sot|>"phpversions.info now highlights PHP versions with known security issues", they could've saved themselves the effort and just painted everything red though<|eot|><|sol|>http://phpversions.info/shared-hosting/<|eol|><|sor|>Does it take into consideration that people backport security patches to earlier ve... | 9 |
lolphp | Liorithiel | czydxbd | <|sols|><|sot|>"phpversions.info now highlights PHP versions with known security issues", they could've saved themselves the effort and just painted everything red though<|eot|><|sol|>http://phpversions.info/shared-hosting/<|eol|><|sor|>Does it take into consideration that people backport security patches to earlier ve... | 5 |
lolphp | vytah | czyf6e8 | <|sols|><|sot|>"phpversions.info now highlights PHP versions with known security issues", they could've saved themselves the effort and just painted everything red though<|eot|><|sol|>http://phpversions.info/shared-hosting/<|eol|><|sor|>Does it take into consideration that people backport security patches to earlier ve... | 5 |
lolphp | iheartrms | 3a3nhi | <|sols|><|sot|>PHP :: Sec Bug #69646 :: OS command injection vulnerability in escapeshellarg<|eot|><|sol|>https://bugs.php.net/bug.php?id=69646<|eol|><|eols|><|endoftext|> | 35 |
lolphp | vytah | cs961f0 | <|sols|><|sot|>PHP :: Sec Bug #69646 :: OS command injection vulnerability in escapeshellarg<|eot|><|sol|>https://bugs.php.net/bug.php?id=69646<|eol|><|sor|>Wow. I would have expected at least some kind of convolutedness beyond the backslash in the end. This almsot looks like a unit test one would come up with after wr... | 21 |
lolphp | dpoon | cs9c8mu | <|sols|><|sot|>PHP :: Sec Bug #69646 :: OS command injection vulnerability in escapeshellarg<|eot|><|sol|>https://bugs.php.net/bug.php?id=69646<|eol|><|sor|>Wow. I would have expected at least some kind of convolutedness beyond the backslash in the end. This almsot looks like a unit test one would come up with after wr... | 17 |
lolphp | vytah | cs9czjk | <|sols|><|sot|>PHP :: Sec Bug #69646 :: OS command injection vulnerability in escapeshellarg<|eot|><|sol|>https://bugs.php.net/bug.php?id=69646<|eol|><|sor|>Wow. I would have expected at least some kind of convolutedness beyond the backslash in the end. This almsot looks like a unit test one would come up with after wr... | 17 |
lolphp | andsens | cs8zpdh | <|sols|><|sot|>PHP :: Sec Bug #69646 :: OS command injection vulnerability in escapeshellarg<|eot|><|sol|>https://bugs.php.net/bug.php?id=69646<|eol|><|sor|>Wow. I would have expected at least some kind of convolutedness beyond the backslash in the end. This almsot looks like a unit test one would come up with after wr... | 13 |
lolphp | gu3st12 | cs91jwx | <|sols|><|sot|>PHP :: Sec Bug #69646 :: OS command injection vulnerability in escapeshellarg<|eot|><|sol|>https://bugs.php.net/bug.php?id=69646<|eol|><|sor|>Wow. I would have expected at least some kind of convolutedness beyond the backslash in the end. This almsot looks like a unit test one would come up with after wr... | 10 |
lolphp | kovensky | cs9b14p | <|sols|><|sot|>PHP :: Sec Bug #69646 :: OS command injection vulnerability in escapeshellarg<|eot|><|sol|>https://bugs.php.net/bug.php?id=69646<|eol|><|sor|>Wow. I would have expected at least some kind of convolutedness beyond the backslash in the end. This almsot looks like a unit test one would come up with after wr... | 10 |
lolphp | OneWingedShark | csa1pwv | <|sols|><|sot|>PHP :: Sec Bug #69646 :: OS command injection vulnerability in escapeshellarg<|eot|><|sol|>https://bugs.php.net/bug.php?id=69646<|eol|><|sor|>Wow. I would have expected at least some kind of convolutedness beyond the backslash in the end. This almsot looks like a unit test one would come up with after wr... | 8 |
lolphp | mort96 | cs97z3f | <|sols|><|sot|>PHP :: Sec Bug #69646 :: OS command injection vulnerability in escapeshellarg<|eot|><|sol|>https://bugs.php.net/bug.php?id=69646<|eol|><|sor|>Wow. I would have expected at least some kind of convolutedness beyond the backslash in the end. This almsot looks like a unit test one would come up with after wr... | 7 |
lolphp | huf | 2zd5d7 | <|sols|><|sot|>list() splits strings if they come out of reset()?!<|eot|><|sol|>http://3v4l.org/Ha1FX<|eol|><|eols|><|endoftext|> | 38 |
lolphp | allthediamonds | cphxubq | <|sols|><|sot|>list() splits strings if they come out of reset()?!<|eot|><|sol|>http://3v4l.org/Ha1FX<|eol|><|soopr|>list() also seems to split if the string comes from a variable instead of a literal. what. the. fuck.<|eoopr|><|sor|>http://3v4l.org/tlABL
WHAAAAT. What.<|eor|><|eols|><|endoftext|> | 30 |
lolphp | huf | cphsuez | <|sols|><|sot|>list() splits strings if they come out of reset()?!<|eot|><|sol|>http://3v4l.org/Ha1FX<|eol|><|soopr|>list() also seems to split if the string comes from a variable instead of a literal. what. the. fuck.<|eoopr|><|eols|><|endoftext|> | 20 |
lolphp | CliffEdgeOrg | cphz66q | <|sols|><|sot|>list() splits strings if they come out of reset()?!<|eot|><|sol|>http://3v4l.org/Ha1FX<|eol|><|sor|>Well.. I'm not an expert(tm) but we can guess some explanation if you know that you can access consecutive letters of a string variable in an array notation like this:
$var = "dupa";
echo $var[0].... | 17 |
lolphp | moartoast | cpih6se | <|sols|><|sot|>list() splits strings if they come out of reset()?!<|eot|><|sol|>http://3v4l.org/Ha1FX<|eol|><|soopr|>list() also seems to split if the string comes from a variable instead of a literal. what. the. fuck.<|eoopr|><|sor|>http://3v4l.org/tlABL
WHAAAAT. What.<|eor|><|sor|>... good grief<|eor|><|eols|><|endo... | 9 |
lolphp | Various_Pickles | cpjktdy | <|sols|><|sot|>list() splits strings if they come out of reset()?!<|eot|><|sol|>http://3v4l.org/Ha1FX<|eol|><|sor|>So, PHP looked at String.split(), varargs, and tuples in other languages and came up with syntax that manages to be a fucked up mush of all of them at once?<|eor|><|eols|><|endoftext|> | 5 |
lolphp | McGlockenshire | 2hgpkq | <|sols|><|sot|>namespace foo { use const true as false; var_dump(false); } // WHY, PHP!? WHY!?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2hf8q0/what_is_the_difference_between_while_true_vs/cksasrj<|eol|><|eols|><|endoftext|> | 38 |
lolphp | jadkik94 | ckshfoo | <|sols|><|sot|>namespace foo { use const true as false; var_dump(false); } // WHY, PHP!? WHY!?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2hf8q0/what_is_the_difference_between_while_true_vs/cksasrj<|eol|><|sor|>You beat me to it by 3 minutes!
The funniest thing is this though:
> I plan to fix this for PHP 7<|e... | 22 |
lolphp | ZiggyTheHamster | cksp4yi | <|sols|><|sot|>namespace foo { use const true as false; var_dump(false); } // WHY, PHP!? WHY!?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2hf8q0/what_is_the_difference_between_while_true_vs/cksasrj<|eol|><|sor|>I think the more confusing part is why `false` and `\false` are different. That makes zero sense. Why ... | 15 |
lolphp | vytah | cksiwam | <|sols|><|sot|>namespace foo { use const true as false; var_dump(false); } // WHY, PHP!? WHY!?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2hf8q0/what_is_the_difference_between_while_true_vs/cksasrj<|eol|><|sor|>The author of that comment is the same guy as in here: http://www.reddit.com/r/lolphp/comments/2h9nhp/... | 8 |
lolphp | McGlockenshire | cksjptf | <|sols|><|sot|>namespace foo { use const true as false; var_dump(false); } // WHY, PHP!? WHY!?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2hf8q0/what_is_the_difference_between_while_true_vs/cksasrj<|eol|><|sor|>The author of that comment is the same guy as in here: http://www.reddit.com/r/lolphp/comments/2h9nhp/... | 6 |
lolphp | GandhiNotGhandi | cksq62y | <|sols|><|sot|>namespace foo { use const true as false; var_dump(false); } // WHY, PHP!? WHY!?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2hf8q0/what_is_the_difference_between_while_true_vs/cksasrj<|eol|><|sor|>[deleted]<|eor|><|sor|>[This seems to be the case.](http://3v4l.org/VLj2Q)<|eor|><|eols|><|endoftext|> | 5 |
lolphp | ZiggyTheHamster | ckxxnhd | <|sols|><|sot|>namespace foo { use const true as false; var_dump(false); } // WHY, PHP!? WHY!?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2hf8q0/what_is_the_difference_between_while_true_vs/cksasrj<|eol|><|sor|>I think the more confusing part is why `false` and `\false` are different. That makes zero sense. Why ... | 5 |
lolphp | Rangi42 | 2fxgu7 | <|sols|><|sot|>The Codeless Code: Case 161: Triangle ("the Abbey of Hidden Absurdities, where PHP is written")<|eot|><|sol|>http://thecodelesscode.com/case/161<|eol|><|eols|><|endoftext|> | 38 |
lolphp | Rangi42 | ckdq7lx | <|sols|><|sot|>The Codeless Code: Case 161: Triangle ("the Abbey of Hidden Absurdities, where PHP is written")<|eot|><|sol|>http://thecodelesscode.com/case/161<|eol|><|sor|>I, uh, don't get it. Is it about cyclic comparisons?<|eor|><|soopr|>Yeah. "123" < "456A" and "456A" < "78", but "78" < "123".<|eoopr|><|eols|><|end... | 29 |
lolphp | Rangi42 | cke7cla | <|sols|><|sot|>The Codeless Code: Case 161: Triangle ("the Abbey of Hidden Absurdities, where PHP is written")<|eot|><|sol|>http://thecodelesscode.com/case/161<|eol|><|sor|>I, uh, don't get it. Is it about cyclic comparisons?<|eor|><|soopr|>Yeah. "123" < "456A" and "456A" < "78", but "78" < "123".<|eoopr|><|sor|>What h... | 20 |
lolphp | ajmarks | cke9l44 | <|sols|><|sot|>The Codeless Code: Case 161: Triangle ("the Abbey of Hidden Absurdities, where PHP is written")<|eot|><|sol|>http://thecodelesscode.com/case/161<|eol|><|sor|>I, uh, don't get it. Is it about cyclic comparisons?<|eor|><|soopr|>Yeah. "123" < "456A" and "456A" < "78", but "78" < "123".<|eoopr|><|sor|>What h... | 14 |
lolphp | allthediamonds | ckdpj1b | <|sols|><|sot|>The Codeless Code: Case 161: Triangle ("the Abbey of Hidden Absurdities, where PHP is written")<|eot|><|sol|>http://thecodelesscode.com/case/161<|eol|><|sor|>I, uh, don't get it. Is it about cyclic comparisons?<|eor|><|eols|><|endoftext|> | 13 |
lolphp | Rangi42 | ckek8an | <|sols|><|sot|>The Codeless Code: Case 161: Triangle ("the Abbey of Hidden Absurdities, where PHP is written")<|eot|><|sol|>http://thecodelesscode.com/case/161<|eol|><|sor|>I, uh, don't get it. Is it about cyclic comparisons?<|eor|><|soopr|>Yeah. "123" < "456A" and "456A" < "78", but "78" < "123".<|eoopr|><|sor|>What h... | 12 |
lolphp | allthediamonds | ckdqhs2 | <|sols|><|sot|>The Codeless Code: Case 161: Triangle ("the Abbey of Hidden Absurdities, where PHP is written")<|eot|><|sol|>http://thecodelesscode.com/case/161<|eol|><|sor|>I, uh, don't get it. Is it about cyclic comparisons?<|eor|><|soopr|>Yeah. "123" < "456A" and "456A" < "78", but "78" < "123".<|eoopr|><|sor|>Oh, wo... | 9 |
lolphp | knaveofspades | ckegdff | <|sols|><|sot|>The Codeless Code: Case 161: Triangle ("the Abbey of Hidden Absurdities, where PHP is written")<|eot|><|sol|>http://thecodelesscode.com/case/161<|eol|><|sor|>I, uh, don't get it. Is it about cyclic comparisons?<|eor|><|soopr|>Yeah. "123" < "456A" and "456A" < "78", but "78" < "123".<|eoopr|><|sor|>Oh, wo... | 7 |
lolphp | eryq | cke53ms | <|sols|><|sot|>The Codeless Code: Case 161: Triangle ("the Abbey of Hidden Absurdities, where PHP is written")<|eot|><|sol|>http://thecodelesscode.com/case/161<|eol|><|sor|>I, uh, don't get it. Is it about cyclic comparisons?<|eor|><|soopr|>Yeah. "123" < "456A" and "456A" < "78", but "78" < "123".<|eoopr|><|sor|>What h... | 7 |
lolphp | Banane9 | ckemvwq | <|sols|><|sot|>The Codeless Code: Case 161: Triangle ("the Abbey of Hidden Absurdities, where PHP is written")<|eot|><|sol|>http://thecodelesscode.com/case/161<|eol|><|sor|>I, uh, don't get it. Is it about cyclic comparisons?<|eor|><|soopr|>Yeah. "123" < "456A" and "456A" < "78", but "78" < "123".<|eoopr|><|sor|>Same l... | 5 |
lolphp | jamwaffles | 1q41hm | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|eols|><|endoftext|> | 36 |
lolphp | jamwaffles | cd8xlwu | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|soopr|>Why is `$more_entropy` even an argument, and an optional one at that? Surely if you want a unique ID you don't want to have to remember to pass an additional argument that:
> ...increases the li... | 24 |
lolphp | merreborn | cd94jiw | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|sor|>A couple of gems from the page:
> ...in fact without being passed any additional parameters *the return value is little different from microtime()*
and
> Under Cygwin, the more_entropy must be ... | 20 |
lolphp | berkes | cd944vn | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|soopr|>Why is `$more_entropy` even an argument, and an optional one at that? Surely if you want a unique ID you don't want to have to remember to pass an additional argument that:
> ...increases the li... | 18 |
lolphp | tdammers | cd96let | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|sor|>Also, the docs make it clear that this is pretty much just some form of MD5(microtime())
Edit: It's not even that. It's just microtime(). Here's the code:
gettimeofday((struct timeval *) &t... | 13 |
lolphp | ajmarks | cd90p5d | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|sor|>Also, the docs make it clear that this is pretty much just some form of MD5(microtime())
Edit: It's not even that. It's just microtime(). Here's the code:
gettimeofday((struct timeval *) &t... | 12 |
lolphp | merreborn | cd94p7e | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|soopr|>Why is `$more_entropy` even an argument, and an optional one at that? Surely if you want a unique ID you don't want to have to remember to pass an additional argument that:
> ...increases the li... | 9 |
lolphp | djsumdog | cd95nbg | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|soopr|>Why is `$more_entropy` even an argument, and an optional one at that? Surely if you want a unique ID you don't want to have to remember to pass an additional argument that:
> ...increases the li... | 9 |
lolphp | Sarcastinator | cd9mhha | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|sor|>The LOL for me is that PHP has all these similar, related yet somehow different functions, with the exact same purpose in totally unrelated names. Like [uniqid](http://php.net/manual/en/function.un... | 7 |
lolphp | andsens | cd97f43 | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|sor|>> more_entropy: If set to TRUE, uniqid() will add additional entropy (**using the combined linear congruential generator**) [..]
more_entropy should not be confused with the third (undocumented) p... | 6 |
lolphp | ajmarks | cd95ex8 | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|sor|>I find the first argument, $prefix, to be even more puzzling. uniqid($prefix) is *exactly the same thing* as $prefix.uniqid(). There's absolutely no reason for that to be an argument.<|eor|><|eol... | 6 |
lolphp | zelenoid | cd99nw5 | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|sor|>> more_entropy: If set to TRUE, uniqid() will add additional entropy (**using the combined linear congruential generator**) [..]
more_entropy should not be confused with the third (undocumented) p... | 6 |
lolphp | abadidea | cda5pzb | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|sor|>I don't even know what I could say that could add to that manual page.
And I run an entire blog that is literally just making fun of the manual <|eor|><|eols|><|endoftext|> | 5 |
lolphp | merreborn | cd94fu7 | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|sor|>Also, the docs make it clear that this is pretty much just some form of MD5(microtime())
Edit: It's not even that. It's just microtime(). Here's the code:
gettimeofday((struct timeval *) &t... | 5 |
lolphp | DroolingIguana | cdwyevk | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|soopr|>Why is `$more_entropy` even an argument, and an optional one at that? Surely if you want a unique ID you don't want to have to remember to pass an additional argument that:
> ...increases the li... | 5 |
lolphp | pilif | cdx8k91 | <|sols|><|sot|>Entropy is not enough. We need MORE.<|eot|><|sol|>http://php.net/manual/en/function.uniqid.php<|eol|><|soopr|>Why is `$more_entropy` even an argument, and an optional one at that? Surely if you want a unique ID you don't want to have to remember to pass an additional argument that:
> ...increases the li... | 5 |
lolphp | midir | 1n1sjr | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|eoss|><|endoftext|> | 36 |
lolphp | BufferUnderpants | ccemsq6 | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>Well, it's undefined behavior *for a reason*. The reason being that its actual b... | 26 |
lolphp | merreborn | ccesm2o | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>Well, it's undefined behavior *for a reason*. The reason being that its actual b... | 22 |
lolphp | tudborg | cceog9h | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>What you are seeing is
($a+$a)+$a++
And
$a+$a++
If you think of $a++... | 17 |
lolphp | BufferUnderpants | ccen9vx | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>Well, it's undefined behavior *for a reason*. The reason being that its actual b... | 16 |
lolphp | nikic | cces5h2 | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>Well, it's undefined behavior *for a reason*. The reason being that its actual b... | 14 |
lolphp | HaMMeReD | ccemzpl | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>Well, it's undefined behavior *for a reason*. The reason being that its actual b... | 13 |
lolphp | nikic | ccesb07 | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>What you are seeing is
($a+$a)+$a++
And
$a+$a++
If you think of $a++... | 10 |
lolphp | djsumdog | ccey5d4 | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>Well, it's undefined behavior *for a reason*. The reason being that its actual b... | 9 |
lolphp | infinull | ccep71h | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>What you are seeing is
($a+$a)+$a++
And
$a+$a++
If you think of $a++... | 7 |
lolphp | niiko | ccet710 | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>What you are seeing is
($a+$a)+$a++
And
$a+$a++
If you think of $a++... | 7 |
lolphp | sbditto85 | ccer6r6 | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>What you are seeing is
($a+$a)+$a++
And
$a+$a++
If you think of $a++... | 7 |
lolphp | Sarcastinator | ccexhnq | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>Well, it's undefined behavior *for a reason*. The reason being that its actual b... | 7 |
lolphp | tudborg | ccepa4q | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>What you are seeing is
($a+$a)+$a++
And
$a+$a++
If you think of $a++... | 6 |
lolphp | merreborn | ccesk11 | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>What you are seeing is
($a+$a)+$a++
And
$a+$a++
If you think of $a++... | 5 |
lolphp | BufferUnderpants | ccetrgp | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>Well, it's undefined behavior *for a reason*. The reason being that its actual b... | 5 |
lolphp | nikic | ccf2qdg | <|soss|><|sot|>PHP just does what it wants<|eot|><|sost|> $a = 1;
$c = $a + $a + $a++;
var_dump($c);
$a = 1;
$c = $a + $a++;
var_dump($c);
The incredible output of this is:
int(3)
int(3)
<|eost|><|sor|>What you are seeing is
($a+$a)+$a++
And
$a+$a++
If you think of $a++... | 5 |
lolphp | jamwaffles | 1jua0l | <|soss|><|sot|>Function names are case insensitive. Even the built in ones<|eot|><|sost|>This made me WTF quite hard. I was browsing StackOverflow and came across [this question](http://stackoverflow.com/questions/18091130/how-can-i-optimize-image-resize-code) showing that **even built in functions aren't case sensitiv... | 36 |
lolphp | Rhomboid | cbicvok | <|soss|><|sot|>Function names are case insensitive. Even the built in ones<|eot|><|sost|>This made me WTF quite hard. I was browsing StackOverflow and came across [this question](http://stackoverflow.com/questions/18091130/how-can-i-optimize-image-resize-code) showing that **even built in functions aren't case sensitiv... | 29 |
lolphp | Sgeo | cbidcdm | <|soss|><|sot|>Function names are case insensitive. Even the built in ones<|eot|><|sost|>This made me WTF quite hard. I was browsing StackOverflow and came across [this question](http://stackoverflow.com/questions/18091130/how-can-i-optimize-image-resize-code) showing that **even built in functions aren't case sensitiv... | 25 |
lolphp | redalastor | cbiee6f | <|soss|><|sot|>Function names are case insensitive. Even the built in ones<|eot|><|sost|>This made me WTF quite hard. I was browsing StackOverflow and came across [this question](http://stackoverflow.com/questions/18091130/how-can-i-optimize-image-resize-code) showing that **even built in functions aren't case sensitiv... | 10 |
lolphp | philsturgeon | cbrisgj | <|soss|><|sot|>Function names are case insensitive. Even the built in ones<|eot|><|sost|>This made me WTF quite hard. I was browsing StackOverflow and came across [this question](http://stackoverflow.com/questions/18091130/how-can-i-optimize-image-resize-code) showing that **even built in functions aren't case sensitiv... | 9 |
lolphp | midir | cbiqjvn | <|soss|><|sot|>Function names are case insensitive. Even the built in ones<|eot|><|sost|>This made me WTF quite hard. I was browsing StackOverflow and came across [this question](http://stackoverflow.com/questions/18091130/how-can-i-optimize-image-resize-code) showing that **even built in functions aren't case sensitiv... | 9 |
lolphp | michaelpb | cbitjur | <|soss|><|sot|>Function names are case insensitive. Even the built in ones<|eot|><|sost|>This made me WTF quite hard. I was browsing StackOverflow and came across [this question](http://stackoverflow.com/questions/18091130/how-can-i-optimize-image-resize-code) showing that **even built in functions aren't case sensitiv... | 7 |
lolphp | TheCoelacanth | cbig0v4 | <|soss|><|sot|>Function names are case insensitive. Even the built in ones<|eot|><|sost|>This made me WTF quite hard. I was browsing StackOverflow and came across [this question](http://stackoverflow.com/questions/18091130/how-can-i-optimize-image-resize-code) showing that **even built in functions aren't case sensitiv... | 7 |
lolphp | redalastor | cbiko1b | <|soss|><|sot|>Function names are case insensitive. Even the built in ones<|eot|><|sost|>This made me WTF quite hard. I was browsing StackOverflow and came across [this question](http://stackoverflow.com/questions/18091130/how-can-i-optimize-image-resize-code) showing that **even built in functions aren't case sensitiv... | 5 |
lolphp | Elite6809 | cbmfuj7 | <|soss|><|sot|>Function names are case insensitive. Even the built in ones<|eot|><|sost|>This made me WTF quite hard. I was browsing StackOverflow and came across [this question](http://stackoverflow.com/questions/18091130/how-can-i-optimize-image-resize-code) showing that **even built in functions aren't case sensitiv... | 5 |
lolphp | postmodest | 1fvp0n | <|soss|><|sot|>DateTime::add "Returns the DateTime object for method chaining or FALSE on failure."<|eot|><|sost|>WAT. And you can't get out of that with a try { } catch () {} because it's a fatal error.
You're not even trying, guys. Seriously. <|eost|><|eoss|><|endoftext|> | 39 |
lolphp | throwaway-o | caevuin | <|soss|><|sot|>DateTime::add "Returns the DateTime object for method chaining or FALSE on failure."<|eot|><|sost|>WAT. And you can't get out of that with a try { } catch () {} because it's a fatal error.
You're not even trying, guys. Seriously. <|eost|><|sor|>PHP: "I see your method chaining and I raise you a cruel s... | 21 |
lolphp | postmodest | caefkgu | <|soss|><|sot|>DateTime::add "Returns the DateTime object for method chaining or FALSE on failure."<|eot|><|sost|>WAT. And you can't get out of that with a try { } catch () {} because it's a fatal error.
You're not even trying, guys. Seriously. <|eost|><|sor|>I'm idly beginning to wonder how difficult it would be to ... | 20 |
lolphp | rossryan | caee2s6 | <|soss|><|sot|>DateTime::add "Returns the DateTime object for method chaining or FALSE on failure."<|eot|><|sost|>WAT. And you can't get out of that with a try { } catch () {} because it's a fatal error.
You're not even trying, guys. Seriously. <|eost|><|sor|>I'm idly beginning to wonder how difficult it would be to ... | 13 |
lolphp | Drainedsoul | caeltx5 | <|soss|><|sot|>DateTime::add "Returns the DateTime object for method chaining or FALSE on failure."<|eot|><|sost|>WAT. And you can't get out of that with a try { } catch () {} because it's a fatal error.
You're not even trying, guys. Seriously. <|eost|><|sor|>I'm idly beginning to wonder how difficult it would be to ... | 10 |
lolphp | postmodest | caj9yui | <|soss|><|sot|>DateTime::add "Returns the DateTime object for method chaining or FALSE on failure."<|eot|><|sost|>WAT. And you can't get out of that with a try { } catch () {} because it's a fatal error.
You're not even trying, guys. Seriously. <|eost|><|sor|>What PHP version are you running? With PHP5.4, you can ca... | 7 |
lolphp | huf | caeq9p3 | <|soss|><|sot|>DateTime::add "Returns the DateTime object for method chaining or FALSE on failure."<|eot|><|sost|>WAT. And you can't get out of that with a try { } catch () {} because it's a fatal error.
You're not even trying, guys. Seriously. <|eost|><|sor|>I'm idly beginning to wonder how difficult it would be to ... | 5 |
lolphp | Takeoded | iqlpur | <|sols|><|sot|>set_exception_handler() returns NULL on error, and sometimes NULL on success, makes you wonder "why did it return null?"<|eot|><|sol|>https://www.php.net/manual/en/function.set-exception-handler.php<|eol|><|eols|><|endoftext|> | 35 |
lolphp | Takeoded | g4swd8w | <|sols|><|sot|>set_exception_handler() returns NULL on error, and sometimes NULL on success, makes you wonder "why did it return null?"<|eot|><|sol|>https://www.php.net/manual/en/function.set-exception-handler.php<|eol|><|soopr|>.. also makes me wonder, "why doesn't it return bool(false) on error", like everything else... | 23 |
lolphp | Almamu | g4vskxv | <|sols|><|sot|>set_exception_handler() returns NULL on error, and sometimes NULL on success, makes you wonder "why did it return null?"<|eot|><|sol|>https://www.php.net/manual/en/function.set-exception-handler.php<|eol|><|sor|>At least it doesn't try to throw an exception upon failure to set an exception handler...?<|e... | 6 |
lolphp | Takeoded | g4vqawh | <|sols|><|sot|>set_exception_handler() returns NULL on error, and sometimes NULL on success, makes you wonder "why did it return null?"<|eot|><|sol|>https://www.php.net/manual/en/function.set-exception-handler.php<|eol|><|sor|>At least it doesn't try to throw an exception upon failure to set an exception handler...?<|e... | 5 |
lolphp | girst | agam6a | <|sols|><|sot|>PHPs fopen() is broken (2017)<|eot|><|sol|>https://arp242.net/weblog/php-fopen-is-broken.html<|eol|><|eols|><|endoftext|> | 39 |
lolphp | innerspirit | ee4scly | <|sols|><|sot|>PHPs fopen() is broken (2017)<|eot|><|sol|>https://arp242.net/weblog/php-fopen-is-broken.html<|eol|><|soopr|>It's been years since I've last touched PHP. Does anyone know if these 7.0 weaknesses were adressed in 7.1 or .2?<|eoopr|><|sor|>I'm not sure that they are going to convert that kind of warning in... | 7 |
lolphp | girst | ee4q8f9 | <|sols|><|sot|>PHPs fopen() is broken (2017)<|eot|><|sol|>https://arp242.net/weblog/php-fopen-is-broken.html<|eol|><|soopr|>It's been years since I've last touched PHP. Does anyone know if these 7.0 weaknesses were adressed in 7.1 or .2?<|eoopr|><|eols|><|endoftext|> | 6 |
lolphp | barubary | eehl9z4 | <|sols|><|sot|>PHPs fopen() is broken (2017)<|eot|><|sol|>https://arp242.net/weblog/php-fopen-is-broken.html<|eol|><|sor|>Pff, a usual blueprint php hatepost. Could be used to slander anything, from bigMac to Tesla
> This may or may not work, depending on the value ofallow_url_fopen. Every PHP installation behaves dif... | 6 |
lolphp | Schmittfried | ee5r2df | <|sols|><|sot|>PHPs fopen() is broken (2017)<|eot|><|sol|>https://arp242.net/weblog/php-fopen-is-broken.html<|eol|><|sor|>> All of this makes that PHP is not suitable for reliable & robust systems programming, or, indeed, for any sort of programming at all.
PHP was never a reliable or robust programming language and ... | 5 |
lolphp | nyamsprod | 6sdpmr | <|sols|><|sot|>When is parse_url going to be deprecated ?<|eot|><|sol|>https://3v4l.org/ht82k<|eol|><|eols|><|endoftext|> | 35 |
lolphp | stumpychubbins | dlddihv | <|sols|><|sot|>When is parse_url going to be deprecated ?<|eot|><|sol|>https://3v4l.org/ht82k<|eol|><|sor|>Seems to me somebody should've read [RFC 3986](https://tools.ietf.org/html/rfc3986) before haphazardly implementing something like that.
[Here's the PHP source](https://github.com/php/php-src/blob/513b0093c2b480... | 35 |
lolphp | andsens | dlc2f21 | <|sols|><|sot|>When is parse_url going to be deprecated ?<|eot|><|sol|>https://3v4l.org/ht82k<|eol|><|sor|>Seems to me somebody should've read [RFC 3986](https://tools.ietf.org/html/rfc3986) before haphazardly implementing something like that.
[Here's the PHP source](https://github.com/php/php-src/blob/513b0093c2b480... | 29 |
lolphp | nyamsprod | dlc2wfg | <|sols|><|sot|>When is parse_url going to be deprecated ?<|eot|><|sol|>https://3v4l.org/ht82k<|eol|><|sor|>Seems to me somebody should've read [RFC 3986](https://tools.ietf.org/html/rfc3986) before haphazardly implementing something like that.
[Here's the PHP source](https://github.com/php/php-src/blob/513b0093c2b480... | 21 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.