subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
datibbaw
cb28tqj
<|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>Null is amazing. * NULL == 0 * NULL < -INF * NULL == an empty array * (NULL++) == 1 * (NU...
8
lolphp
idontlikethisname
cb0hr1v
<|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>take one out of the empty set, get the empty set put one in the empty set, get one <|eor|><|sor|>fea...
8
lolphp
h0rst_
cb0nmzr
<|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>As someone accustomed to php's quirks, I don't really see anything wrong here<|eor|><|sor|>"As someone...
7
lolphp
nahguri
cb0lr40
<|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>As someone accustomed to php's quirks, I don't really see anything wrong here<|eor|><|sor|>What you ca...
7
lolphp
jamwaffles
cb1fncx
<|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>As someone accustomed to php's quirks, I don't really see anything wrong here<|eor|><|soopr|>> As some...
6
lolphp
shitcanz
8luef9
<|sols|><|sot|>PHP: When side-effects are a core feature<|eot|><|sol|>https://bugs.php.net/bug.php?id=75232<|eol|><|eols|><|endoftext|>
81
lolphp
maweki
dzillel
<|sols|><|sot|>PHP: When side-effects are a core feature<|eot|><|sol|>https://bugs.php.net/bug.php?id=75232<|eol|><|sor|>Let me get this straight: So someone actually wanted to access it at any time and opened a feature request (it's available via reflection, why not at any time?). Then someone sees that accessing it v...
37
lolphp
jdickey
dzjjyi1
<|sols|><|sot|>PHP: When side-effects are a core feature<|eot|><|sol|>https://bugs.php.net/bug.php?id=75232<|eol|><|sor|>Once again reminding people that [*PHP is a low-level programming language at the WRONG LEVEL*](https://two-pi-r.livejournal.com/622760.html). I spent well over 10 years working in (and actively def...
24
lolphp
shitcanz
dzjkthg
<|sols|><|sot|>PHP: When side-effects are a core feature<|eot|><|sol|>https://bugs.php.net/bug.php?id=75232<|eol|><|sor|>Once again reminding people that [*PHP is a low-level programming language at the WRONG LEVEL*](https://two-pi-r.livejournal.com/622760.html). I spent well over 10 years working in (and actively def...
13
lolphp
slikts
dzlqjsh
<|sols|><|sot|>PHP: When side-effects are a core feature<|eot|><|sol|>https://bugs.php.net/bug.php?id=75232<|eol|><|sor|>Once again reminding people that [*PHP is a low-level programming language at the WRONG LEVEL*](https://two-pi-r.livejournal.com/622760.html). I spent well over 10 years working in (and actively def...
7
lolphp
the_alias_of_andrea
477fx9
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|eols|><|endoftext|>
84
lolphp
tapesmith
d0b502m
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|sor|>MySQL may be the PHP of RDBMSes, but MongoDB is the PHP of databases. Fire-and-forget writes, nothing even *attempting* to resemble ACID compliance, multiple different incomparable date types, multiple *i...
66
lolphp
the_alias_of_andrea
d0aqhmy
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|soopr|>When I say "PHP of databases", I mean it. MySQL is awful in all the same kinds of ways PHP is awful. No wonder they're used together so often. So I felt I'd submit a link to the subreddit here, it need...
27
lolphp
cbraga
d0b4m5o
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|soopr|>When I say "PHP of databases", I mean it. MySQL is awful in all the same kinds of ways PHP is awful. No wonder they're used together so often. So I felt I'd submit a link to the subreddit here, it need...
27
lolphp
redwall_hp
d0blqa9
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|sor|>MySQL may be the PHP of RDBMSes, but MongoDB is the PHP of databases. Fire-and-forget writes, nothing even *attempting* to resemble ACID compliance, multiple different incomparable date types, multiple *i...
23
lolphp
the_alias_of_andrea
d0b6e6h
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|soopr|>When I say "PHP of databases", I mean it. MySQL is awful in all the same kinds of ways PHP is awful. No wonder they're used together so often. So I felt I'd submit a link to the subreddit here, it need...
14
lolphp
TomWis97
d0b2u0g
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|sor|>Clickable link for mobile users: /r/lolmysql<|eor|><|eols|><|endoftext|>
11
lolphp
skeeto
d0b206h
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|sor|>It drives me nuts when data is shared as a MySQL dump with all the proprietary MySQL bells and whistles (the default), rather than something ANSI conforming. The only way to process these is to load it in...
10
lolphp
crankybadger
d0bhsvd
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|soopr|>When I say "PHP of databases", I mean it. MySQL is awful in all the same kinds of ways PHP is awful. No wonder they're used together so often. So I felt I'd submit a link to the subreddit here, it need...
9
lolphp
McGlockenshire
d0bqh4q
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|sor|>MySQL may be the PHP of RDBMSes, but MongoDB is the PHP of databases. Fire-and-forget writes, nothing even *attempting* to resemble ACID compliance, multiple different incomparable date types, multiple *i...
7
lolphp
the_alias_of_andrea
d0bsqwo
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|soopr|>When I say "PHP of databases", I mean it. MySQL is awful in all the same kinds of ways PHP is awful. No wonder they're used together so often. So I felt I'd submit a link to the subreddit here, it need...
7
lolphp
the_alias_of_andrea
d0d32cs
<|sols|><|sot|>/r/lolmysql/ - for the PHP of databases<|eot|><|sol|>https://www.reddit.com/r/lolmysql/<|eol|><|soopr|>When I say "PHP of databases", I mean it. MySQL is awful in all the same kinds of ways PHP is awful. No wonder they're used together so often. So I felt I'd submit a link to the subreddit here, it need...
5
lolphp
cube-drone
3sti35
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|eols|><|endoftext|>
82
lolphp
smog_alado
cx0dh08
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>Could anyone please explain what the flying fuck is going on here?<|eor|><|eols|><|endoftext|>
63
lolphp
cube-drone
cx0gk3r
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>TIL Luxembourg is a gender <|eor|><|soopr|>NORWAY IN THE STREETS BUT MALTA IN THE SHEETS<|eoopr|><|eols|><|endoftext|>
46
lolphp
infinull
cx0f450
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>Could anyone please explain what the flying fuck is going on here?<|eor|><|sor|>It's a third party library for determining the gender of a given name. The nationality is because worldwide a name can be mostly one ge...
42
lolphp
papers_
cx09s08
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>~~const integer USA = 3 ;~~ `const integer USA = 1 ;` FTFY. /r/MURICA <|eor|><|eols|><|endoftext|>
36
lolphp
the_alias_of_andrea
cx0minh
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>It seems absurd until you realise it detects the gender of a name. But why would you ever do that? Guessing name gender is a bad idea, just ask for it. Heck, why do you care what gender someone is anyway?<|eor|><|e...
29
lolphp
mort96
cx0idpr
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>Should account for third gender / non binary. <|eor|><|sor|>What do you mean? It has mostly female, ireland, unisex, female, couple, mostly male, error, etc. Seems to be pretty open to non-binary genders.<|eor|><|eo...
25
lolphp
merreborn
cx0ofrb
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>Huh, this is pretty useful. It probably doesn't need to be an extension but the C code was already there.. so.. The API is sub-optimal, but that's because it seems to be a pretty thin wrapper around the underlying...
24
lolphp
cube-drone
cx0p9uo
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>It seems absurd until you realise it detects the gender of a name. But why would you ever do that? Guessing name gender is a bad idea, just ask for it. Heck, why do you care what gender someone is anyway?<|eor|><|s...
23
lolphp
edwardly
cx0bsky
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>Huh, this is pretty useful. It probably doesn't need to be an extension but the C code was already there.. so.. The API is sub-optimal, but that's because it seems to be a pretty thin wrapper around the underlying...
19
lolphp
merreborn
cx0odtv
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>Could anyone please explain what the flying fuck is going on here?<|eor|><|sor|>See the intro and example pages https://secure.php.net/manual/en/intro.gender.php https://secure.php.net/manual/en/gender.examp...
18
lolphp
shillbert
cx0j2gt
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>Should account for third gender / non binary. <|eor|><|sor|>What do you mean? It has mostly female, ireland, unisex, female, couple, mostly male, error, etc. Seems to be pretty open to non-binary genders.<|eor|><|so...
18
lolphp
Neckbeard_Prime
cx0s19o
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>Should account for third gender / non binary. <|eor|><|sor|>It doesn't report the gender of people, it reports the gender of names. In the sense that "alice" is a "girl's name" and "stephen" is a "boy's name"... ar...
18
lolphp
scshunt
cx08q86
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>Not part of the standard library, but oh my... This is pretty amazing.<|eor|><|eols|><|endoftext|>
17
lolphp
headzoo
cx0x4oc
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>Not a PHP programmer - why not use an enum? This counting is ridiculous.<|eor|><|sor|>PHP doesn't have enums.<|eor|><|eols|><|endoftext|>
16
lolphp
josefx
cx0t1sa
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>It seems absurd until you realise it detects the gender of a name. But why would you ever do that? Guessing name gender is a bad idea, just ask for it. Heck, why do you care what gender someone is anyway?<|eor|><|s...
15
lolphp
merreborn
cx0pmrc
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>It seems absurd until you realise it detects the gender of a name. But why would you ever do that? Guessing name gender is a bad idea, just ask for it. Heck, why do you care what gender someone is anyway?<|eor|><|s...
15
lolphp
bart2019
cx0wcq3
<|sols|><|sot|>Gender/Gender<|eot|><|sol|>https://secure.php.net/manual/en/class.gender.php<|eol|><|sor|>No, Patrick. Belgium is not a gender.<|eor|><|sor|>It's not even a language (more than half of the population speak Dutch, almost all the rest speak French) so you can't use it to guess a gender from a first name. <...
14
lolphp
SockPants
3pgtht
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|eols|><|endoftext|>
83
lolphp
leedavis81
cw66qww
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|sor|>God bless goto: https://github.com/igorw/retry/issues/3<|eor|><|eols|><|endoftext|>
63
lolphp
nahguri
cw6djof
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|sor|>>You can still write scripts, even powerful scripts lol<|eor|><|sor|>That line is gloriously retarded.<|e...
26
lolphp
hey_aaapple
cw6kfej
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|sor|>God bless goto: https://github.com/igorw/retry/issues/3<|eor|><|sor|>Mother of all premature optimizations...
24
lolphp
sickofthisshit
cw68hqj
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|soopr|>I thought we all agreed that it was good that we finally got rid of GOTO as a programming construct.<|eo...
24
lolphp
ioctl79
cw6kbgi
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|sor|>I think it is super important that language documentation is accessible to beginners. Maybe it shouldn't b...
17
lolphp
DCoder1337
cw68zzj
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|sor|>God bless goto: https://github.com/igorw/retry/issues/3<|eor|><|sor|>The level of stupidity in that thread...
17
lolphp
smog_alado
cw6ej6k
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|soopr|>I thought we all agreed that it was good that we finally got rid of GOTO as a programming construct.<|eo...
17
lolphp
PGLubricants
cw67drr
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|sor|>God bless goto: https://github.com/igorw/retry/issues/3<|eor|><|sor|>Wait, is he actually seriouse? That i...
16
lolphp
sickofthisshit
cw6dvww
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|sor|>There is mathematically\* no reason whatsoever to use goto in place of the structured form - the only poss...
16
lolphp
Scaliwag
cw6v114
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|sor|>God bless goto: https://github.com/igorw/retry/issues/3<|eor|><|sor|>The level of stupidity in that thread...
11
lolphp
AcellOfllSpades
cw6cgxj
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|soopr|>I thought we all agreed that it was good that we finally got rid of GOTO as a programming construct.<|eo...
10
lolphp
bart2019
cw69wcw
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|sor|>Perl has bare blocks for this purpose, i.e. just the braces. They act like loop bodies that are executed e...
9
lolphp
sickofthisshit
cw6ayia
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|soopr|>I thought we all agreed that it was good that we finally got rid of GOTO as a programming construct.<|eo...
9
lolphp
outadoc
cw7af5i
<|sols|><|sot|>On using 'do {} while(0)' with breaks: "Since PHP 5.3.0, it is possible to use goto operator instead of this hack."<|eot|><|sol|>http://php.net/manual/en/control-structures.do.while.php<|eol|><|sor|>God bless goto: https://github.com/igorw/retry/issues/3<|eor|><|sor|>> will then be executed by the Zend (...
8
lolphp
vytah
3nc5s7
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|eols|><|endoftext|>
85
lolphp
ZugNachPankow
cvmqr59
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>PHP keeps features around "for backwards compatibility", except when it doesn't.<|eor|><|eols|><|endoftext|>
41
lolphp
vytah
cvmt9nk
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>Shouldn't this be false though? I mean, couldn't you argue any bug fix is breaking backward compatibility? (though maybe that wasn't what happened in this exact instance.)<|eor|><|soopr|>Given that they "fixed" it in ...
35
lolphp
_vec_
cvnd7p2
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>So they have a unit test suite right? Put this sucker in there as a test and don't push out releases if the test fails. Whether it should be true or false is another discussion, but in a sane project this would be an...
26
lolphp
outadoc
cvn4ksf
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>PHP keeps features around "for backwards compatibility", except when it doesn't.<|eor|><|sor|>They only keep backwards compatibility for crappy reasons: that's what makes PHP, after all. <|eor|><|eols|><|endoftext|>
20
lolphp
vytah
cvn52ki
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>Shouldn't this be false though? I mean, couldn't you argue any bug fix is breaking backward compatibility? (though maybe that wasn't what happened in this exact instance.)<|eor|><|soopr|>Given that they "fixed" it in ...
20
lolphp
thelordofcheese
cvmpbyg
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>goddammit<|eor|><|eols|><|endoftext|>
18
lolphp
DoctorWaluigiTime
cvnc3ah
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>So they have a unit test suite right? Put this sucker in there as a test and don't push out releases if the test fails. Whether it should be true or false is another discussion, but in a sane project this would be an...
17
lolphp
DCoder1337
cvnnzkh
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>So they have a unit test suite right? Put this sucker in there as a test and don't push out releases if the test fails. Whether it should be true or false is another discussion, but in a sane project this would be an...
14
lolphp
nikic
cvnmpxh
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>RFC introducing this intentional backwards compatibility break in PHP 7: https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings The back and forth before that is funny though \^\^<|eor|><|eols|><|endoftext|>
13
lolphp
ZugNachPankow
cvn07mg
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>Shouldn't this be false though? I mean, couldn't you argue any bug fix is breaking backward compatibility? (though maybe that wasn't what happened in this exact instance.)<|eor|><|soopr|>Given that they "fixed" it in ...
13
lolphp
DoctorWaluigiTime
cvndb5l
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>So they have a unit test suite right? Put this sucker in there as a test and don't push out releases if the test fails. Whether it should be true or false is another discussion, but in a sane project this would be an...
12
lolphp
xrogaan
cvoswwc
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>So they have a unit test suite right? Put this sucker in there as a test and don't push out releases if the test fails. Whether it should be true or false is another discussion, but in a sane project this would be an...
10
lolphp
profmonocle
cvnkx1k
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>Shouldn't this be false though? I mean, couldn't you argue any bug fix is breaking backward compatibility? (though maybe that wasn't what happened in this exact instance.)<|eor|><|soopr|>Given that they "fixed" it in ...
8
lolphp
Grimy_
cvoyi8x
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>So they have a unit test suite right? Put this sucker in there as a test and don't push out releases if the test fails. Whether it should be true or false is another discussion, but in a sane project this would be an...
8
lolphp
Schmittfried
cvn80xm
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>Shouldn't this be false though? I mean, couldn't you argue any bug fix is breaking backward compatibility? (though maybe that wasn't what happened in this exact instance.)<|eor|><|sor|>Given that the PHP devs usually ...
7
lolphp
vytah
cvoz5ue
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>PHP maintains compatibility, everybody complains and a subreddit is created. PHP documents a backwards incompatibility for a new version, and people exclaim: how they dare! https://wiki.php.net/rfc/remove_hex_suppor...
6
lolphp
rinyre
cvn3z80
<|sols|><|sot|>Backwards compatibility? What is that?<|eot|><|sol|>https://3v4l.org/nneXO<|eol|><|sor|>Shouldn't this be false though? I mean, couldn't you argue any bug fix is breaking backward compatibility? (though maybe that wasn't what happened in this exact instance.)<|eor|><|soopr|>Given that they "fixed" it in ...
5
lolphp
phplovesong
bmvrn9
<|soss|><|sot|>PHP: When printing causes side-effects<|eot|><|sost|>So when you have two DateInterval objects, that are equal you can compare them with PHP loose comparison (==). But after you print one (say for logging purposes) it gets internally modified and the two objects are no longer equal. The same happens when...
80
lolphp
nikic
en0exdj
<|soss|><|sot|>PHP: When printing causes side-effects<|eot|><|sost|>So when you have two DateInterval objects, that are equal you can compare them with PHP loose comparison (==). But after you print one (say for logging purposes) it gets internally modified and the two objects are no longer equal. The same happens when...
15
lolphp
nikic
en1mav1
<|soss|><|sot|>PHP: When printing causes side-effects<|eot|><|sost|>So when you have two DateInterval objects, that are equal you can compare them with PHP loose comparison (==). But after you print one (say for logging purposes) it gets internally modified and the two objects are no longer equal. The same happens when...
15
lolphp
phplovesong
enbkbue
<|soss|><|sot|>PHP: When printing causes side-effects<|eot|><|sost|>So when you have two DateInterval objects, that are equal you can compare them with PHP loose comparison (==). But after you print one (say for logging purposes) it gets internally modified and the two objects are no longer equal. The same happens when...
7
lolphp
the_satch
ephjg15
<|soss|><|sot|>PHP: When printing causes side-effects<|eot|><|sost|>So when you have two DateInterval objects, that are equal you can compare them with PHP loose comparison (==). But after you print one (say for logging purposes) it gets internally modified and the two objects are no longer equal. The same happens when...
6
lolphp
timw4mail
en0uz70
<|soss|><|sot|>PHP: When printing causes side-effects<|eot|><|sost|>So when you have two DateInterval objects, that are equal you can compare them with PHP loose comparison (==). But after you print one (say for logging purposes) it gets internally modified and the two objects are no longer equal. The same happens when...
5
lolphp
nikic
en0o31j
<|soss|><|sot|>PHP: When printing causes side-effects<|eot|><|sost|>So when you have two DateInterval objects, that are equal you can compare them with PHP loose comparison (==). But after you print one (say for logging purposes) it gets internally modified and the two objects are no longer equal. The same happens when...
5
lolphp
naveen17797
9vh2z7
<|sols|><|sot|>When they are looking for rasmus lerdorf<|eot|><|sol|>https://i.redd.it/ej4djxnp78x11.png<|eol|><|eols|><|endoftext|>
82
lolphp
horstenkoetter
e9cenhk
<|sols|><|sot|>When they are looking for rasmus lerdorf<|eot|><|sol|>https://i.redd.it/ej4djxnp78x11.png<|eol|><|sor|>Missing a hyphen, Id guess.<|eor|><|eols|><|endoftext|>
27
lolphp
myaut
e9dgtfz
<|sols|><|sot|>When they are looking for rasmus lerdorf<|eot|><|sol|>https://i.redd.it/ej4djxnp78x11.png<|eol|><|sor|>> Familiarity with the limitations of PHP as a platform and its workarounds The real lol here.<|eor|><|eols|><|endoftext|>
26
lolphp
the_alias_of_andrea
e9cbgdf
<|sols|><|sot|>When they are looking for rasmus lerdorf<|eot|><|sol|>https://i.redd.it/ej4djxnp78x11.png<|eol|><|sor|>I'm impressed they bothered to get the date accurate and not just ask for 30 years!<|eor|><|eols|><|endoftext|>
17
lolphp
wafflePower1
e9cey7r
<|sols|><|sot|>When they are looking for rasmus lerdorf<|eot|><|sol|>https://i.redd.it/ej4djxnp78x11.png<|eol|><|sor|>Missing a hyphen, Id guess.<|eor|><|sor|>Yep, not really that interesting :(<|eor|><|eols|><|endoftext|>
12
lolphp
sinking_Time
e9e1xwj
<|sols|><|sot|>When they are looking for rasmus lerdorf<|eot|><|sol|>https://i.redd.it/ej4djxnp78x11.png<|eol|><|sor|>Missing a hyphen, Id guess.<|eor|><|sor|>Wow. That was reasonable. Smart. <|eor|><|eols|><|endoftext|>
8
lolphp
barubary
467ykt
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|eols|><|endoftext|>
83
lolphp
midir
d03arpm
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>That's absolutely ridiculous. The originally published MT code includes a file of the expected output for a sample loop. It's very eas...
33
lolphp
barubary
d03f1o3
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>Has it been wrong all these years, or just recently?<|eor|><|soopr|>That code was introduced in http://git.php.net/?p=php-src.git;a=com...
31
lolphp
tdammers
d03429x
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>This is why we have unit tests, kids. <|eor|><|sor|>Except that [they didn't](http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce...
23
lolphp
HiddenKrypt
d033x2z
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>This is why we have unit tests, kids. <|eor|><|eols|><|endoftext|>
21
lolphp
barubary
d04f95o
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|soopr|>Now reverted for backwards compatibility reasons: https://github.com/php/php-src/commit/a0724d30817600540946b41e40f4cfc2a0c30f80 (Ne...
21
lolphp
the_alias_of_andrea
d03r1a2
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>Huh, I would've thought that PHP would import the code wholesale. I wonder how this error could have been introduced. Also, wow, that'...
14
lolphp
flying-sheep
d05z60w
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>Well, we do now: https://github.com/php/php-src/commit/a50c31da1917bb07b3c11f229125ab8d1f0b9b70<|eor|><|sor|>dafuq, how is this desirab...
14
lolphp
the_alias_of_andrea
d038vuh
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>Huh, I would've thought that PHP would import the code wholesale. I wonder how this error could have been introduced. Also, wow, that'...
12
lolphp
dtfinch
d03cjpp
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>Has it been wrong all these years, or just recently?<|eor|><|eols|><|endoftext|>
12
lolphp
bladder-rinse-repeat
d03qpli
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>Huh, I would've thought that PHP would import the code wholesale. I wonder how this error could have been introduced. Also, wow, that'...
10
lolphp
Deranged40
d03i04c
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>https://www.xkcd.com/221/ As always, a relevant xkcd<|eor|><|eols|><|endoftext|>
9
lolphp
the_alias_of_andrea
d054emp
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>This is why we have unit tests, kids. <|eor|><|sor|>Except that [they didn't](http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce...
9
lolphp
hey_aaapple
d05r1b9
<|sols|><|sot|>Oops, there's a typo in the Mersenne twister RNG code<|eot|><|sol|>http://git.php.net/?p=php-src.git;a=commitdiff;h=6f6bd8ce531636134efd5f669a4e8373fb2e9e51<|eol|><|sor|>Has it been wrong all these years, or just recently?<|eor|><|soopr|>That code was introduced in http://git.php.net/?p=php-src.git;a=com...
8