subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | postmodest | cma27c3 | <|sols|><|sot|>When a PHP dev creates a troll issue for HHVM...<|eot|><|sol|>https://github.com/facebook/hhvm/issues/4290<|eol|><|sor|>> PHP programmers have got used to T_PAAMAYIM_NEKUDOTAYIM.
Are you fuckin serious?
Why in the blithering fuck are you defending mixing in random goddamn hebrew-named variables?
edit:... | 11 |
lolphp | DoctorWaluigiTime | cm9zkfo | <|sols|><|sot|>When a PHP dev creates a troll issue for HHVM...<|eot|><|sol|>https://github.com/facebook/hhvm/issues/4290<|eol|><|sor|>> PHP programmers have got used to T_PAAMAYIM_NEKUDOTAYIM.
Are you fuckin serious?
Why in the blithering fuck are you defending mixing in random goddamn hebrew-named variables?
edit:... | 9 |
lolphp | sloat | cma3mpj | <|sols|><|sot|>When a PHP dev creates a troll issue for HHVM...<|eot|><|sol|>https://github.com/facebook/hhvm/issues/4290<|eol|><|sor|>> PHP programmers have got used to T_PAAMAYIM_NEKUDOTAYIM.
Are you fuckin serious?
Why in the blithering fuck are you defending mixing in random goddamn hebrew-named variables?
edit:... | 9 |
lolphp | nsfwIvan | cma44s2 | <|sols|><|sot|>When a PHP dev creates a troll issue for HHVM...<|eot|><|sol|>https://github.com/facebook/hhvm/issues/4290<|eol|><|sor|>> PHP programmers have got used to T_PAAMAYIM_NEKUDOTAYIM.
Are you fuckin serious?
Why in the blithering fuck are you defending mixing in random goddamn hebrew-named variables?
edit:... | 7 |
lolphp | Banane9 | cmbhe53 | <|sols|><|sot|>When a PHP dev creates a troll issue for HHVM...<|eot|><|sol|>https://github.com/facebook/hhvm/issues/4290<|eol|><|sor|>> PHP programmers have got used to T_PAAMAYIM_NEKUDOTAYIM.
Are you fuckin serious?
Why in the blithering fuck are you defending mixing in random goddamn hebrew-named variables?
edit:... | 5 |
lolphp | ealf | 2d6kll | <|sols|><|sot|>"The PHP session code explicitly checks for symlinks [...] It does this by opening the file, then doing fstat() on the open file descriptor"<|eot|><|sol|>http://seclists.org/bugtraq/2014/Mar/23<|eol|><|eols|><|endoftext|> | 60 |
lolphp | redfacedquark | cjnbr7q | <|sols|><|sot|>"The PHP session code explicitly checks for symlinks [...] It does this by opening the file, then doing fstat() on the open file descriptor"<|eot|><|sol|>http://seclists.org/bugtraq/2014/Mar/23<|eol|><|sor|>Tumbleweed...let me take a stab at it. By the time it opens the file it has already followed the s... | 14 |
lolphp | shitbangs | cjnxjad | <|sols|><|sot|>"The PHP session code explicitly checks for symlinks [...] It does this by opening the file, then doing fstat() on the open file descriptor"<|eot|><|sol|>http://seclists.org/bugtraq/2014/Mar/23<|eol|><|sor|>Tumbleweed...let me take a stab at it. By the time it opens the file it has already followed the s... | 10 |
lolphp | suspiciously_calm | cjnwbgk | <|sols|><|sot|>"The PHP session code explicitly checks for symlinks [...] It does this by opening the file, then doing fstat() on the open file descriptor"<|eot|><|sol|>http://seclists.org/bugtraq/2014/Mar/23<|eol|><|sor|>Tumbleweed...let me take a stab at it. By the time it opens the file it has already followed the s... | 9 |
lolphp | suspiciously_calm | cjnhd8t | <|sols|><|sot|>"The PHP session code explicitly checks for symlinks [...] It does this by opening the file, then doing fstat() on the open file descriptor"<|eot|><|sol|>http://seclists.org/bugtraq/2014/Mar/23<|eol|><|sor|>Tumbleweed...let me take a stab at it. By the time it opens the file it has already followed the s... | 8 |
lolphp | sstewartgallus | cjnvdng | <|sols|><|sot|>"The PHP session code explicitly checks for symlinks [...] It does this by opening the file, then doing fstat() on the open file descriptor"<|eot|><|sol|>http://seclists.org/bugtraq/2014/Mar/23<|eol|><|sor|>Tumbleweed...let me take a stab at it. By the time it opens the file it has already followed the s... | 5 |
lolphp | TimLim | 2094sd | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|eols|><|endoftext|> | 65 |
lolphp | suspiciously_calm | cg10fvw | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>PHP runtime error handling: Barf something out on STDERR **but continue.**<|eor|><|eols|><|endoftext|> | 41 |
lolphp | Benutzername | cg0zx9h | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>I couldn't convert it to int, but what the heck, I'm generous today!<|eor|><|eols|><|endoftext|> | 37 |
lolphp | lisp-case | cg10qcr | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>PHP runtime error handling: Barf something out on STDERR **but continue.**<|eor|><|sor|>I especially like how the default behavior of a failed `assert` is to do exactly this.<|eor|><|eols|><|endoftext|> | 29 |
lolphp | lisp-case | cg13jbu | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>*sigh
I still love this one the most though.
$x->something = 'blah';
var_dump($x)
Warning: Creating default object from empty value in test.php on line 2
object(stdClass)#1 (1) {
["something"]... | 28 |
lolphp | nstory | cg170gx | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>PHP runtime error handling: Barf something out on STDERR **but continue.**<|eor|><|sor|>Actually, the standard behavior is to [barf that something out on STDOUT](http://www.php.net/manual/en/errorfunc.configuration.php... | 25 |
lolphp | andsens | cg12wpm | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>*sigh
I still love this one the most though.
$x->something = 'blah';
var_dump($x)
Warning: Creating default object from empty value in test.php on line 2
object(stdClass)#1 (1) {
["something"]... | 21 |
lolphp | quchen | cg10dfi | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>And you highlight why E_ALL is what every PHP programmer should be developing in.<|eor|><|sor|>Which, until 5.4, included *all* warnings. [Except the ones it didn't.](http://www.php.net/manual/en/function.error-reporti... | 20 |
lolphp | vita10gy | cg16a1a | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>PHP runtime error handling: Barf something out on STDERR **but continue.**<|eor|><|sor|>That's PHP SOP. Something nonsensical is always better than nothing. Stopping is the world's greatest sin. <|eor|><|eols|><|endoft... | 19 |
lolphp | mayobutter | cg1a6qv | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>PHP runtime error handling: Barf something out on STDERR **but continue.**<|eor|><|sor|>That's PHP SOP. Something nonsensical is always better than nothing. Stopping is the world's greatest sin. <|eor|><|sor|>Unless yo... | 19 |
lolphp | ajmarks | cg14aa5 | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>Doesn't seem that bad. Maybe the value of 1 is used so you can do `if (object) do stuff;`. In my mind, doing something as illogical as this should return an error. <|eor|><|sor|>In a normal language, it would be possib... | 12 |
lolphp | DoctorWaluigiTime | cg0zoid | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>And you highlight why E_ALL is what every PHP programmer should be developing in.<|eor|><|eols|><|endoftext|> | 10 |
lolphp | mirhagk | cg7xma0 | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>*sigh
I still love this one the most though.
$x->something = 'blah';
var_dump($x)
Warning: Creating default object from empty value in test.php on line 2
object(stdClass)#1 (1) {
["something"]... | 8 |
lolphp | nahguri | cg1oagb | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>PHP runtime error handling: Barf something out on STDERR **but continue.**<|eor|><|sor|>The show must go on!<|eor|><|eols|><|endoftext|> | 7 |
lolphp | kingguru | cg2btpt | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>PHP runtime error handling: Barf something out on STDERR **but continue.**<|eor|><|sor|>That's PHP SOP. Something nonsensical is always better than nothing. Stopping is the world's greatest sin. <|eor|><|sor|>Unless yo... | 7 |
lolphp | freebullets | cg10cfv | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>Doesn't seem that bad. Maybe the value of 1 is used so you can do `if (object) do stuff;`. In my mind, doing something as illogical as this should return an error. <|eor|><|eols|><|endoftext|> | 5 |
lolphp | bart2019 | cg1j12m | <|sols|><|sot|>new object() + new object() == 2<|eot|><|sol|>http://codepad.org/NGPjR4fl<|eol|><|sor|>PHP runtime error handling: Barf something out on STDERR **but continue.**<|eor|><|sor|>Yet a redefinition of a function is a fatal error.<|eor|><|eols|><|endoftext|> | 5 |
lolphp | sandsmark | 1ofw7t | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|eols|><|endoftext|> | 63 |
lolphp | catcradle5 | ccrlbja | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|sor|>`$a++` does something quite different from `$a = $a + 1`
php > $a = "2d9";
php > echo $a."\n";
2d9
php > echo ($a + 1)."\n";
3
php > $a++;
php > echo $a."\n";
... | 42 |
lolphp | InconsiderateBastard | ccrmdap | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|sor|>I hate that I know why it does that. Not because I hate the knowledge, but I hate that I had to acquire the knowledge.<|eor|><|eols|><|endoftext|> | 23 |
lolphp | suspiciously_calm | ccrncto | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|sor|>`$a++` does something quite different from `$a = $a + 1`
php > $a = "2d9";
php > echo $a."\n";
2d9
php > echo ($a + 1)."\n";
3
php > $a++;
php > echo $a."\n";
... | 13 |
lolphp | sandsmark | ccrkmld | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|eols|><|endoftext|> | 12 |
lolphp | barubary | ccsqig3 | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|sor|>`$a++` does something quite different from `$a = $a + 1`
php > $a = "2d9";
php > echo $a."\n";
2d9
php > echo ($a + 1)."\n";
3
php > $a++;
php > echo $a."\n";
... | 12 |
lolphp | vytah | ccs1dur | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|sor|>`$a++` does something quite different from `$a = $a + 1`
php > $a = "2d9";
php > echo $a."\n";
2d9
php > echo ($a + 1)."\n";
3
php > $a++;
php > echo $a."\n";
... | 7 |
lolphp | suspiciously_calm | ccxu4n0 | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|sor|>`$a++` does something quite different from `$a = $a + 1`
php > $a = "2d9";
php > echo $a."\n";
2d9
php > echo ($a + 1)."\n";
3
php > $a++;
php > echo $a."\n";
... | 7 |
lolphp | sandsmark | ccrlnsl | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|sor|>`$a++` does something quite different from `$a = $a + 1`
php > $a = "2d9";
php > echo $a."\n";
2d9
php > echo ($a + 1)."\n";
3
php > $a++;
php > echo $a."\n";
... | 7 |
lolphp | catcradle5 | ccrloen | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|sor|>`$a++` does something quite different from `$a = $a + 1`
php > $a = "2d9";
php > echo $a."\n";
2d9
php > echo ($a + 1)."\n";
3
php > $a++;
php > echo $a."\n";
... | 7 |
lolphp | sandsmark | ccrlgqk | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|sor|>`$a++` does something quite different from `$a = $a + 1`
php > $a = "2d9";
php > echo $a."\n";
2d9
php > echo ($a + 1)."\n";
3
php > $a++;
php > echo $a."\n";
... | 6 |
lolphp | ajmarks | ccsdidd | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|sor|>`$a++` does something quite different from `$a = $a + 1`
php > $a = "2d9";
php > echo $a."\n";
2d9
php > echo ($a + 1)."\n";
3
php > $a++;
php > echo $a."\n";
... | 5 |
lolphp | suspiciously_calm | ccs0tuj | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|sor|>`$a++` does something quite different from `$a = $a + 1`
php > $a = "2d9";
php > echo $a."\n";
2d9
php > echo ($a + 1)."\n";
3
php > $a++;
php > echo $a."\n";
... | 5 |
lolphp | vytah | cd8ubwf | <|sols|><|sot|>2d9<|eot|><|sol|>http://ideone.com/l6aQSx<|eol|><|soopr|>so, can anyone explain why 2d9 + 1 == 2e0?<|eoopr|><|sor|>`$a++` does something quite different from `$a = $a + 1`
php > $a = "2d9";
php > echo $a."\n";
2d9
php > echo ($a + 1)."\n";
3
php > $a++;
php > echo $a."\n";
... | 5 |
lolphp | notR1CH | 1m0vfu | <|sols|><|sot|>PHP documentation suggests using header injection via ini_set() to add HTTP headers<|eot|><|sol|>http://www.php.net/manual/en/wrappers.http.php#wrappers.http.example.custom.headers<|eol|><|eols|><|endoftext|> | 61 |
lolphp | jmcs | cc4qc9r | <|sols|><|sot|>PHP documentation suggests using header injection via ini_set() to add HTTP headers<|eot|><|sol|>http://www.php.net/manual/en/wrappers.http.php#wrappers.http.example.custom.headers<|eol|><|sor|>I don't think it suggests it, more mentions that it's possible. The page says: "it is also possible to use this... | 24 |
lolphp | pgl | cc4q3pk | <|sols|><|sot|>PHP documentation suggests using header injection via ini_set() to add HTTP headers<|eot|><|sol|>http://www.php.net/manual/en/wrappers.http.php#wrappers.http.example.custom.headers<|eol|><|sor|>I don't think it suggests it, more mentions that it's possible. The page says: "it is also possible to use this... | 13 |
lolphp | jmcs | cc4rc06 | <|sols|><|sot|>PHP documentation suggests using header injection via ini_set() to add HTTP headers<|eot|><|sol|>http://www.php.net/manual/en/wrappers.http.php#wrappers.http.example.custom.headers<|eol|><|sor|>I don't think it suggests it, more mentions that it's possible. The page says: "it is also possible to use this... | 12 |
lolphp | Andryu67 | cc4qop5 | <|sols|><|sot|>PHP documentation suggests using header injection via ini_set() to add HTTP headers<|eot|><|sol|>http://www.php.net/manual/en/wrappers.http.php#wrappers.http.example.custom.headers<|eol|><|sor|>Wow... What's next, a helpful hint on adding \0 to file names? <|eor|><|eols|><|endoftext|> | 10 |
lolphp | Matt3k | cc4t1xu | <|sols|><|sot|>PHP documentation suggests using header injection via ini_set() to add HTTP headers<|eot|><|sol|>http://www.php.net/manual/en/wrappers.http.php#wrappers.http.example.custom.headers<|eol|><|sor|>I don't think it suggests it, more mentions that it's possible. The page says: "it is also possible to use this... | 6 |
lolphp | pgl | cc4r6ip | <|sols|><|sot|>PHP documentation suggests using header injection via ini_set() to add HTTP headers<|eot|><|sol|>http://www.php.net/manual/en/wrappers.http.php#wrappers.http.example.custom.headers<|eol|><|sor|>I don't think it suggests it, more mentions that it's possible. The page says: "it is also possible to use this... | 6 |
lolphp | Pixa | cc5dwux | <|sols|><|sot|>PHP documentation suggests using header injection via ini_set() to add HTTP headers<|eot|><|sol|>http://www.php.net/manual/en/wrappers.http.php#wrappers.http.example.custom.headers<|eol|><|sor|>lol, this is stupid. On a side note: why are usernames hidden on this subreddit? You do realize that its not re... | 6 |
lolphp | Takeoded | ebgewe | <|sols|><|sot|>int is short for "integer", bool is short for "boolean", yet php has FILTER_VALIDATE_INT but not FILTER_VALIDATE_INTEGER, we have FILTER_VALIDATE_BOOLEAN but not FILTER_VALIDATE_BOOL<|eot|><|sol|>https://3v4l.org/36hUH<|eol|><|eols|><|endoftext|> | 64 |
lolphp | BufferUnderpants | fb5a4uz | <|sols|><|sot|>int is short for "integer", bool is short for "boolean", yet php has FILTER_VALIDATE_INT but not FILTER_VALIDATE_INTEGER, we have FILTER_VALIDATE_BOOLEAN but not FILTER_VALIDATE_BOOL<|eot|><|sol|>https://3v4l.org/36hUH<|eol|><|sor|>Hey man they had to rush to push it to the market, else they were going t... | 12 |
lolphp | postmodest | fb6dnoa | <|sols|><|sot|>int is short for "integer", bool is short for "boolean", yet php has FILTER_VALIDATE_INT but not FILTER_VALIDATE_INTEGER, we have FILTER_VALIDATE_BOOLEAN but not FILTER_VALIDATE_BOOL<|eot|><|sol|>https://3v4l.org/36hUH<|eol|><|sor|>Would adding them both for consistency sake be better?<|eor|><|soopr|>Yes... | 12 |
lolphp | Takeoded | fb63ac0 | <|sols|><|sot|>int is short for "integer", bool is short for "boolean", yet php has FILTER_VALIDATE_INT but not FILTER_VALIDATE_INTEGER, we have FILTER_VALIDATE_BOOLEAN but not FILTER_VALIDATE_BOOL<|eot|><|sol|>https://3v4l.org/36hUH<|eol|><|sor|>Would adding them both for consistency sake be better?<|eor|><|soopr|>Yes... | 9 |
lolphp | cowboyecosse | fb66luc | <|sols|><|sot|>int is short for "integer", bool is short for "boolean", yet php has FILTER_VALIDATE_INT but not FILTER_VALIDATE_INTEGER, we have FILTER_VALIDATE_BOOLEAN but not FILTER_VALIDATE_BOOL<|eot|><|sol|>https://3v4l.org/36hUH<|eol|><|sor|>Hey man they had to rush to push it to the market, else they were going t... | 9 |
lolphp | bitfxxker | fb7ledh | <|sols|><|sot|>int is short for "integer", bool is short for "boolean", yet php has FILTER_VALIDATE_INT but not FILTER_VALIDATE_INTEGER, we have FILTER_VALIDATE_BOOLEAN but not FILTER_VALIDATE_BOOL<|eot|><|sol|>https://3v4l.org/36hUH<|eol|><|sor|>**FILTER\_VALIDATE\_BOOLSHIT**<|eor|><|eols|><|endoftext|> | 7 |
lolphp | walterbanana | fck03sg | <|sols|><|sot|>int is short for "integer", bool is short for "boolean", yet php has FILTER_VALIDATE_INT but not FILTER_VALIDATE_INTEGER, we have FILTER_VALIDATE_BOOLEAN but not FILTER_VALIDATE_BOOL<|eot|><|sol|>https://3v4l.org/36hUH<|eol|><|sor|>My fix for this has now been merged: https://github.com/php/php-src/commi... | 6 |
lolphp | walterbanana | fb610h7 | <|sols|><|sot|>int is short for "integer", bool is short for "boolean", yet php has FILTER_VALIDATE_INT but not FILTER_VALIDATE_INTEGER, we have FILTER_VALIDATE_BOOLEAN but not FILTER_VALIDATE_BOOL<|eot|><|sol|>https://3v4l.org/36hUH<|eol|><|sor|>Would adding them both for consistency sake be better?<|eor|><|eols|><|en... | 5 |
lolphp | walterbanana | fb70ghe | <|sols|><|sot|>int is short for "integer", bool is short for "boolean", yet php has FILTER_VALIDATE_INT but not FILTER_VALIDATE_INTEGER, we have FILTER_VALIDATE_BOOLEAN but not FILTER_VALIDATE_BOOL<|eot|><|sol|>https://3v4l.org/36hUH<|eol|><|sor|>Would adding them both for consistency sake be better?<|eor|><|soopr|>Yes... | 5 |
lolphp | hedgehog1024 | fb75yah | <|sols|><|sot|>int is short for "integer", bool is short for "boolean", yet php has FILTER_VALIDATE_INT but not FILTER_VALIDATE_INTEGER, we have FILTER_VALIDATE_BOOLEAN but not FILTER_VALIDATE_BOOL<|eot|><|sol|>https://3v4l.org/36hUH<|eol|><|sor|>Would adding them both for consistency sake be better?<|eor|><|soopr|>Yes... | 5 |
lolphp | kirillsimin | 5ej086 | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|eols|><|endoftext|> | 63 |
lolphp | SnowdogU77 | dacygia | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>[deleted]<|eor|><|sor|>A string containing the number 0 is not empty either.<|eor|><|sor|>[deleted]<|eor|><|sor|>_
I shall now sing the song of /r/lolphp's people
Just because it's document... | 79 |
lolphp | OmnipotentEntity | dacwtl2 | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>[deleted]<|eor|><|sor|>A string containing the number 0 is not empty either.<|eor|><|eols|><|endoftext|> | 59 |
lolphp | SnowdogU77 | dad015m | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>[deleted]<|eor|><|sor|>A string containing the number 0 is not empty either.<|eor|><|sor|>[deleted]<|eor|><|sor|>_
I shall now sing the song of /r/lolphp's people
Just because it's document... | 43 |
lolphp | xiata | dadb9qn | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>[deleted]<|eor|><|sor|>A string containing the number 0 is not empty either.<|eor|><|sor|>[deleted]<|eor|><|sor|>_
I shall now sing the song of /r/lolphp's people
Just because it's document... | 24 |
lolphp | xiata | dadc5qc | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>[deleted]<|eor|><|sor|>_
I shall now sing the song of /r/lolphp's people
Just because it's documented, doesn't mean it's right <|eor|><|sor|>[deleted]<|eor|><|sor|>Because it's unexpected. ... | 23 |
lolphp | Vakieh | dacz1ko | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>[deleted]<|eor|><|sor|>A string containing the number 0 is not empty either.<|eor|><|sor|>[deleted]<|eor|><|sor|>Lolphp isn't a surprise, it's a (valid) assumption of stupidity. The issue here ... | 21 |
lolphp | Grimy_ | dakm3p9 | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>Wait, it gets better! `empty("0")` is true, but `empty(" 0")` is false, even though `" 0" == "0"`!<|eor|><|eols|><|endoftext|> | 20 |
lolphp | Vakieh | dad2nl9 | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>[deleted]<|eor|><|sor|>A string containing the number 0 is not empty either.<|eor|><|sor|>[deleted]<|eor|><|sor|>Lolphp isn't a surprise, it's a (valid) assumption of stupidity. The issue here ... | 17 |
lolphp | phreakocious | dad6fgl | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>Rails is so much better: https://i.stack.imgur.com/oXuhJ.png
..not
Or JavaScript: http://stackoverflow.com/questions/7615214/in-javascript-why-is-0-equal-to-false-but-when-tested-by-if-it-is-... | 14 |
lolphp | egrgssdfgsarg | dadjdfs | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>[deleted]<|eor|><|sor|>A string containing the number 0 is not empty either.<|eor|><|sor|>[deleted]<|eor|><|sor|>_
I shall now sing the song of /r/lolphp's people
Just because it's document... | 13 |
lolphp | Cuddlefluff_Grim | daduek5 | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>Rails is so much better: https://i.stack.imgur.com/oXuhJ.png
..not
Or JavaScript: http://stackoverflow.com/questions/7615214/in-javascript-why-is-0-equal-to-false-but-when-tested-by-if-it-is-... | 12 |
lolphp | Grimy_ | dakm5ok | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Yes, I agree, the string `"0"` shouldnt be called empty. Thats kinda the point of this lolphp.<|eor|><|eols|><|endoftext|> | 10 |
lolphp | xiata | daebp84 | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>Nah, I don't agree with this being a lolphp either. Don't try to cast strings to boolean unless you're writing the conversion yourself, or are using very rigidly defined functions. Ex. C# has I... | 9 |
lolphp | xiongchiamiov | dad29ct | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>[deleted]<|eor|><|sor|>A string containing the number 0 is not empty either.<|eor|><|sor|>That depends on whether you prefer strong or weak typing. *I* think strong typing is a much better way ... | 9 |
lolphp | xiata | daf0w3j | <|sols|><|sot|>Space is not falsy, but string containing zero is.<|eot|><|sol|>https://i.redd.it/rksqofj22fzx.png<|eol|><|sor|>Nah, I don't agree with this being a lolphp either. Don't try to cast strings to boolean unless you're writing the conversion yourself, or are using very rigidly defined functions. Ex. C# has I... | 9 |
lolphp | TheBuzzSaw | 4ael29 | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|eols|><|endoftext|> | 58 |
lolphp | tdammers | d0zu6ye | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|sor|>> On its own, runkit is a very dangerous extension. It lets you change constants, functions, and classes while the sc... | 57 |
lolphp | beerdude26 | d0zpam8 | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|sor|>> On its own, runkit is a very dangerous extension. It lets you change constants, functions, and classes while the sc... | 56 |
lolphp | PlasmaSheep | d10ce8i | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|sor|>>three million lines of PHP
holy fuck<|eor|><|sor|>How the fuck do they have 3 million lines of code for a glorified... | 37 |
lolphp | boxingdog | d108llm | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|sor|>>three million lines of PHP
holy fuck<|eor|><|eols|><|endoftext|> | 29 |
lolphp | SaraMG | d110u5l | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|sor|>> On its own, runkit is a very dangerous extension. It lets you change constants, functions, and classes while the sc... | 23 |
lolphp | TheBuzzSaw | d0zod6s | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|soopr|>> The idea that databases are a bottleneck in web-projects is an all-too-common misconception.
Been saying this fo... | 22 |
lolphp | cbraga | d0zoq7p | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|soopr|>> The idea that databases are a bottleneck in web-projects is an all-too-common misconception.
Been saying this fo... | 22 |
lolphp | RetardedSquirrel | d10iu11 | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|sor|>>three million lines of PHP
holy fuck<|eor|><|sor|>How the fuck do they have 3 million lines of code for a glorified... | 22 |
lolphp | nikic | d0zx7rv | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|soopr|>> The idea that databases are a bottleneck in web-projects is an all-too-common misconception.
Been saying this fo... | 22 |
lolphp | SituationSoap | d10nmr2 | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|sor|>"We have 3 million lines of code and high confidence in its fitness despite the fact that we know we have developers ... | 20 |
lolphp | BilgeXA | d103w3x | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|soopr|>> The idea that databases are a bottleneck in web-projects is an all-too-common misconception.
Been saying this fo... | 20 |
lolphp | headzoo | d10e05q | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|sor|>> On its own, runkit is a very dangerous extension. It lets you change constants, functions, and classes while the sc... | 10 |
lolphp | berkes | d10nrtz | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|sor|>I mean, CPython and Ruby aren't JIT compiled, either. Although Python does have PyPy for that...<|eor|><|sor|>I usual... | 10 |
lolphp | dagbrown | d10f6sg | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|soopr|>> The idea that databases are a bottleneck in web-projects is an all-too-common misconception.
Been saying this fo... | 10 |
lolphp | cube-drone | d0zx2hg | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|sor|>I mean, CPython and Ruby aren't JIT compiled, either. Although Python does have PyPy for that...<|eor|><|eols|><|endo... | 9 |
lolphp | berkes | d10ne85 | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|sor|>> On its own, runkit is a very dangerous extension. It lets you change constants, functions, and classes while the sc... | 9 |
lolphp | wweber | d0zxd73 | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|soopr|>> The idea that databases are a bottleneck in web-projects is an all-too-common misconception.
Been saying this fo... | 7 |
lolphp | TheBuzzSaw | d10slc5 | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|soopr|>> The idea that databases are a bottleneck in web-projects is an all-too-common misconception.
Been saying this fo... | 7 |
lolphp | Cuddlefluff_Grim | d11vbnq | <|sols|><|sot|>How Badoo lost one million dollars using PHP in the first place<|eot|><|sol|>https://techblog.badoo.com/blog/2016/03/14/how-badoo-saved-one-million-dollars-switching-to-php7/<|eol|><|soopr|>> The idea that databases are a bottleneck in web-projects is an all-too-common misconception.
Been saying this fo... | 7 |
lolphp | n1c0_ds | 21esxf | <|sols|><|sot|>htmlentities only displays an error when display_errors is off<|eot|><|sol|>http://insomanic.me.uk/post/191397106/php-htmlspecialchars-htmlentities-invalid<|eol|><|eols|><|endoftext|> | 59 |
lolphp | n1c0_ds | cgcbltn | <|sols|><|sot|>htmlentities only displays an error when display_errors is off<|eot|><|sol|>http://insomanic.me.uk/post/191397106/php-htmlspecialchars-htmlentities-invalid<|eol|><|soopr|>Don't worry though, [it's intentional](https://bugs.php.net/bug.php?id=47494)!<|eoopr|><|eols|><|endoftext|> | 25 |
lolphp | nahguri | cgce26r | <|sols|><|sot|>htmlentities only displays an error when display_errors is off<|eot|><|sol|>http://insomanic.me.uk/post/191397106/php-htmlspecialchars-htmlentities-invalid<|eol|><|soopr|>Don't worry though, [it's intentional](https://bugs.php.net/bug.php?id=47494)!<|eoopr|><|sor|>I have no words. <|eor|><|eols|><|endoft... | 13 |
lolphp | n1c0_ds | cgce7g9 | <|sols|><|sot|>htmlentities only displays an error when display_errors is off<|eot|><|sol|>http://insomanic.me.uk/post/191397106/php-htmlspecialchars-htmlentities-invalid<|eol|><|soopr|>Don't worry though, [it's intentional](https://bugs.php.net/bug.php?id=47494)!<|eoopr|><|sor|>I have no words. <|eor|><|soopr|>Mine wa... | 12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.