subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
jesseschalken
fbbgpzp
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>"This language can't stop you from doing something stupid." Well it fucking should. Other languages manage it.<|eor|><|sor|>The point is not whether the language "prevents" you from doing something ...
37
lolphp
ilogik
fbaujua
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>I'm sure they're only keeping it like this for backwards compatibility. Somewhere out there there's a site that will break if the segfault doesn't occur.<|eor|><|eols|><|endoftext|>
28
lolphp
AlbertRammstein
fbbycvw
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>In PHP most things are intended behavior. In PHP most things are not bugs, but rather features.<|eor|><|sor|>AFAIK PHP has/had no standard/specification at all, with a mantra "whatever the behavior o...
26
lolphp
nikic
fbandlm
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>It is a bug, just without an easy fix. General consensus is that stack overflow should be detected based on guard pages, but nobody has implemented this yet.<|eor|><|eols|><|endoftext|>
20
lolphp
jesseschalken
fbbs2v7
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>"This language can't stop you from doing something stupid." Well it fucking should. Other languages manage it.<|eor|><|sor|>The point is not whether the language "prevents" you from doing something ...
19
lolphp
Altreus
fbbk4v2
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>"This language can't stop you from doing something stupid." Well it fucking should. Other languages manage it.<|eor|><|sor|>The point is not whether the language "prevents" you from doing something ...
18
lolphp
redwall_hp
fbbs1l2
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>"This language can't stop you from doing something stupid." Well it fucking should. Other languages manage it.<|eor|><|sor|>The point is not whether the language "prevents" you from doing something ...
15
lolphp
jesseschalken
fbbvunl
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>With modern languages the behaviour of C is itself becoming less and less acceptable. Languages can and should prevent you from doing stupid things; the question is now how much stupid you want to ge...
15
lolphp
jesseschalken
fbbmylf
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>"This language can't stop you from doing something stupid." Well it fucking should. Other languages manage it.<|eor|><|sor|>The point is not whether the language "prevents" you from doing something ...
14
lolphp
Takeoded
fcy1vql
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>> [2015-03-19 19:52 UTC] omars@php.net > I'd say the best way to handle this, could be using an ini directive. And there we have it, the proper fix for any PHP problem.<|eor|><|soopr|>can't wait f...
10
lolphp
redwall_hp
fbbs63b
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>In PHP most things are intended behavior. In PHP most things are not bugs, but rather features.<|eor|><|sor|>I prefer the term "accidental feature."<|eor|><|eols|><|endoftext|>
10
lolphp
barubary
fbbydj0
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>"This language can't stop you from doing something stupid." Well it fucking should. Other languages manage it.<|eor|><|sor|>The point is not whether the language "prevents" you from doing something ...
10
lolphp
greyfade
fbbrp1l
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>Some context for this problem: Linux limits the amount of 'stack' memory that you can use. The reason for this limit is that if you could allocate as much stack memory as you wanted, you would run i...
9
lolphp
fell_ratio
fbb1ch3
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>Some context for this problem: Linux limits the amount of 'stack' memory that you can use. The reason for this limit is that if you could allocate as much stack memory as you wanted, you would run i...
8
lolphp
fell_ratio
fbbx0k5
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>Some context for this problem: Linux limits the amount of 'stack' memory that you can use. The reason for this limit is that if you could allocate as much stack memory as you wanted, you would run i...
7
lolphp
fell_ratio
fbbyecy
<|sols|><|sot|>segfault is intended behavior, not a bug.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>Some context for this problem: Linux limits the amount of 'stack' memory that you can use. The reason for this limit is that if you could allocate as much stack memory as you wanted, you would run i...
7
lolphp
adrenal8
s24ey
<|sols|><|sot|>PHP: a fractal of bad design<|eot|><|sol|>http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/<|eol|><|eols|><|endoftext|>
117
lolphp
lexyeevee
c4ahzcp
<|sols|><|sot|>PHP: a fractal of bad design<|eot|><|sol|>http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/<|eol|><|sor|>ok overall, this is a very good laundry list. just a few key defences of some of the features. > Theres an (array) operator for casting to array. Given that PHP has no other structur...
21
lolphp
lexyeevee
c4ahzfj
<|sols|><|sot|>PHP: a fractal of bad design<|eot|><|sol|>http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/<|eol|><|sor|>There is a fake mysql escape string! I never knew.<|eor|><|sor|>Yes! It adds SQL injection to the string for you.<|eor|><|eols|><|endoftext|>
20
lolphp
infinull
c4ahkd6
<|sols|><|sot|>PHP: a fractal of bad design<|eot|><|sol|>http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/<|eol|><|sor|>ok overall, this is a very good laundry list. just a few key defences of some of the features. > Theres an (array) operator for casting to array. Given that PHP has no other structur...
17
lolphp
dagbrown
c4aiqnq
<|sols|><|sot|>PHP: a fractal of bad design<|eot|><|sol|>http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/<|eol|><|sor|>This article certainly lives up to its name! The further you get into it, the more detailed the complaints yet, and yet the amount of wrongness stays the same. A TL;DR version of thi...
15
lolphp
farsightxr20
c4ai2qs
<|sols|><|sot|>PHP: a fractal of bad design<|eot|><|sol|>http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/<|eol|><|sor|>"Design" you must be new to PHP<|eor|><|sor|>"DESIGN"?!?? SORRY, I USE AGILE DEVELOPMENT METHODOLOGIES.<|eor|><|eols|><|endoftext|>
11
lolphp
dagbrown
c4aixh9
<|sols|><|sot|>PHP: a fractal of bad design<|eot|><|sol|>http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/<|eol|><|sor|>"Design" you must be new to PHP<|eor|><|sor|>PHP wasn't designed--it grew. Actually, that's being way too kind to it. It hasn't so much grown as *accreted*. Look at the million reg...
9
lolphp
dipswitch
c4aj15o
<|sols|><|sot|>PHP: a fractal of bad design<|eot|><|sol|>http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/<|eol|><|sor|>re closures and use : $a = array(); $f = function() use($a) { $a[] = 1; }; $f(); print(count($a)); # 0 $f = function() use(&$a) { $a[] = 1; }; $f(); pri...
7
lolphp
lexyeevee
c4ahzjj
<|sols|><|sot|>PHP: a fractal of bad design<|eot|><|sol|>http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/<|eol|><|sor|>re closures and use : $a = array(); $f = function() use($a) { $a[] = 1; }; $f(); print(count($a)); # 0 $f = function() use(&$a) { $a[] = 1; }; $f(); pri...
6
lolphp
dagbrown
c4aipuw
<|sols|><|sot|>PHP: a fractal of bad design<|eot|><|sol|>http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/<|eol|><|sor|>"Design" you must be new to PHP<|eor|><|sor|>PHP wasn't designed--it grew. Actually, that's being way too kind to it. It hasn't so much grown as *accreted*. Look at the million reg...
5
lolphp
muglug
7hrc21
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|eols|><|endoftext|>
114
lolphp
h0rst_
dqtdhjx
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>https://3v4l.org/SkrAi Auto type conversion on steroids (or crack)<|eor|><|eols|><|endoftext|>
74
lolphp
andsens
dqt7ios
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>ok, so my theory is that the `char*` gets cast to `long*`, dereferenced, incremented and stored back into memory as a long. then when we echo the string it is treated as a `char*` again. But that is only a guess and by the ti...
20
lolphp
SirClueless
dqtezui
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>https://3v4l.org/SkrAi Auto type conversion on steroids (or crack)<|eor|><|sor|>( <|eor|><|eols|><|endoftext|>
18
lolphp
dagbrown
dqu0kwc
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>https://3v4l.org/SkrAi Auto type conversion on steroids (or crack)<|eor|><|sor|>it thinks the e means its scientific notation<|eor|><|sor|>But also that d means hex Edit: Looks like they have base 26 actually... Because that'...
13
lolphp
HotRodLincoln
dqteu3a
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>incrementing strings treats them like a base 26 number. so 'a' becomes 'b'. 'z' becomes 'aa'.<|eor|><|sor|>But only if it's a single letter. 'quiz' becomes '[quja](https://3v4l.org/1ZhUG)', not 'quiaa'<|eor|><|sor|>That would b...
10
lolphp
barubary
dqtyu9b
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>ok, so my theory is that the `char*` gets cast to `long*`, dereferenced, incremented and stored back into memory as a long. then when we echo the string it is treated as a `char*` again. But that is only a guess and by the ti...
10
lolphp
chewitt
dqtbkk8
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>incrementing strings treats them like a base 26 number. so 'a' becomes 'b'. 'z' becomes 'aa'.<|eor|><|sor|>But only if it's a single letter. 'quiz' becomes '[quja](https://3v4l.org/1ZhUG)', not 'quiaa'<|eor|><|eols|><|endoftext...
9
lolphp
coredumperror
dqt95fp
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>ok, so my theory is that the `char*` gets cast to `long*`, dereferenced, incremented and stored back into memory as a long. then when we echo the string it is treated as a `char*` again. But that is only a guess and by the ti...
8
lolphp
SirClueless
dqtes3q
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>ok, so my theory is that the `char*` gets cast to `long*`, dereferenced, incremented and stored back into memory as a long. then when we echo the string it is treated as a `char*` again. But that is only a guess and by the ti...
8
lolphp
jpresutti
dsf12fx
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>https://3v4l.org/SkrAi Auto type conversion on steroids (or crack)<|eor|><|sor|>it thinks the e means its scientific notation<|eor|><|sor|>But also that d means hex Edit: Looks like they have base 26 actually... Because that'...
8
lolphp
jghgjb790
dqu98kq
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>incrementing strings treats them like a base 26 number. so 'a' becomes 'b'. 'z' becomes 'aa'.<|eor|><|sor|>But only if it's a single letter. 'quiz' becomes '[quja](https://3v4l.org/1ZhUG)', not 'quiaa'<|eor|><|sor|>That would b...
8
lolphp
doubtfulwager
dqu9xpe
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|> <?php $init_state = ['',' ','a','-a',0,-0,0.00,-0.00,null,true,false]; foreach ($init_state as $val) { $ip = $val; $in = $val; $pi = $val; $ni = $val; --$ip; ...
7
lolphp
h0rst_
drdc7vs
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>https://3v4l.org/SkrAi Auto type conversion on steroids (or crack)<|eor|><|sor|>How does 1d9 + 1 = 1e0? What is happening here?<|eor|><|sor|>The same way as 129 + 1 = 130: you add 1 to the last digits, it becomes 10 an the 1 i...
7
lolphp
h0rst_
drdcgz0
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>https://3v4l.org/SkrAi Auto type conversion on steroids (or crack)<|eor|><|sor|>Hah, trying to reproduce it locally and got another crazy error http://0x0.st/sXtr.png <|eor|><|sor|>Ah, the infamous [T_PAAMAYIM_NEKUDOTAYIM](htt...
7
lolphp
dagbrown
dqu5w7t
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>ok, so my theory is that the `char*` gets cast to `long*`, dereferenced, incremented and stored back into memory as a long. then when we echo the string it is treated as a `char*` again. But that is only a guess and by the ti...
7
lolphp
randomuser8765
drivx17
<|sols|><|sot|>$a = "hello"; $a++; echo $a;<|eot|><|sol|>https://3v4l.org/p5Apm<|eol|><|sor|>https://3v4l.org/SkrAi Auto type conversion on steroids (or crack)<|eor|><|sor|>How does 1d9 + 1 = 1e0? What is happening here?<|eor|><|sor|>The same way as 129 + 1 = 130: you add 1 to the last digits, it becomes 10 an the 1 i...
7
lolphp
SockPants
31s7ya
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|eols|><|endoftext|>
118
lolphp
senatorpjt
cq4tecl
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>How is competency controlled for? Once devs become competent, they stop using PHP.<|eor|><|eols|><|endoftext|>
42
lolphp
svtguy88
cq4kz3w
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>So...I know the coasts and other "hot tech areas" get a substantial pay premium, but am I the only one that thinks these all seem a bit on the high side? Either that, or I need a rai...
26
lolphp
TheBuzzSaw
cq4nrs1
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>So...I know the coasts and other "hot tech areas" get a substantial pay premium, but am I the only one that thinks these all seem a bit on the high side? Either that, or I need a rai...
25
lolphp
tobiasvl
cq55gxy
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>As a European, I'm interested in those other two tabs as well. Why would you not include then, is this a US sub? <|eor|><|eols|><|endoftext|>
13
lolphp
polish_niceguy
cq5tzlm
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>How is competency controlled for? Once devs become competent, they stop using PHP.<|eor|><|sor|>Not necessarily. It's popular, easy to host and you can produce decent code if you are ...
13
lolphp
cliath
cq4w8wu
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>So...I know the coasts and other "hot tech areas" get a substantial pay premium, but am I the only one that thinks these all seem a bit on the high side? Either that, or I need a rai...
13
lolphp
allthediamonds
cq4nulu
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>Well, it's not surprising they get paid like juniors considering they're overwhelmingly juniors.<|eor|><|eols|><|endoftext|>
12
lolphp
OneWingedShark
cq4ja56
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>Interesting. Supply and Demand?<|eor|><|eols|><|endoftext|>
9
lolphp
OneWingedShark
cq4n3w1
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>Interesting. Supply and Demand?<|eor|><|sor|>[deleted]<|eor|><|sor|>I just wish the demand weren't so high. :/<|eor|><|eols|><|endoftext|>
9
lolphp
cfreak2399
cq5b98u
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>So...I know the coasts and other "hot tech areas" get a substantial pay premium, but am I the only one that thinks these all seem a bit on the high side? Either that, or I need a rai...
9
lolphp
jb2386
cq4rsi0
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>Well, that's USA. Here in Australia it's different at least. I make a mint with PHP.<|eor|><|eols|><|endoftext|>
8
lolphp
SockPants
cq55l3w
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>As a European, I'm interested in those other two tabs as well. Why would you not include then, is this a US sub? <|eor|><|soopr|>The trend was most clear in this category. The entire ...
7
lolphp
eof
cq4mmt7
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>So...I know the coasts and other "hot tech areas" get a substantial pay premium, but am I the only one that thinks these all seem a bit on the high side? Either that, or I need a rai...
7
lolphp
bios_hazard
cq57trs
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>Interesting. Supply and Demand?<|eor|><|sor|>[deleted]<|eor|><|sor|>I just wish the demand weren't so high. :/<|eor|><|sor|>Indeed. Know it down to the interpreter and you'll probab...
7
lolphp
__constructor
cqubiht
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>This isn't "regardless of competency" it's "without taking competency into account". PHP's userbase is polluted with low-effort, low-pay positions. At the senior levels, PHP develope...
6
lolphp
OneWingedShark
cq5ek13
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>Interesting. Supply and Demand?<|eor|><|sor|>[deleted]<|eor|><|sor|>I just wish the demand weren't so high. :/<|eor|><|sor|>Indeed. Know it down to the interpreter and you'll probab...
6
lolphp
tinkermake
cq4rq2v
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>So...I know the coasts and other "hot tech areas" get a substantial pay premium, but am I the only one that thinks these all seem a bit on the high side? Either that, or I need a rai...
5
lolphp
ZorbaTHut
cq500hl
<|sols|><|sot|>PHP devs earn less than any other devs regardless of competency.<|eot|><|sol|>http://i.imgur.com/qjQxzBz.png<|eol|><|sor|>So...I know the coasts and other "hot tech areas" get a substantial pay premium, but am I the only one that thinks these all seem a bit on the high side? Either that, or I need a rai...
5
lolphp
Takeoded
pulak7
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|eols|><|endoftext|>
118
lolphp
current_thread
he426n3
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>WHY?! That's finally some good /r/lolphp material...<|eor|><|eols|><|endoftext|>
36
lolphp
colshrapnel
he4449g
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>WHY?! That's finally some good /r/lolphp material...<|eor|><|sor|>Because false is a special return value in PHP for many built-in functions and legacy code. A function either returns an...
28
lolphp
regretdeletingthat
he4fmdl
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>This makes perfect sense in the context of what is already in the PHP stdlib. Many many built-in functions return some value or false on error. Is it ideal? No. Is it good to be able t...
23
lolphp
stfcfanhazz
he4ox1d
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>Although I understand why, I think this post is indeed worthy of this sub.<|eor|><|eols|><|endoftext|>
22
lolphp
colshrapnel
he476vx
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>WHY?! That's finally some good /r/lolphp material...<|eor|><|sor|>Because false is a special return value in PHP for many built-in functions and legacy code. A function either returns an...
22
lolphp
Takeoded
he4rfm2
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>WHY?! That's finally some good /r/lolphp material...<|eor|><|sor|>Because false is a special return value in PHP for many built-in functions and legacy code. A function either returns an...
14
lolphp
bkdotcom
he4ucmk
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>WHY?! That's finally some good /r/lolphp material...<|eor|><|sor|>Because false is a special return value in PHP for many built-in functions and legacy code. A function either returns an...
12
lolphp
duskwuff
he4iv0r
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>WHY?! That's finally some good /r/lolphp material...<|eor|><|sor|>Because false is a special return value in PHP for many built-in functions and legacy code. A function either returns an...
11
lolphp
current_thread
he44asq
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>WHY?! That's finally some good /r/lolphp material...<|eor|><|sor|>Because false is a special return value in PHP for many built-in functions and legacy code. A function either returns an...
10
lolphp
nikic
hezhh56
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>WHY?! That's finally some good /r/lolphp material...<|eor|><|sor|>Because false is a special return value in PHP for many built-in functions and legacy code. A function either returns an...
10
lolphp
regretdeletingthat
he5gmkd
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>This makes perfect sense in the context of what is already in the PHP stdlib. Many many built-in functions return some value or false on error. Is it ideal? No. Is it good to be able t...
8
lolphp
regretdeletingthat
he5fygc
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>This makes perfect sense in the context of what is already in the PHP stdlib. Many many built-in functions return some value or false on error. Is it ideal? No. Is it good to be able t...
8
lolphp
kyou20
he57z0b
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>WHY?! That's finally some good /r/lolphp material...<|eor|><|sor|>Because false is a special return value in PHP for many built-in functions and legacy code. A function either returns an...
8
lolphp
mr_ywg
he566kw
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>This makes perfect sense in the context of what is already in the PHP stdlib. Many many built-in functions return some value or false on error. Is it ideal? No. Is it good to be able t...
7
lolphp
bkdotcom
he4g02k
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>WHY?! That's finally some good /r/lolphp material...<|eor|><|sor|>Because false is a special return value in PHP for many built-in functions and legacy code. A function either returns an...
6
lolphp
kyou20
he58qmf
<|sols|><|sot|>as of php8, int|false is a valid return type, but int|true is illegal<|eot|><|sol|>https://3v4l.org/uD2LA<|eol|><|sor|>This makes perfect sense in the context of what is already in the PHP stdlib. Many many built-in functions return some value or false on error. Is it ideal? No. Is it good to be able t...
5
lolphp
ManchegoObfuscator
1l8fru
<|sols|><|sot|>[from r/PHP] Creating a user from the web problem.<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/1l7baq/creating_a_user_from_the_web_problem/<|eol|><|eols|><|endoftext|>
116
lolphp
Sarcastinator
cbwtlmc
<|sols|><|sot|>[from r/PHP] Creating a user from the web problem.<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/1l7baq/creating_a_user_from_the_web_problem/<|eol|><|sor|>Why. Oh god why. I need a drink.<|eor|><|sor|>I mean..I know it's not making fun of PHP specifically and you can easily do something that horrif...
15
lolphp
infinull
cbwsaca
<|sols|><|sot|>[from r/PHP] Creating a user from the web problem.<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/1l7baq/creating_a_user_from_the_web_problem/<|eol|><|sor|>Why. Oh god why. I need a drink.<|eor|><|sor|>I mean..I know it's not making fun of PHP specifically and you can easily do something that horrif...
12
lolphp
djsumdog
cbws1z0
<|sols|><|sot|>[from r/PHP] Creating a user from the web problem.<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/1l7baq/creating_a_user_from_the_web_problem/<|eol|><|sor|>Why. Oh god why. I need a drink.<|eor|><|sor|>I mean..I know it's not making fun of PHP specifically and you can easily do something that horrif...
10
lolphp
PasswordIsntHAMSTER
cbx48jd
<|sols|><|sot|>[from r/PHP] Creating a user from the web problem.<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/1l7baq/creating_a_user_from_the_web_problem/<|eol|><|sor|>Not exactly a lolphp, more a "lol incompetent idiots programming".<|eor|><|sor|>Which seems more prevalent with PHP<|eor|><|eols|><|endoftext|>
5
lolphp
RainOnYourTirade
36s7nd
<|sols|><|sot|>Boolean return values are so inconsistent that they summoned Zalgo to php.net<|eot|><|sol|>http://i.imgur.com/i6GWf0l.jpg<|eol|><|eols|><|endoftext|>
108
lolphp
idmontie
crgozzf
<|sols|><|sot|>Boolean return values are so inconsistent that they summoned Zalgo to php.net<|eot|><|sol|>http://i.imgur.com/i6GWf0l.jpg<|eol|><|sor|>At least it doesn't return 1 for failure and 0 for success. As we know, PHP does like to be consistent.<|eor|><|eols|><|endoftext|>
30
lolphp
barubary
crheyjh
<|sols|><|sot|>Boolean return values are so inconsistent that they summoned Zalgo to php.net<|eot|><|sol|>http://i.imgur.com/i6GWf0l.jpg<|eol|><|sor|>At least it doesn't return 1 for failure and 0 for success. As we know, PHP does like to be consistent.<|eor|><|sor|>Or null for failure, even though null is also a valid...
19
lolphp
UristMasterRace
crgr8m5
<|sols|><|sot|>Boolean return values are so inconsistent that they summoned Zalgo to php.net<|eot|><|sol|>http://i.imgur.com/i6GWf0l.jpg<|eol|><|sor|>Thus decreed the Old Gods that PHP would be the tongue of He who Waits Behind The Wall. ZALGO!<|eor|><|eols|><|endoftext|>
15
lolphp
youstolemyname
crgqcak
<|sols|><|sot|>Boolean return values are so inconsistent that they summoned Zalgo to php.net<|eot|><|sol|>http://i.imgur.com/i6GWf0l.jpg<|eol|><|sor|>Where are you seeing this? Link?<|eor|><|sor|>http://php.net/manual/en/function.xml-parse-into-struct.php<|eor|><|eols|><|endoftext|>
7
lolphp
ZiggyTheHamster
crhklvn
<|sols|><|sot|>Boolean return values are so inconsistent that they summoned Zalgo to php.net<|eot|><|sol|>http://i.imgur.com/i6GWf0l.jpg<|eol|><|sor|>At least it doesn't return 1 for failure and 0 for success. As we know, PHP does like to be consistent.<|eor|><|sor|>Or null for failure, even though null is also a valid...
6
lolphp
RainOnYourTirade
crgrrom
<|sols|><|sot|>Boolean return values are so inconsistent that they summoned Zalgo to php.net<|eot|><|sol|>http://i.imgur.com/i6GWf0l.jpg<|eol|><|sor|>Where are you seeing this? Link?<|eor|><|sor|>http://php.net/manual/en/function.xml-parse-into-struct.php<|eor|><|soopr|>Bingo<|eoopr|><|sor|>Is it still Zalgo'd for you?...
5
lolphp
polish_niceguy
2wse9i
<|sols|><|sot|>Just ran into this one. PHP backward compatibility at its finest.<|eot|><|sol|>http://stackoverflow.com/questions/283751/php-replaces-spaces-with-underlines<|eol|><|eols|><|endoftext|>
110
lolphp
McGlockenshire
cotqm3z
<|sols|><|sot|>Just ran into this one. PHP backward compatibility at its finest.<|eot|><|sol|>http://stackoverflow.com/questions/283751/php-replaces-spaces-with-underlines<|eol|><|sor|>There are two parts about this that make it *exceptionally* infuriating. 1. *All* processed input is mangled in this way. Not just $_...
37
lolphp
vytah
cotugja
<|sols|><|sot|>Just ran into this one. PHP backward compatibility at its finest.<|eot|><|sol|>http://stackoverflow.com/questions/283751/php-replaces-spaces-with-underlines<|eol|><|sor|>So I was thinking, even when register_globals was a thing, why mangle the values on input? Why not do that in a function like [extract]...
34
lolphp
sloat
cotstn9
<|sols|><|sot|>Just ran into this one. PHP backward compatibility at its finest.<|eot|><|sol|>http://stackoverflow.com/questions/283751/php-replaces-spaces-with-underlines<|eol|><|sor|>So I was thinking, even when register_globals was a thing, why mangle the values on input? Why not do that in a function like [extract]...
23
lolphp
polish_niceguy
cotz1re
<|sols|><|sot|>Just ran into this one. PHP backward compatibility at its finest.<|eot|><|sol|>http://stackoverflow.com/questions/283751/php-replaces-spaces-with-underlines<|eol|><|sor|>There are two parts about this that make it *exceptionally* infuriating. 1. *All* processed input is mangled in this way. Not just $_...
20
lolphp
polish_niceguy
couf03l
<|sols|><|sot|>Just ran into this one. PHP backward compatibility at its finest.<|eot|><|sol|>http://stackoverflow.com/questions/283751/php-replaces-spaces-with-underlines<|eol|><|sor|>But let's be honest, if you're using spaces in variable names you're stupid<|eor|><|soopr|>Request variables are not PHP variables and ...
11
lolphp
polish_niceguy
cotz5jg
<|sols|><|sot|>Just ran into this one. PHP backward compatibility at its finest.<|eot|><|sol|>http://stackoverflow.com/questions/283751/php-replaces-spaces-with-underlines<|eol|><|sor|>So I was thinking, even when register_globals was a thing, why mangle the values on input? Why not do that in a function like [extract]...
11
lolphp
greyphilosopher
couhq1b
<|sols|><|sot|>Just ran into this one. PHP backward compatibility at its finest.<|eot|><|sol|>http://stackoverflow.com/questions/283751/php-replaces-spaces-with-underlines<|eol|><|sor|>So not only are the values mangled, they are mangled in a many-to-one way that is impossible to reverse definitively. Fantastic.<|eor|>...
6
lolphp
turtlekitty2084
cow3ajt
<|sols|><|sot|>Just ran into this one. PHP backward compatibility at its finest.<|eot|><|sol|>http://stackoverflow.com/questions/283751/php-replaces-spaces-with-underlines<|eol|><|sor|>This is gold.<|eor|><|eols|><|endoftext|>
5