subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
DoYouEverJustInvert
j9olx4y
<|sols|><|sot|>Password_verify() always returns true with some hash<|eot|><|sol|>https://bugs.php.net/bug.php?id=81744<|eol|><|sor|>The comments on the bug report are even worse. Just because its documented doesnt make this behaviour any less insane. A standard library function whose job it is to accept correct passwor...
41
lolphp
quchen
j9oeifx
<|sols|><|sot|>Password_verify() always returns true with some hash<|eot|><|sol|>https://bugs.php.net/bug.php?id=81744<|eol|><|soopr|>In PHPs defense, they fixed this. In the links defense, the first answer states that this is documented behavior and therefore not a bug.<|eoopr|><|eols|><|endoftext|>
30
lolphp
elcapitanoooo
j9oibm5
<|sols|><|sot|>Password_verify() always returns true with some hash<|eot|><|sol|>https://bugs.php.net/bug.php?id=81744<|eol|><|soopr|>In PHPs defense, they fixed this. In the links defense, the first answer states that this is documented behavior and therefore not a bug.<|eoopr|><|sor|>A lesson i learned a long time ag...
21
lolphp
lego_not_legos
j9qoupe
<|sols|><|sot|>Password_verify() always returns true with some hash<|eot|><|sol|>https://bugs.php.net/bug.php?id=81744<|eol|><|sor|>If I'm reading this correctly, one would first need write privileges to whatever data store holds password hashes, and not via typical application code where a valid hash would be generate...
19
lolphp
snuggl
j9osi7d
<|sols|><|sot|>Password_verify() always returns true with some hash<|eot|><|sol|>https://bugs.php.net/bug.php?id=81744<|eol|><|soopr|>In PHPs defense, they fixed this. In the links defense, the first answer states that this is documented behavior and therefore not a bug.<|eoopr|><|sor|>A lesson i learned a long time ag...
18
lolphp
thenickdude
j9r2gcu
<|sols|><|sot|>Password_verify() always returns true with some hash<|eot|><|sol|>https://bugs.php.net/bug.php?id=81744<|eol|><|sor|>If I'm reading this correctly, one would first need write privileges to whatever data store holds password hashes, and not via typical application code where a valid hash would be generate...
16
lolphp
elcapitanoooo
j9p013z
<|sols|><|sot|>Password_verify() always returns true with some hash<|eot|><|sol|>https://bugs.php.net/bug.php?id=81744<|eol|><|soopr|>In PHPs defense, they fixed this. In the links defense, the first answer states that this is documented behavior and therefore not a bug.<|eoopr|><|sor|>A lesson i learned a long time ag...
13
lolphp
daperson1
j9tc45i
<|sols|><|sot|>Password_verify() always returns true with some hash<|eot|><|sol|>https://bugs.php.net/bug.php?id=81744<|eol|><|sor|>It's been 84 years since I've written contemporary PHP, so I don't know recommended error handling practices these days, butsurely this should throw an exception, or something like that?<|...
10
lolphp
vytah
249spg
<|sols|><|sot|>Casting arrays to booleans is O(n), because instead of simply checking array length directly, PHP copies the entire array first<|eot|><|sol|>https://bugs.php.net/bug.php?id=67124<|eol|><|eols|><|endoftext|>
54
lolphp
poizan42
ch502rd
<|sols|><|sot|>Casting arrays to booleans is O(n), because instead of simply checking array length directly, PHP copies the entire array first<|eot|><|sol|>https://bugs.php.net/bug.php?id=67124<|eol|><|sor|>The real WTF is this: > Casting non-empty array to boolean using (bool) takes a time with respect to array length...
25
lolphp
lisp-case
ch55tcf
<|sols|><|sot|>Casting arrays to booleans is O(n), because instead of simply checking array length directly, PHP copies the entire array first<|eot|><|sol|>https://bugs.php.net/bug.php?id=67124<|eol|><|sor|>The real WTF is this: > Casting non-empty array to boolean using (bool) takes a time with respect to array length...
16
lolphp
vytah
ch5k46e
<|sols|><|sot|>Casting arrays to booleans is O(n), because instead of simply checking array length directly, PHP copies the entire array first<|eot|><|sol|>https://bugs.php.net/bug.php?id=67124<|eol|><|sor|>not a problem in hhvm $ hhvm test.php empty 0.10 sec. total x10 0.10 sec. total x1...
16
lolphp
cythrawll
ch5i4w7
<|sols|><|sot|>Casting arrays to booleans is O(n), because instead of simply checking array length directly, PHP copies the entire array first<|eot|><|sol|>https://bugs.php.net/bug.php?id=67124<|eol|><|sor|>not a problem in hhvm $ hhvm test.php empty 0.10 sec. total x10 0.10 sec. total x1...
10
lolphp
milordi
ch8quao
<|sols|><|sot|>Casting arrays to booleans is O(n), because instead of simply checking array length directly, PHP copies the entire array first<|eot|><|sol|>https://bugs.php.net/bug.php?id=67124<|eol|><|sor|>Wow, no one from php.net team not pointed in comments that's "not a bug" or something? I'm shocked.<|eor|><|eols|...
8
lolphp
cbraga
ch5602s
<|sols|><|sot|>Casting arrays to booleans is O(n), because instead of simply checking array length directly, PHP copies the entire array first<|eot|><|sol|>https://bugs.php.net/bug.php?id=67124<|eol|><|sor|>The real WTF is this: > Casting non-empty array to boolean using (bool) takes a time with respect to array length...
8
lolphp
vytah
ch58v3u
<|sols|><|sot|>Casting arrays to booleans is O(n), because instead of simply checking array length directly, PHP copies the entire array first<|eot|><|sol|>https://bugs.php.net/bug.php?id=67124<|eol|><|sor|>Not to be "that guy" but...casting an array as a bool? Egads. If you mean count($array)>0 then put count($array)...
8
lolphp
suspiciously_calm
ch5bbsz
<|sols|><|sot|>Casting arrays to booleans is O(n), because instead of simply checking array length directly, PHP copies the entire array first<|eot|><|sol|>https://bugs.php.net/bug.php?id=67124<|eol|><|sor|>The real WTF is this: > Casting non-empty array to boolean using (bool) takes a time with respect to array length...
7
lolphp
vita10gy
ch59cu8
<|sols|><|sot|>Casting arrays to booleans is O(n), because instead of simply checking array length directly, PHP copies the entire array first<|eot|><|sol|>https://bugs.php.net/bug.php?id=67124<|eol|><|sor|>Not to be "that guy" but...casting an array as a bool? Egads. If you mean count($array)>0 then put count($array)...
5
lolphp
Serialk
1zb7kl
<|soss|><|sot|>PHP can cause bad things to happen.<|eot|><|sost|>Not really a lolphp, I think it will probably make you laugh though. https://pbs.twimg.com/media/Bhp5GTRCYAAYriy.png Translation: > 0:32 We're proceeding to the complete migration of servers [...] > 10:40 User data have been saved. > 16:21 Compilatio...
57
lolphp
maktouch
cfs8ljx
<|soss|><|sot|>PHP can cause bad things to happen.<|eot|><|sost|>Not really a lolphp, I think it will probably make you laugh though. https://pbs.twimg.com/media/Bhp5GTRCYAAYriy.png Translation: > 0:32 We're proceeding to the complete migration of servers [...] > 10:40 User data have been saved. > 16:21 Compilatio...
39
lolphp
i_zumba
cfscs3q
<|soss|><|sot|>PHP can cause bad things to happen.<|eot|><|sost|>Not really a lolphp, I think it will probably make you laugh though. https://pbs.twimg.com/media/Bhp5GTRCYAAYriy.png Translation: > 0:32 We're proceeding to the complete migration of servers [...] > 10:40 User data have been saved. > 16:21 Compilatio...
34
lolphp
Drainedsoul
cfsbg7p
<|soss|><|sot|>PHP can cause bad things to happen.<|eot|><|sost|>Not really a lolphp, I think it will probably make you laugh though. https://pbs.twimg.com/media/Bhp5GTRCYAAYriy.png Translation: > 0:32 We're proceeding to the complete migration of servers [...] > 10:40 User data have been saved. > 16:21 Compilatio...
22
lolphp
vexii
cfsijwo
<|soss|><|sot|>PHP can cause bad things to happen.<|eot|><|sost|>Not really a lolphp, I think it will probably make you laugh though. https://pbs.twimg.com/media/Bhp5GTRCYAAYriy.png Translation: > 0:32 We're proceeding to the complete migration of servers [...] > 10:40 User data have been saved. > 16:21 Compilatio...
21
lolphp
jsanc623
cfs5wrl
<|soss|><|sot|>PHP can cause bad things to happen.<|eot|><|sost|>Not really a lolphp, I think it will probably make you laugh though. https://pbs.twimg.com/media/Bhp5GTRCYAAYriy.png Translation: > 0:32 We're proceeding to the complete migration of servers [...] > 10:40 User data have been saved. > 16:21 Compilatio...
13
lolphp
you_drown_now
cft4run
<|soss|><|sot|>PHP can cause bad things to happen.<|eot|><|sost|>Not really a lolphp, I think it will probably make you laugh though. https://pbs.twimg.com/media/Bhp5GTRCYAAYriy.png Translation: > 0:32 We're proceeding to the complete migration of servers [...] > 10:40 User data have been saved. > 16:21 Compilatio...
8
lolphp
FenneDL
1r7iz6
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|eols|><|endoftext|>
58
lolphp
n1c0_ds
cdkh5v1
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>As much as it sucks, report it. This way it will be added to the feature list.<|eor|><|eols|><|endoftext|>
31
lolphp
ajmarks
cdkdrzq
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|eols|><|endoftext|>
21
lolphp
_vec_
cdkhhwi
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|sor|>[deleted]<|eor|><|sor|>This is why `&$var` is only slightly below `@func...
18
lolphp
catcradle5
cdktda9
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>[deleted]<|eor|><|sor|>I totally disagree with point 1. In very few languages would you expect a loop-variable to be bound after you exit the loop scope.<|eor|><|eols|><|endoftext|>
13
lolphp
h2ooooooo
cdkj1jg
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|sor|>[deleted]<|eor|><|sor|>This is why `&$var` is only slightly below `@func...
12
lolphp
billy_tables
cdki2gg
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|sor|>[deleted]<|eor|><|sor|>This is why `&$var` is only slightly below `@func...
10
lolphp
ma-int
cdke10g
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|sor|>Isn't this the hidden beauty of PHP? :-) <|eor|><|eols|><|endoftext|>
9
lolphp
_vec_
cdkjqb6
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|sor|>[deleted]<|eor|><|sor|>This is why `&$var` is only slightly below `@func...
9
lolphp
midir
cdkwafm
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>As much as it sucks, report it. This way it will be added to the feature list.<|eor|><|sor|>This is discovered and rediscovered by people regularly. It's been reported many times. The ...
8
lolphp
hylje
cdl4or2
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>[deleted]<|eor|><|sor|>> Don't reuse variable names unnecessarily you look at this and your reaction is ... what, exactly? That they'd be better off with foreach($items as &$ite...
8
lolphp
more_exercise
cdlz3pa
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|sor|>[deleted]<|eor|><|sor|>This is why `&$var` is only slightly below `@func...
7
lolphp
MrZander
cdl2xcd
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|sor|>[deleted]<|eor|><|sor|>This is why `&$var` is only slightly below `@func...
6
lolphp
jercos
cdnancr
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|sor|>[deleted]<|eor|><|sor|>This is why `&$var` is only slightly below `@func...
6
lolphp
rustyshaklferd
cdlysy6
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>[deleted]<|eor|><|sor|>This is why `&$var` is only slightly below `@func()` on the list of constructions that will singlehandedly cause me to reject a code review.<|eor|><|sor|>You can...
6
lolphp
_vec_
cdmqtyb
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|sor|>[deleted]<|eor|><|sor|>This is why `&$var` is only slightly below `@func...
5
lolphp
MrZander
cdkvfdc
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|sor|>[deleted]<|eor|><|sor|>This is why `&$var` is only slightly below `@func...
5
lolphp
gerrywastaken
cdl0q73
<|sols|><|sot|>What I found out debugging a piece of code that should have worked<|eot|><|sol|>http://codepad.org/fbAPhlTp<|eol|><|sor|>Can somebody please explain what's going on here? I am at a total loss for how that could happen.<|eor|><|sor|>[deleted]<|eor|><|sor|>This is why `&$var` is only slightly below `@func...
5
lolphp
koro666
1p2iu2
<|sols|><|sot|>PHP Manual Masterpieces<|eot|><|sol|>http://phpmanualmasterpieces.tumblr.com/<|eol|><|eols|><|endoftext|>
57
lolphp
infinull
ccy5itp
<|sols|><|sot|>PHP Manual Masterpieces<|eot|><|sol|>http://phpmanualmasterpieces.tumblr.com/<|eol|><|sor|>This is gold, I'm learning so many more reasons to hate PHP. I'd like to take a moment to quote my favorite parts: > Dear language designer, pick one: > * A language with a very casual typing system; > * A lan...
18
lolphp
infinull
ccy9vko
<|sols|><|sot|>PHP Manual Masterpieces<|eot|><|sol|>http://phpmanualmasterpieces.tumblr.com/<|eol|><|sor|>This is gold, I'm learning so many more reasons to hate PHP. I'd like to take a moment to quote my favorite parts: > Dear language designer, pick one: > * A language with a very casual typing system; > * A lan...
10
lolphp
infinull
ccyaht8
<|sols|><|sot|>PHP Manual Masterpieces<|eot|><|sol|>http://phpmanualmasterpieces.tumblr.com/<|eol|><|sor|>This is gold, I'm learning so many more reasons to hate PHP. I'd like to take a moment to quote my favorite parts: > Dear language designer, pick one: > * A language with a very casual typing system; > * A lan...
5
lolphp
stesch
5egi6u
<|sols|><|sot|>PHP can't parse CSV correctly. Bug open since 2011.<|eot|><|sol|>https://bugs.php.net/bug.php?id=55413<|eol|><|eols|><|endoftext|>
58
lolphp
Matt3k
dace9qj
<|sols|><|sot|>PHP can't parse CSV correctly. Bug open since 2011.<|eot|><|sol|>https://bugs.php.net/bug.php?id=55413<|eol|><|sor|>That looks like proper parsing of a CSV line to me. I realize CSV isn't exactly an ISO standard, but most parsers / writers would output such a string as: "A", "Some ""Stuff""", "C" I ha...
14
lolphp
armornick
daca24c
<|sols|><|sot|>PHP can't parse CSV correctly. Bug open since 2011.<|eot|><|sol|>https://bugs.php.net/bug.php?id=55413<|eol|><|sor|>You could possibly say that this works as intended since the bug description implies that escape characters should only be removed if the next character is the delimiter. Not intuitive, th...
12
lolphp
Banane9
danhy52
<|sols|><|sot|>PHP can't parse CSV correctly. Bug open since 2011.<|eot|><|sol|>https://bugs.php.net/bug.php?id=55413<|eol|><|sor|>BTW: Most programs don't output CSV correctly aswell. Microsoft Products use ";" as a field separator. Did they know what the fucking **C** in **C**VS stands for?<|eor|><|sor|>Well, C could...
7
lolphp
caffeinep0wered
dackit9
<|sols|><|sot|>PHP can't parse CSV correctly. Bug open since 2011.<|eot|><|sol|>https://bugs.php.net/bug.php?id=55413<|eol|><|sor|>So fix it. PHP is open source. Just look at all those useless complainers.<|eor|><|sor|>You're right, but you realise this is the PHP anti-circlejerk subreddit, right<|eor|><|eols|><|endoft...
7
lolphp
ZiggyTheHamster
dacnvi9
<|sols|><|sot|>PHP can't parse CSV correctly. Bug open since 2011.<|eot|><|sol|>https://bugs.php.net/bug.php?id=55413<|eol|><|sor|>That looks like proper parsing of a CSV line to me. I realize CSV isn't exactly an ISO standard, but most parsers / writers would output such a string as: "A", "Some ""Stuff""", "C" I ha...
6
lolphp
iftpadfs
dajj4ll
<|sols|><|sot|>PHP can't parse CSV correctly. Bug open since 2011.<|eot|><|sol|>https://bugs.php.net/bug.php?id=55413<|eol|><|sor|>BTW: Most programs don't output CSV correctly aswell. Microsoft Products use ";" as a field separator. Did they know what the fucking **C** in **C**VS stands for?<|eor|><|eols|><|endoftext|...
5
lolphp
the_alias_of_andrea
3xfhwr
<|sols|><|sot|>PHP :: Bug #70517 :: isset() on string produces invalid result<|eot|><|sol|>https://bugs.php.net/bug.php?id=70517<|eol|><|eols|><|endoftext|>
54
lolphp
DCoder1337
cy4e2p2
<|sols|><|sot|>PHP :: Bug #70517 :: isset() on string produces invalid result<|eot|><|sol|>https://bugs.php.net/bug.php?id=70517<|eol|><|sor|>It seems odd, too, that the comment says that PHP 5.5 is already relegated to security patches only. Didn't PHP 7 only come out a few weeks ago? Why have they *already* essential...
19
lolphp
theevildjinn
cy4pm1b
<|sols|><|sot|>PHP :: Bug #70517 :: isset() on string produces invalid result<|eot|><|sol|>https://bugs.php.net/bug.php?id=70517<|eol|><|sor|>It seems odd, too, that the comment says that PHP 5.5 is already relegated to security patches only. Didn't PHP 7 only come out a few weeks ago? Why have they *already* essential...
14
lolphp
myaut
cy4f2fw
<|sols|><|sot|>PHP :: Bug #70517 :: isset() on string produces invalid result<|eot|><|sol|>https://bugs.php.net/bug.php?id=70517<|eol|><|sor|>3v4l for code in bug: https://3v4l.org/7vYoX<|eor|><|eols|><|endoftext|>
10
lolphp
coredumperror
cy4puni
<|sols|><|sot|>PHP :: Bug #70517 :: isset() on string produces invalid result<|eot|><|sol|>https://bugs.php.net/bug.php?id=70517<|eol|><|sor|>It seems odd, too, that the comment says that PHP 5.5 is already relegated to security patches only. Didn't PHP 7 only come out a few weeks ago? Why have they *already* essential...
7
lolphp
the_alias_of_andrea
cy4wvp3
<|sols|><|sot|>PHP :: Bug #70517 :: isset() on string produces invalid result<|eot|><|sol|>https://bugs.php.net/bug.php?id=70517<|eol|><|sor|>It seems odd, too, that the comment says that PHP 5.5 is already relegated to security patches only. Didn't PHP 7 only come out a few weeks ago? Why have they *already* essential...
6
lolphp
silvinci
2anava
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|eols|><|endoftext|>
53
lolphp
gu3st12
ciwv1x7
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>It's a bit easier instead of pointing out a specific line in WP as a WTF moment, to simply point out all of WP. There's ssome obscene mess of if elses somewhere in...
27
lolphp
allthediamonds
ciwymqx
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>`/**` `* Bump up the request timeout for http requests` `*` `* @param int $val ` `* @return int` `*/` `public function bump_request_timeout( $val ) {` ...
19
lolphp
jb2386
ciww2vu
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>This is a lolwordpress not lolphp<|eor|><|eols|><|endoftext|>
18
lolphp
tdammers
ciwxaor
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>This is a lolwordpress not lolphp<|eor|><|sor|>Except that drupal, magento, mediawiki, and most any other popular PHP project I've seen so far is approximately equ...
11
lolphp
_vec_
cixe31i
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>It's a bit easier instead of pointing out a specific line in WP as a WTF moment, to simply point out all of WP. There's ssome obscene mess of if elses somewhere in...
10
lolphp
captainramen
cixn9ax
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>It's a bit easier instead of pointing out a specific line in WP as a WTF moment, to simply point out all of WP. There's ssome obscene mess of if elses somewhere in...
10
lolphp
_vec_
cix8azy
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>Worth noting that `$wpdb->queries` is a "log" variable. It stores a record of every query made during that request. This depresses me for a number of reasons 1....
9
lolphp
Viper007Bond
cixm7ks
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>`/**` `* Bump up the request timeout for http requests` `*` `* @param int $val ` `* @return int` `*/` `public function bump_request_timeout( $val ) {` ...
8
lolphp
wvenable
ciysa6i
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>`/**` `* Bump up the request timeout for http requests` `*` `* @param int $val ` `* @return int` `*/` `public function bump_request_timeout( $val ) {` ...
8
lolphp
nidarus
cixc2jr
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>`/**` `* Bump up the request timeout for http requests` `*` `* @param int $val ` `* @return int` `*/` `public function bump_request_timeout( $val ) {` ...
7
lolphp
allthediamonds
cizes3t
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>It's a bit easier instead of pointing out a specific line in WP as a WTF moment, to simply point out all of WP. There's ssome obscene mess of if elses somewhere in...
6
lolphp
svtguy88
cixcd6v
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>`/**` `* Bump up the request timeout for http requests` `*` `* @param int $val ` `* @return int` `*/` `public function bump_request_timeout( $val ) {` ...
6
lolphp
Viper007Bond
cixm4if
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>`/**` `* Bump up the request timeout for http requests` `*` `* @param int $val ` `* @return int` `*/` `public function bump_request_timeout( $val ) {` ...
6
lolphp
svtguy88
cixca3d
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>`/**` `* Bump up the request timeout for http requests` `*` `* @param int $val ` `* @return int` `*/` `public function bump_request_timeout( $val ) {` ...
6
lolphp
svtguy88
cixafuw
<|sols|><|sot|>stop_the_insanity()<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237<|eol|><|sor|>`/**` `* Bump up the request timeout for http requests` `*` `* @param int $val ` `* @return int` `*/` `public function bump_request_timeout( $val ) {` ...
5
lolphp
Greg_war
j28e6r
<|soss|><|sot|>Tutorial: replace the last item of an array<|eot|><|sost|> <?php $array = [1, 2, 3]; foreach ($array as &$var) {} foreach ([9] as $var) {} echo $array[2]; // 9<|eost|><|eoss|><|endoftext|>
57
lolphp
Greg_war
g73xv7w
<|soss|><|sot|>Tutorial: replace the last item of an array<|eot|><|sost|> <?php $array = [1, 2, 3]; foreach ($array as &$var) {} foreach ([9] as $var) {} echo $array[2]; // 9<|eost|><|sor|>This looks crazy, but actually makes some kind of sense if you know how PHP scopes variables. In the...
24
lolphp
djxfade
g73xf2j
<|soss|><|sot|>Tutorial: replace the last item of an array<|eot|><|sost|> <?php $array = [1, 2, 3]; foreach ($array as &$var) {} foreach ([9] as $var) {} echo $array[2]; // 9<|eost|><|sor|>This looks crazy, but actually makes some kind of sense if you know how PHP scopes variables. In the...
19
lolphp
comrade_donkey
g746nvy
<|soss|><|sot|>Tutorial: replace the last item of an array<|eot|><|sost|> <?php $array = [1, 2, 3]; foreach ($array as &$var) {} foreach ([9] as $var) {} echo $array[2]; // 9<|eost|><|sor|>A true lolphp. Holy shit.<|eor|><|eoss|><|endoftext|>
17
lolphp
Miserable_Fuck
g749o4j
<|soss|><|sot|>Tutorial: replace the last item of an array<|eot|><|sost|> <?php $array = [1, 2, 3]; foreach ($array as &$var) {} foreach ([9] as $var) {} echo $array[2]; // 9<|eost|><|sor|>This looks crazy, but actually makes some kind of sense if you know how PHP scopes variables. In the...
16
lolphp
elcapitanoooo
g7582ph
<|soss|><|sot|>Tutorial: replace the last item of an array<|eot|><|sost|> <?php $array = [1, 2, 3]; foreach ($array as &$var) {} foreach ([9] as $var) {} echo $array[2]; // 9<|eost|><|sor|>This looks crazy, but actually makes some kind of sense if you know how PHP scopes variables. In the...
6
lolphp
Greg_war
g75bnos
<|soss|><|sot|>Tutorial: replace the last item of an array<|eot|><|sost|> <?php $array = [1, 2, 3]; foreach ($array as &$var) {} foreach ([9] as $var) {} echo $array[2]; // 9<|eost|><|sor|>Broken by design. This is why so many leave PHP and never look back. As trends show PHP has been on a...
6
lolphp
Greg_war
g75bw7v
<|soss|><|sot|>Tutorial: replace the last item of an array<|eot|><|sost|> <?php $array = [1, 2, 3]; foreach ($array as &$var) {} foreach ([9] as $var) {} echo $array[2]; // 9<|eost|><|sor|>This looks crazy, but actually makes some kind of sense if you know how PHP scopes variables. In the...
5
lolphp
hashkitten
cssext
<|sols|><|sot|>PHP will silently convert dots and spaces in query keys to underscores, except if the key contains an unmatched left square bracket in which case it will only partially be converted<|eot|><|sol|>https://3v4l.org/aM984<|eol|><|eols|><|endoftext|>
52
lolphp
shaql
exh06ov
<|sols|><|sot|>PHP will silently convert dots and spaces in query keys to underscores, except if the key contains an unmatched left square bracket in which case it will only partially be converted<|eot|><|sol|>https://3v4l.org/aM984<|eol|><|sor|>Wat. I remember a similar thread, https://www.reddit.com/r/lolphp/comment...
15
lolphp
Altreus
exhinmm
<|sols|><|sot|>PHP will silently convert dots and spaces in query keys to underscores, except if the key contains an unmatched left square bracket in which case it will only partially be converted<|eot|><|sol|>https://3v4l.org/aM984<|eol|><|sor|>But the function returns an array. The reasoning behind the conversion doe...
12
lolphp
shitcanz
exhe0s7
<|sols|><|sot|>PHP will silently convert dots and spaces in query keys to underscores, except if the key contains an unmatched left square bracket in which case it will only partially be converted<|eot|><|sol|>https://3v4l.org/aM984<|eol|><|sor|>Wat. I remember a similar thread, https://www.reddit.com/r/lolphp/comment...
12
lolphp
Altreus
exhhkud
<|sols|><|sot|>PHP will silently convert dots and spaces in query keys to underscores, except if the key contains an unmatched left square bracket in which case it will only partially be converted<|eot|><|sol|>https://3v4l.org/aM984<|eol|><|sor|>The conversion happens because dots and spaces are not legal characters in...
7
lolphp
andsens
exhs59s
<|sols|><|sot|>PHP will silently convert dots and spaces in query keys to underscores, except if the key contains an unmatched left square bracket in which case it will only partially be converted<|eot|><|sol|>https://3v4l.org/aM984<|eol|><|sor|>The conversion happens because dots and spaces are not legal characters in...
7
lolphp
the_alias_of_andrea
exiw57q
<|sols|><|sot|>PHP will silently convert dots and spaces in query keys to underscores, except if the key contains an unmatched left square bracket in which case it will only partially be converted<|eot|><|sol|>https://3v4l.org/aM984<|eol|><|sor|>But the function returns an array. The reasoning behind the conversion doe...
6
lolphp
Altreus
exj147n
<|sols|><|sot|>PHP will silently convert dots and spaces in query keys to underscores, except if the key contains an unmatched left square bracket in which case it will only partially be converted<|eot|><|sol|>https://3v4l.org/aM984<|eol|><|sor|>But the function returns an array. The reasoning behind the conversion doe...
6
lolphp
Altreus
exk65mz
<|sols|><|sot|>PHP will silently convert dots and spaces in query keys to underscores, except if the key contains an unmatched left square bracket in which case it will only partially be converted<|eot|><|sol|>https://3v4l.org/aM984<|eol|><|sor|>The conversion happens because dots and spaces are not legal characters in...
6
lolphp
Sam152
exjsiku
<|sols|><|sot|>PHP will silently convert dots and spaces in query keys to underscores, except if the key contains an unmatched left square bracket in which case it will only partially be converted<|eot|><|sol|>https://3v4l.org/aM984<|eol|><|sor|>The conversion happens because dots and spaces are not legal characters in...
5
lolphp
FurriesRuinEverythin
71ymfo
<|sols|><|sot|>PHP's DateTime inconsistent behaviour regarding timezones fucked my day and I spent more time than I care to admit testing until I could consistently reproduce its behaviours.<|eot|><|sol|>https://www.dropbox.com/s/2ah1nomu1i3l5ac/how%20not%20to%20get%20bitten%20by%20fucking%20shitty%20php%20dates.pdf?dl...
56
lolphp
coredumperror
dnf7zyr
<|sols|><|sot|>PHP's DateTime inconsistent behaviour regarding timezones fucked my day and I spent more time than I care to admit testing until I could consistently reproduce its behaviours.<|eot|><|sol|>https://www.dropbox.com/s/2ah1nomu1i3l5ac/how%20not%20to%20get%20bitten%20by%20fucking%20shitty%20php%20dates.pdf?dl...
30
lolphp
FurriesRuinEverythin
dnedkla
<|sols|><|sot|>PHP's DateTime inconsistent behaviour regarding timezones fucked my day and I spent more time than I care to admit testing until I could consistently reproduce its behaviours.<|eot|><|sol|>https://www.dropbox.com/s/2ah1nomu1i3l5ac/how%20not%20to%20get%20bitten%20by%20fucking%20shitty%20php%20dates.pdf?dl...
18
lolphp
SuperDK974
dnejnim
<|sols|><|sot|>PHP's DateTime inconsistent behaviour regarding timezones fucked my day and I spent more time than I care to admit testing until I could consistently reproduce its behaviours.<|eot|><|sol|>https://www.dropbox.com/s/2ah1nomu1i3l5ac/how%20not%20to%20get%20bitten%20by%20fucking%20shitty%20php%20dates.pdf?dl...
15
lolphp
Various_Pickles
dnf5jgx
<|sols|><|sot|>PHP's DateTime inconsistent behaviour regarding timezones fucked my day and I spent more time than I care to admit testing until I could consistently reproduce its behaviours.<|eot|><|sol|>https://www.dropbox.com/s/2ah1nomu1i3l5ac/how%20not%20to%20get%20bitten%20by%20fucking%20shitty%20php%20dates.pdf?dl...
13
lolphp
coredumperror
dnf80l3
<|sols|><|sot|>PHP's DateTime inconsistent behaviour regarding timezones fucked my day and I spent more time than I care to admit testing until I could consistently reproduce its behaviours.<|eot|><|sol|>https://www.dropbox.com/s/2ah1nomu1i3l5ac/how%20not%20to%20get%20bitten%20by%20fucking%20shitty%20php%20dates.pdf?dl...
10