subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
crankybadger
d046o31
<|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|><|sor|>Xkcd is humour for eunuchs<|eor|><|sor|>It's funnier than you are.<|...
8
lolphp
midir
d04ycp7
<|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|>The fun never stops! https://www.reddit.com/r/lolphp/comments/46fxi8/typofixing_commit_in_mersenne_twister_rng_code_is_reverted/<|eor|>...
7
lolphp
the_alias_of_andrea
d04c79o
<|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'...
7
lolphp
Kronal
d04i614
<|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'...
7
lolphp
flying-sheep
d05viim
<|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...
5
lolphp
poizan42
23oe47
<|sols|><|sot|>This is not the array key you are looking for<|eot|><|sol|>http://codepad.org/0C0GivUF<|eol|><|eols|><|endoftext|>
86
lolphp
HelloAnnyong
cgz91q7
<|sols|><|sot|>This is not the array key you are looking for<|eot|><|sol|>http://codepad.org/0C0GivUF<|eol|><|soopr|>What is actually going on here ??!?!??! http://codepad.org/FNeda0KY<|eoopr|><|sor|>> What is actually going on here ??!?!??! PHP<|eor|><|sor|> array(1) { ["42"]=> string(3) "wat" } ...
27
lolphp
HelloAnnyong
cgz43ob
<|sols|><|sot|>This is not the array key you are looking for<|eot|><|sol|>http://codepad.org/0C0GivUF<|eol|><|sor|>This is *amazing*. I think this might actually be the best one on this subreddit. All the others can be explained in some way by understanding the underlying mechanics of type coercion, etc., etc. But th...
25
lolphp
jmcs
cgz0107
<|sols|><|sot|>This is not the array key you are looking for<|eot|><|sol|>http://codepad.org/0C0GivUF<|eol|><|soopr|>What is actually going on here ??!?!??! http://codepad.org/FNeda0KY<|eoopr|><|sor|>> What is actually going on here ??!?!??! PHP<|eor|><|eols|><|endoftext|>
24
lolphp
poizan42
cgyyr5m
<|sols|><|sot|>This is not the array key you are looking for<|eot|><|sol|>http://codepad.org/0C0GivUF<|eol|><|soopr|>What is actually going on here ??!?!??! http://codepad.org/FNeda0KY<|eoopr|><|eols|><|endoftext|>
19
lolphp
suspiciously_calm
cgz2i3n
<|sols|><|sot|>This is not the array key you are looking for<|eot|><|sol|>http://codepad.org/0C0GivUF<|eol|><|sor|>Now this is exactly the kind of assert I would put in a unit test for an array/map library.<|eor|><|eols|><|endoftext|>
18
lolphp
TheGreatFohl
cgz317a
<|sols|><|sot|>This is not the array key you are looking for<|eot|><|sol|>http://codepad.org/0C0GivUF<|eol|><|sor|>Please tell me that this is a bug and not "intended by design"<|eor|><|eols|><|endoftext|>
7
lolphp
steadweb
cgzrzc7
<|sols|><|sot|>This is not the array key you are looking for<|eot|><|sol|>http://codepad.org/0C0GivUF<|eol|><|sor|>"I have no idea what I'm doing." Stupid inconsistency. http://codepad.org/phKfL4qj.<|eor|><|eols|><|endoftext|>
7
lolphp
OneWingedShark
ch0g04e
<|sols|><|sot|>This is not the array key you are looking for<|eot|><|sol|>http://codepad.org/0C0GivUF<|eol|><|sor|>Now this is exactly the kind of assert I would put in a unit test for an array/map library.<|eor|><|sor|>The thing I take away from this is: ***don't write your libraries in PHP!***<|eor|><|eols|><|endofte...
6
lolphp
InconsiderateBastard
cgzb49p
<|sols|><|sot|>This is not the array key you are looking for<|eot|><|sol|>http://codepad.org/0C0GivUF<|eol|><|soopr|>What is actually going on here ??!?!??! http://codepad.org/FNeda0KY<|eoopr|><|sor|>It looks like when you cast the object to an array it just copies the public property names directly into an array, eve...
5
lolphp
barubary
d9kcm0
<|soss|><|sot|>PHP is whitespace insensitive, except when it isn't (round 2)<|eot|><|sost|>As [the PHP manual explains](https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing) about double-quoted strings: > If a dollar sign (`$`) is encountered, the parser will greedily take as many toke...
82
lolphp
fell_ratio
f1ienxo
<|soss|><|sot|>PHP is whitespace insensitive, except when it isn't (round 2)<|eot|><|sost|>As [the PHP manual explains](https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing) about double-quoted strings: > If a dollar sign (`$`) is encountered, the parser will greedily take as many toke...
31
lolphp
tdammers
f1iknd9
<|soss|><|sot|>PHP is whitespace insensitive, except when it isn't (round 2)<|eot|><|sost|>As [the PHP manual explains](https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing) about double-quoted strings: > If a dollar sign (`$`) is encountered, the parser will greedily take as many toke...
30
lolphp
maweki
f1j4fcn
<|soss|><|sot|>PHP is whitespace insensitive, except when it isn't (round 2)<|eot|><|sost|>As [the PHP manual explains](https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing) about double-quoted strings: > If a dollar sign (`$`) is encountered, the parser will greedily take as many toke...
22
lolphp
nikic
f1iiyml
<|soss|><|sot|>PHP is whitespace insensitive, except when it isn't (round 2)<|eot|><|sost|>As [the PHP manual explains](https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing) about double-quoted strings: > If a dollar sign (`$`) is encountered, the parser will greedily take as many toke...
11
lolphp
barubary
f1jd5t3
<|soss|><|sot|>PHP is whitespace insensitive, except when it isn't (round 2)<|eot|><|sost|>As [the PHP manual explains](https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing) about double-quoted strings: > If a dollar sign (`$`) is encountered, the parser will greedily take as many toke...
11
lolphp
Altreus
f1k0gso
<|soss|><|sot|>PHP is whitespace insensitive, except when it isn't (round 2)<|eot|><|sost|>As [the PHP manual explains](https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing) about double-quoted strings: > If a dollar sign (`$`) is encountered, the parser will greedily take as many toke...
10
lolphp
SirClueless
f1kj8u0
<|soss|><|sot|>PHP is whitespace insensitive, except when it isn't (round 2)<|eot|><|sost|>As [the PHP manual explains](https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing) about double-quoted strings: > If a dollar sign (`$`) is encountered, the parser will greedily take as many toke...
6
lolphp
dotancohen
f1jonpr
<|soss|><|sot|>PHP is whitespace insensitive, except when it isn't (round 2)<|eot|><|sost|>As [the PHP manual explains](https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing) about double-quoted strings: > If a dollar sign (`$`) is encountered, the parser will greedily take as many toke...
5
lolphp
SirClueless
f1kqj0g
<|soss|><|sot|>PHP is whitespace insensitive, except when it isn't (round 2)<|eot|><|sost|>As [the PHP manual explains](https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing) about double-quoted strings: > If a dollar sign (`$`) is encountered, the parser will greedily take as many toke...
5
lolphp
MMauro94
4zig9s
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|eols|><|endoftext|>
81
lolphp
edave64
d6w2mo5
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>This is the problem with the "just use ===" advice. There is no strict switch equivalent. There is no strict < or >. And forgetting the strict parameter on search functions is very easy.<|eor|><|eols|><|endoftext|>
51
lolphp
cythrawll
d6w8d9b
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>This is the problem with the "just use ===" advice. There is no strict switch equivalent. There is no strict < or >. And forgetting the strict parameter on search functions is very easy.<|eor|><|sor|>best way to do strict case swi...
26
lolphp
Schmittfried
d6w9kj5
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>This is the problem with the "just use ===" advice. There is no strict switch equivalent. There is no strict < or >. And forgetting the strict parameter on search functions is very easy.<|eor|><|sor|>Exactly. That's why I hate tho...
23
lolphp
Schmittfried
d6w97py
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>This is the problem with the "just use ===" advice. There is no strict switch equivalent. There is no strict < or >. And forgetting the strict parameter on search functions is very easy.<|eor|><|sor|>best way to do strict case swi...
17
lolphp
cfreak2399
d6w1ur9
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>Its a type conversion fail but I'm lost on this one. Unless everything passed to case gets converted to a string? But even then I thought PHP evaluated "0" as false?<|eor|><|eols|><|endoftext|>
16
lolphp
Almamu
d6w2eh9
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>Its a type conversion fail but I'm lost on this one. Unless everything passed to case gets converted to a string? But even then I thought PHP evaluated "0" as false?<|eor|><|sor|>Casting any string to int converts it to 0. $value ...
16
lolphp
cythrawll
d6wd3pj
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>This is the problem with the "just use ===" advice. There is no strict switch equivalent. There is no strict < or >. And forgetting the strict parameter on search functions is very easy.<|eor|><|sor|>best way to do strict case swi...
16
lolphp
madsohm
d6wcqoo
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>This is the problem with the "just use ===" advice. There is no strict switch equivalent. There is no strict < or >. And forgetting the strict parameter on search functions is very easy.<|eor|><|sor|>best way to do strict case swi...
12
lolphp
cythrawll
d6w50hy
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>Its a type conversion fail but I'm lost on this one. Unless everything passed to case gets converted to a string? But even then I thought PHP evaluated "0" as false?<|eor|><|sor|>Casting any string to int converts it to 0. $value ...
12
lolphp
mort96
d6woqd7
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>This is the problem with the "just use ===" advice. There is no strict switch equivalent. There is no strict < or >. And forgetting the strict parameter on search functions is very easy.<|eor|><|sor|>best way to do strict case swi...
9
lolphp
smog_alado
d6x5ryc
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>This is the problem with the "just use ===" advice. There is no strict switch equivalent. There is no strict < or >. And forgetting the strict parameter on search functions is very easy.<|eor|><|sor|>PHP isn't the only language wi...
8
lolphp
Schmittfried
d6wr3vn
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>This is the problem with the "just use ===" advice. There is no strict switch equivalent. There is no strict < or >. And forgetting the strict parameter on search functions is very easy.<|eor|><|sor|>Exactly. That's why I hate tho...
7
lolphp
cythrawll
d6wg8om
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>This is the problem with the "just use ===" advice. There is no strict switch equivalent. There is no strict < or >. And forgetting the strict parameter on search functions is very easy.<|eor|><|sor|>best way to do strict case swi...
6
lolphp
cythrawll
d6wf5s6
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>This is the problem with the "just use ===" advice. There is no strict switch equivalent. There is no strict < or >. And forgetting the strict parameter on search functions is very easy.<|eor|><|sor|>The problem with that advice i...
5
lolphp
cfreak2399
d6w7t0w
<|sols|><|sot|>PHP switches are the best<|eot|><|sol|>https://3v4l.org/6bJIX<|eol|><|sor|>Its a type conversion fail but I'm lost on this one. Unless everything passed to case gets converted to a string? But even then I thought PHP evaluated "0" as false?<|eor|><|sor|>Casting any string to int converts it to 0. $value ...
5
lolphp
vytah
23ze3g
<|sols|><|sot|>"last" means "last", "lAst" means "last", "Last" means "first"<|eot|><|sol|>http://codepad.viper-7.com/MclUwk<|eol|><|eols|><|endoftext|>
83
lolphp
jspenguin
ch2balr
<|sols|><|sot|>"last" means "last", "lAst" means "last", "Last" means "first"<|eot|><|sol|>http://codepad.viper-7.com/MclUwk<|eol|><|sor|>Is there any sane reasoning behind this?<|eor|><|sor|>https://github.com/php/php-src/blob/master/ext/date/lib/parse_date.c#L971 not really sane, but I found the code and the reason ...
26
lolphp
markrages
ch2pdr8
<|sols|><|sot|>"last" means "last", "lAst" means "last", "Last" means "first"<|eot|><|sol|>http://codepad.viper-7.com/MclUwk<|eol|><|sor|>Is there any sane reasoning behind this?<|eor|><|sor|>[Explained here](http://www.biblegateway.com/passage/?search=Matthew+20%3A16&version=KJV)<|eor|><|eols|><|endoftext|>
25
lolphp
vytah
ch267al
<|sols|><|sot|>"last" means "last", "lAst" means "last", "Last" means "first"<|eot|><|sol|>http://codepad.viper-7.com/MclUwk<|eol|><|sor|>This is dumb - aside from a Unix timestamp being converted to a normal Y-m-d styling or some other obscure/niche reason, why would you even think to put other characters inside of st...
21
lolphp
cythrawll
ch290ls
<|sols|><|sot|>"last" means "last", "lAst" means "last", "Last" means "first"<|eot|><|sol|>http://codepad.viper-7.com/MclUwk<|eol|><|sor|>Is there any sane reasoning behind this?<|eor|><|sor|>https://github.com/php/php-src/blob/master/ext/date/lib/parse_date.c#L971 not really sane, but I found the code and the reason ...
19
lolphp
dochoncho
chb7x3u
<|sols|><|sot|>"last" means "last", "lAst" means "last", "Last" means "first"<|eot|><|sol|>http://codepad.viper-7.com/MclUwk<|eol|><|sor|>Why does this method take such input anyway? What's the use case? Its like COBOL for date math... ADD TWO FORTNIGHTS TO THREE THURSDAYS FROM THE MONDAY BEFORE LAST<|eor|><|eol...
17
lolphp
Thalagyrt
ch29ujr
<|sols|><|sot|>"last" means "last", "lAst" means "last", "Last" means "first"<|eot|><|sol|>http://codepad.viper-7.com/MclUwk<|eol|><|sor|>Is there any sane reasoning behind this?<|eor|><|sor|>https://github.com/php/php-src/blob/master/ext/date/lib/parse_date.c#L971 not really sane, but I found the code and the reason ...
15
lolphp
Thalagyrt
ch2bcuj
<|sols|><|sot|>"last" means "last", "lAst" means "last", "Last" means "first"<|eot|><|sol|>http://codepad.viper-7.com/MclUwk<|eol|><|sor|>Is there any sane reasoning behind this?<|eor|><|sor|>https://github.com/php/php-src/blob/master/ext/date/lib/parse_date.c#L971 not really sane, but I found the code and the reason ...
9
lolphp
scshunt
ch2eg1w
<|sols|><|sot|>"last" means "last", "lAst" means "last", "Last" means "first"<|eot|><|sol|>http://codepad.viper-7.com/MclUwk<|eol|><|sor|>Is there any sane reasoning behind this?<|eor|><|sor|>https://github.com/php/php-src/blob/master/ext/date/lib/parse_date.c#L971 not really sane, but I found the code and the reason ...
7
lolphp
captainramen
ch2a9e3
<|sols|><|sot|>"last" means "last", "lAst" means "last", "Last" means "first"<|eot|><|sol|>http://codepad.viper-7.com/MclUwk<|eol|><|sor|>This is dumb - aside from a Unix timestamp being converted to a normal Y-m-d styling or some other obscure/niche reason, why would you even think to put other characters inside of st...
5
lolphp
cparen
ch2nmd3
<|sols|><|sot|>"last" means "last", "lAst" means "last", "Last" means "first"<|eot|><|sol|>http://codepad.viper-7.com/MclUwk<|eol|><|sor|>Is there any sane reasoning behind this?<|eor|><|sor|>https://github.com/php/php-src/blob/master/ext/date/lib/parse_date.c#L971 not really sane, but I found the code and the reason ...
5
lolphp
__Tabs
5q2at9
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|eols|><|endoftext|>
79
lolphp
Porges
dcwjiy2
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>[they do](https://3v4l.org/jR47r)<|eor|><|soopr|>What kind of sorcery is this? Do you have to put it in a variable to access them?<|eoopr|><|sor|>Nope, [it's even weirder than that](http...
46
lolphp
andsens
dcwdym8
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>[they do](https://3v4l.org/jR47r)<|eor|><|soopr|>What kind of sorcery is this? Do you have to put it in a variable to access them?<|eoopr|><|sor|>Nope, [it's even weirder than that](http...
37
lolphp
sfan5
dcvr066
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>[they do](https://3v4l.org/jR47r)<|eor|><|eols|><|endoftext|>
35
lolphp
jesseschalken
dcvrxcf
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>[they do](https://3v4l.org/jR47r)<|eor|><|sor|>wait, [what the hell?](https://3v4l.org/uimNk)<|eor|><|eols|><|endoftext|>
32
lolphp
__Tabs
dcvrkgf
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>[they do](https://3v4l.org/jR47r)<|eor|><|soopr|>What kind of sorcery is this? Do you have to put it in a variable to access them?<|eoopr|><|eols|><|endoftext|>
22
lolphp
eMZi0767
dcvsgwv
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>[they do](https://3v4l.org/jR47r)<|eor|><|sor|>wait, [what the hell?](https://3v4l.org/uimNk)<|eor|><|sor|>Consistency<|eor|><|eols|><|endoftext|>
20
lolphp
jesseschalken
dcw6r5b
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>[they do](https://3v4l.org/jR47r)<|eor|><|soopr|>What kind of sorcery is this? Do you have to put it in a variable to access them?<|eoopr|><|sor|>My guess would be yes, php's parser suck...
15
lolphp
SnowdogU77
dcwmlcz
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>[they do](https://3v4l.org/jR47r)<|eor|><|soopr|>What kind of sorcery is this? Do you have to put it in a variable to access them?<|eoopr|><|sor|>Nope, [it's even weirder than that](http...
15
lolphp
BilgeXA
dcwnhb1
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>Finally, a real fresh lolphp. This sub has been drying up.<|eor|><|eols|><|endoftext|>
13
lolphp
emilvikstrom
dcwlbrj
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>If you take a look at __debuginfo() you will see that var_dump() prints all Public, Protected and Private properties (if not tasked to do otherwise). The properties you try to access...
12
lolphp
cjwelborn
dcvx1d5
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>[they do](https://3v4l.org/jR47r)<|eor|><|soopr|>What kind of sorcery is this? Do you have to put it in a variable to access them?<|eoopr|><|sor|>My guess would be yes, php's parser suck...
11
lolphp
ezylot
dcw6vfu
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>If you take a look at __debuginfo() you will see that var_dump() prints all Public, Protected and Private properties (if not tasked to do otherwise). The properties you try to access...
10
lolphp
lordmauve
dcxcdde
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>[they do](https://3v4l.org/jR47r)<|eor|><|soopr|>What kind of sorcery is this? Do you have to put it in a variable to access them?<|eoopr|><|sor|>My guess would be yes, php's parser suck...
9
lolphp
ebvalaim
dcvzcwt
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>[they do](https://3v4l.org/jR47r)<|eor|><|soopr|>What kind of sorcery is this? Do you have to put it in a variable to access them?<|eoopr|><|sor|>My guess would be yes, php's parser suck...
8
lolphp
sfan5
dcwlg7g
<|sols|><|sot|>The DateTime object is dumped with 3 properties that don't even exist<|eot|><|sol|>https://3v4l.org/VhjMZ<|eol|><|sor|>If you take a look at __debuginfo() you will see that var_dump() prints all Public, Protected and Private properties (if not tasked to do otherwise). The properties you try to access...
6
lolphp
the_alias_of_andrea
5bo7tx
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|eols|><|endoftext|>
81
lolphp
OmnipotentEntity
d9qy5iw
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|sor|>For those asking "what's the alternative?": Constants. You won't make any calculations with this value (it is not like 2 instances of protocol vers...
28
lolphp
EmperorArthur
d9qc0zu
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|sor|>> protocol_version float Maybe it does rounding. Try seeing if 1.1001 works.<|eor|><|eols|><|endoftext|>
23
lolphp
merreborn
d9qellk
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|sor|>Is this an actual value you're reading or are you just making a crack at floating point numbers?<|eor|><|sor|>I think it's just a joke, although it ...
23
lolphp
bestform
d9qu5i3
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|sor|>For those asking "what's the alternative?": Constants. You won't make any calculations with this value (it is not like 2 instances of protocol vers...
19
lolphp
the_alias_of_andrea
d9qgi38
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|sor|>Is this an actual value you're reading or are you just making a crack at floating point numbers?<|eor|><|soopr|>> Is this an actual value you're rea...
16
lolphp
ElusiveGuy
d9r5t3a
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|sor|>For those asking "what's the alternative?": Constants. You won't make any calculations with this value (it is not like 2 instances of protocol vers...
14
lolphp
kr094
d9qdnmn
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|sor|>Is this an actual value you're reading or are you just making a crack at floating point numbers?<|eor|><|eols|><|endoftext|>
12
lolphp
the_alias_of_andrea
d9qy9nm
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|sor|>For those asking "what's the alternative?": Constants. You won't make any calculations with this value (it is not like 2 instances of protocol vers...
11
lolphp
the_alias_of_andrea
d9qya3i
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|sor|>For those asking "what's the alternative?": Constants. You won't make any calculations with this value (it is not like 2 instances of protocol vers...
11
lolphp
josefx
d9r69wc
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|sor|>Is this an actual value you're reading or are you just making a crack at floating point numbers?<|eor|><|sor|>I think it's just a joke, although it ...
7
lolphp
NXTangl
dcds0c7
<|sols|><|sot|>HTTP/1.100000000000000088817841970012523233890533447265625<|eot|><|sol|>http://php.net/manual/en/context.http.php#context.http.protocol-version<|eol|><|sor|>For those asking "what's the alternative?": Constants. You won't make any calculations with this value (it is not like 2 instances of protocol vers...
6
lolphp
TortoiseWrath
217e5t
<|sols|><|sot|>$functions["internal"][2019]: No, PHP! You were doing so well!<|eot|><|sol|>http://tortoisewrath.com/wat.htm<|eol|><|eols|><|endoftext|>
82
lolphp
jb2386
cgaha8v
<|sols|><|sot|>$functions["internal"][2019]: No, PHP! You were doing so well!<|eot|><|sol|>http://tortoisewrath.com/wat.htm<|eol|><|sor|>OH man, I hate it when I forget the order of the arguments for luvb(q/h& jy$e\^gl() I mean, is it: luvb(q/h& jy$e^gl($haystack, $needle, $forceExpectedBehaviour=false) O...
43
lolphp
ealf
cgafqc6
<|sols|><|sot|>$functions["internal"][2019]: No, PHP! You were doing so well!<|eot|><|sol|>http://tortoisewrath.com/wat.htm<|eol|><|sor|>What exactly is going on here? is this due to the way PHP stores function names?<|eor|><|sor|>I think we know enough about how these people think to reconstruct what happened. Facts: ...
36
lolphp
Varriount
cgadi66
<|sols|><|sot|>$functions["internal"][2019]: No, PHP! You were doing so well!<|eot|><|sol|>http://tortoisewrath.com/wat.htm<|eol|><|sor|>What exactly is going on here? is this due to the way PHP stores function names?<|eor|><|eols|><|endoftext|>
21
lolphp
pdewacht
cgamglp
<|sols|><|sot|>$functions["internal"][2019]: No, PHP! You were doing so well!<|eot|><|sol|>http://tortoisewrath.com/wat.htm<|eol|><|sor|>What exactly is going on here? is this due to the way PHP stores function names?<|eor|><|sor|>I think we know enough about how these people think to reconstruct what happened. Facts: ...
21
lolphp
duskwuff
cgalq50
<|sols|><|sot|>$functions["internal"][2019]: No, PHP! You were doing so well!<|eot|><|sol|>http://tortoisewrath.com/wat.htm<|eol|><|sor|>The ridiculous-looking function names are related to Zend Optimizer (a loader for encrypted PHP files). They aren't present in stock PHP.<|eor|><|eols|><|endoftext|>
20
lolphp
ajmarks
cgaho61
<|sols|><|sot|>$functions["internal"][2019]: No, PHP! You were doing so well!<|eot|><|sol|>http://tortoisewrath.com/wat.htm<|eol|><|sor|>OH man, I hate it when I forget the order of the arguments for luvb(q/h& jy$e\^gl() I mean, is it: luvb(q/h& jy$e^gl($haystack, $needle, $forceExpectedBehaviour=false) O...
17
lolphp
Fiech
cgb1x2i
<|sols|><|sot|>$functions["internal"][2019]: No, PHP! You were doing so well!<|eot|><|sol|>http://tortoisewrath.com/wat.htm<|eol|><|sor|>My favorites: * 2723: `*` * 3361: `no` * 3583: `^z` * 3334: Somehow turned into HTML... <|eor|><|sor|>2396: gu h? <|eor|><|eols|><|endoftext|>
8
lolphp
Various_Pickles
cgatqag
<|sols|><|sot|>$functions["internal"][2019]: No, PHP! You were doing so well!<|eot|><|sol|>http://tortoisewrath.com/wat.htm<|eol|><|sor|>I bet the last private key you passed to those OpenSSL functions is somewhere in there.<|eor|><|eols|><|endoftext|>
7
lolphp
kangaroowarcry
cgais1a
<|sols|><|sot|>$functions["internal"][2019]: No, PHP! You were doing so well!<|eot|><|sol|>http://tortoisewrath.com/wat.htm<|eol|><|sor|>2642? {[?<|eor|><|sor|>2396 guh?<|eor|><|eols|><|endoftext|>
7
lolphp
Sarcastinator
1zmsyo
<|soss|><|sot|>PHP Dereferencing<|eot|><|sost|>In PHP 5.4 this would break: echo array(1, 2, 3)[0] With the message Parse error: syntax error, unexpected '[', expecting ',' or ';' in [...][...] on line 1 Luckily, they added "dereferencing" in PHP 5.5 which would solve it! Hurray! And sure enough, it works!...
78
lolphp
aftli
cfv541e
<|soss|><|sot|>PHP Dereferencing<|eot|><|sost|>In PHP 5.4 this would break: echo array(1, 2, 3)[0] With the message Parse error: syntax error, unexpected '[', expecting ',' or ';' in [...][...] on line 1 Luckily, they added "dereferencing" in PHP 5.5 which would solve it! Hurray! And sure enough, it works!...
48
lolphp
EvilTerran
cfv6bpp
<|soss|><|sot|>PHP Dereferencing<|eot|><|sost|>In PHP 5.4 this would break: echo array(1, 2, 3)[0] With the message Parse error: syntax error, unexpected '[', expecting ',' or ';' in [...][...] on line 1 Luckily, they added "dereferencing" in PHP 5.5 which would solve it! Hurray! And sure enough, it works!...
35
lolphp
EvilTerran
cfvqavm
<|soss|><|sot|>PHP Dereferencing<|eot|><|sost|>In PHP 5.4 this would break: echo array(1, 2, 3)[0] With the message Parse error: syntax error, unexpected '[', expecting ',' or ';' in [...][...] on line 1 Luckily, they added "dereferencing" in PHP 5.5 which would solve it! Hurray! And sure enough, it works!...
19
lolphp
nikic
cfvg3nk
<|soss|><|sot|>PHP Dereferencing<|eot|><|sost|>In PHP 5.4 this would break: echo array(1, 2, 3)[0] With the message Parse error: syntax error, unexpected '[', expecting ',' or ';' in [...][...] on line 1 Luckily, they added "dereferencing" in PHP 5.5 which would solve it! Hurray! And sure enough, it works!...
18
lolphp
poizan42
cfv7hjk
<|soss|><|sot|>PHP Dereferencing<|eot|><|sost|>In PHP 5.4 this would break: echo array(1, 2, 3)[0] With the message Parse error: syntax error, unexpected '[', expecting ',' or ';' in [...][...] on line 1 Luckily, they added "dereferencing" in PHP 5.5 which would solve it! Hurray! And sure enough, it works!...
17
lolphp
lisp-case
cfvhqtg
<|soss|><|sot|>PHP Dereferencing<|eot|><|sost|>In PHP 5.4 this would break: echo array(1, 2, 3)[0] With the message Parse error: syntax error, unexpected '[', expecting ',' or ';' in [...][...] on line 1 Luckily, they added "dereferencing" in PHP 5.5 which would solve it! Hurray! And sure enough, it works!...
15
lolphp
Sarcastinator
cfvk2dv
<|soss|><|sot|>PHP Dereferencing<|eot|><|sost|>In PHP 5.4 this would break: echo array(1, 2, 3)[0] With the message Parse error: syntax error, unexpected '[', expecting ',' or ';' in [...][...] on line 1 Luckily, they added "dereferencing" in PHP 5.5 which would solve it! Hurray! And sure enough, it works!...
12
lolphp
nikic
cfvryss
<|soss|><|sot|>PHP Dereferencing<|eot|><|sost|>In PHP 5.4 this would break: echo array(1, 2, 3)[0] With the message Parse error: syntax error, unexpected '[', expecting ',' or ';' in [...][...] on line 1 Luckily, they added "dereferencing" in PHP 5.5 which would solve it! Hurray! And sure enough, it works!...
11
lolphp
ajmarks
cfv15dt
<|soss|><|sot|>PHP Dereferencing<|eot|><|sost|>In PHP 5.4 this would break: echo array(1, 2, 3)[0] With the message Parse error: syntax error, unexpected '[', expecting ',' or ';' in [...][...] on line 1 Luckily, they added "dereferencing" in PHP 5.5 which would solve it! Hurray! And sure enough, it works!...
10