subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
CaptainsLincolnLog
cpxraj8
<|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Look, I don't like PHP. If it was a choice between getting fired and doing full-time PHP development, I'd p...
8
lolphp
smog_alado
cprymoh
<|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>Wait, I have to declare what variables my function closes over? Shouldn't the PHP compiler be able to....oh...
8
lolphp
HiddenKrypt
cprt19q
<|sols|><|sot|>Why would someone who knows how to use closures, generators, etc. bother with PHP?<|eot|><|sol|>http://www.ibm.com/developerworks/opensource/library/wa-php-renewed_1/index.html?ca=drs-<|eol|><|sor|>> Anonymous functions reign supreme in JavaScript, and PHP programmers who don't also know JavaScript are r...
8
lolphp
porkslow
2lyif9
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|eols|><|endoftext|>
29
lolphp
InconsiderateBastard
clzjh45
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Seriously, is there a legit use case for == and != instead of their type safe versions? I rarely use weakly typed languages and I never really understood the point of it all. Why would I ...
21
lolphp
DoctorWaluigiTime
clzc2qf
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Personally, I'm in favor of silently modifying `==` and `!=` to behave exactly like `===` and `!==` respectively. That or just removing them from the language altogether, so people can fi...
20
lolphp
willglynn
cm054y1
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Seriously, is there a legit use case for == and != instead of their type safe versions? I rarely use weakly typed languages and I never really understood the point of it all. Why would I ...
12
lolphp
jadkik94
clztsti
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Personally, I'm in favor of silently modifying `==` and `!=` to behave exactly like `===` and `!==` respectively. That or just removing them from the language altogether, so people can fi...
10
lolphp
recaph
clzn7m6
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Seriously, is there a legit use case for == and != instead of their type safe versions? I rarely use weakly typed languages and I never really understood the point of it all. Why would I ...
10
lolphp
Regimardyl
clzh1tr
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Personally, I'm in favor of silently modifying `==` and `!=` to behave exactly like `===` and `!==` respectively. That or just removing them from the language altogether, so people can fi...
9
lolphp
tdammers
clzoj7i
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Seriously, is there a legit use case for == and != instead of their type safe versions? I rarely use weakly typed languages and I never really understood the point of it all. Why would I ...
9
lolphp
suspiciously_calm
clzyzk8
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Personally, I'm in favor of silently modifying `==` and `!=` to behave exactly like `===` and `!==` respectively. That or just removing them from the language altogether, so people can fi...
8
lolphp
implicit_cast
clzorwl
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Personally, I'm in favor of silently modifying `==` and `!=` to behave exactly like `===` and `!==` respectively. That or just removing them from the language altogether, so people can fi...
7
lolphp
captainramen
clzizo5
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Seriously, is there a legit use case for == and != instead of their type safe versions? I rarely use weakly typed languages and I never really understood the point of it all. Why would I ...
7
lolphp
vytah
cm07olc
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Personally, I'm in favor of silently modifying `==` and `!=` to behave exactly like `===` and `!==` respectively. That or just removing them from the language altogether, so people can fi...
7
lolphp
Dworgi
cm07z25
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Seriously, is there a legit use case for == and != instead of their type safe versions? I rarely use weakly typed languages and I never really understood the point of it all. Why would I ...
7
lolphp
_vec_
cm0o2ie
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Seriously, is there a legit use case for == and != instead of their type safe versions? I rarely use weakly typed languages and I never really understood the point of it all. Why would I ...
6
lolphp
willglynn
cm0nga6
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>Seriously, is there a legit use case for == and != instead of their type safe versions? I rarely use weakly typed languages and I never really understood the point of it all. Why would I ...
6
lolphp
Dworgi
cm08dvl
<|sols|><|sot|>PHP loose comparison strikes again<|eot|><|sol|>http://blog.laravel.com/csrf-vulnerability-in-laravel-4/<|eol|><|sor|>For == no but for != I would say yes. Sometimes you just want to do if (!something) and you really don't care if it's null, undefined, false, etc.<|eor|><|sor|>To quote the brillia...
6
lolphp
pegasus_527
284vid
<|sols|><|sot|>filter_var($address, FILTER_VALIDATE_EMAIL) does not validate email addresses correctly<|eot|><|sol|>http://php.net/manual/en/function.filter-var.php#112492<|eol|><|eols|><|endoftext|>
33
lolphp
xiongchiamiov
ci7ezl2
<|sols|><|sot|>filter_var($address, FILTER_VALIDATE_EMAIL) does not validate email addresses correctly<|eot|><|sol|>http://php.net/manual/en/function.filter-var.php#112492<|eol|><|sor|>[isemail]( https://code.google.com/p/isemail/ ) is the only library I'm aware of that handles all the crazy things no one uses. I would...
22
lolphp
phoshi
ci7jgxt
<|sols|><|sot|>filter_var($address, FILTER_VALIDATE_EMAIL) does not validate email addresses correctly<|eot|><|sol|>http://php.net/manual/en/function.filter-var.php#112492<|eol|><|sor|>Is this really lol? I'd assume they chose to implement the path of least resistance and for the majority use cases. Anyone who uses fil...
13
lolphp
xiongchiamiov
ci7j53f
<|sols|><|sot|>filter_var($address, FILTER_VALIDATE_EMAIL) does not validate email addresses correctly<|eot|><|sol|>http://php.net/manual/en/function.filter-var.php#112492<|eol|><|sor|>[isemail]( https://code.google.com/p/isemail/ ) is the only library I'm aware of that handles all the crazy things no one uses. I would...
11
lolphp
gearvOsh
ci7hyvm
<|sols|><|sot|>filter_var($address, FILTER_VALIDATE_EMAIL) does not validate email addresses correctly<|eot|><|sol|>http://php.net/manual/en/function.filter-var.php#112492<|eol|><|sor|>Is this really lol? I'd assume they chose to implement the path of least resistance and for the majority use cases. Anyone who uses fil...
8
lolphp
raylu
ci7p8dc
<|sols|><|sot|>filter_var($address, FILTER_VALIDATE_EMAIL) does not validate email addresses correctly<|eot|><|sol|>http://php.net/manual/en/function.filter-var.php#112492<|eol|><|sor|>Is this really lol? I'd assume they chose to implement the path of least resistance and for the majority use cases. Anyone who uses fil...
8
lolphp
captainramen
ci80bly
<|sols|><|sot|>filter_var($address, FILTER_VALIDATE_EMAIL) does not validate email addresses correctly<|eot|><|sol|>http://php.net/manual/en/function.filter-var.php#112492<|eol|><|sor|>Is this really lol? I'd assume they chose to implement the path of least resistance and for the majority use cases. Anyone who uses fil...
6
lolphp
phoshi
ci7mkgo
<|sols|><|sot|>filter_var($address, FILTER_VALIDATE_EMAIL) does not validate email addresses correctly<|eot|><|sol|>http://php.net/manual/en/function.filter-var.php#112492<|eol|><|sor|>Is this really lol? I'd assume they chose to implement the path of least resistance and for the majority use cases. Anyone who uses fil...
5
lolphp
GranPC
26bk6m
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|eols|><|endoftext|>
30
lolphp
duskwuff
chpmbvd
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>Blame gd for this one. Not PHP's fault the library they're providing bindings to is crazy.<|eor|><|eols|><|endof...
22
lolphp
RecursionIsRecursion
chpl9hk
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>$im,$i,$i,$i... He was just trying to spell Mississippi.<|eor|><|eols|><|endoftext|>
18
lolphp
Darkimmortal
chpl5u9
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>So that's 7-bits for the alpha channel. Is this because all ints in php are signed? But that still doesn't expl...
14
lolphp
sloat
chpik8b
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>So that's 7-bits for the alpha channel. Is this because all ints in php are signed? But that still doesn't expl...
13
lolphp
barubary
chq0qmh
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>> imagecolorallocatealpha dat function name<|eor|><|sor|>"Fortunately" PHP is case insensitive half the time, s...
8
lolphp
Serialk
chq15hi
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>> imagecolorallocatealpha dat function name<|eor|><|sor|>"Fortunately" PHP is case insensitive half the time, s...
8
lolphp
barubary
chqls93
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>> imagecolorallocatealpha dat function name<|eor|><|sor|>"Fortunately" PHP is case insensitive half the time, s...
8
lolphp
Slippery_John
chpy6ek
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>> imagecolorallocatealpha dat function name<|eor|><|eols|><|endoftext|>
7
lolphp
duskwuff
chq25x9
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>Blame gd for this one. Not PHP's fault the library they're providing bindings to is crazy.<|eor|><|sor|>You coul...
7
lolphp
duskwuff
chq5htk
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>Blame gd for this one. Not PHP's fault the library they're providing bindings to is crazy.<|eor|><|sor|>You coul...
7
lolphp
CrypticOctagon
chpqocq
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>This is actually not half as annoying as GD's inability to transform transparent images.<|eor|><|eols|><|endofte...
6
lolphp
Serialk
chq1f3s
<|sols|><|sot|>A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent.<|eot|><|sol|>http://www.php.net/manual/en/function.imagecolorallocatealpha.php<|eol|><|sor|>Blame gd for this one. Not PHP's fault the library they're providing bindings to is crazy.<|eor|><|sor|>You coul...
6
lolphp
deadstone
1qos6m
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
28
lolphp
catcradle5
cdf7lr4
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
88
lolphp
ironhand
cdexbnd
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
34
lolphp
deadstone
cdf26zd
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
29
lolphp
deadstone
cdfl81q
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
14
lolphp
alx5000
cdex3mj
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
13
lolphp
h2ooooooo
cdexm70
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
11
lolphp
seiyria
cdfb0j8
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
8
lolphp
suspiciously_calm
cdf9e0w
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
7
lolphp
seiyria
cdffcpf
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
7
lolphp
suspiciously_calm
cdf9clo
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
6
lolphp
RoadieRich
cdm57sa
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
6
lolphp
catcradle5
cdfwqa5
<|soss|><|sot|>[meta] Why does this subreddit have the css display: none; on usernames and dates?<|eot|><|sost|>It's really strange and I can't figure out why you'd do such a thing. It just obfuscates things, you can still just disable custom subreddit css or look at the html to get usernames. All it does is make it a...
5
lolphp
kingguru
136k7j
<|sols|><|sot|>php_uname returns a description of the OS PHP is running on or the OS PHP was built on.<|eot|><|sol|>http://php.net/manual/en/function.php-uname.php<|eol|><|eols|><|endoftext|>
33
lolphp
DevestatingAttack
c71cyd6
<|sols|><|sot|>php_uname returns a description of the OS PHP is running on or the OS PHP was built on.<|eot|><|sol|>http://php.net/manual/en/function.php-uname.php<|eol|><|sor|>God fucking dammit why. Why is the acceptable behavior to just deliver an unexpected and WRONG answer instead of straight up failing and saying...
38
lolphp
kingguru
c718qq3
<|sols|><|sot|>php_uname returns a description of the OS PHP is running on or the OS PHP was built on.<|eot|><|sol|>http://php.net/manual/en/function.php-uname.php<|eol|><|sor|>Nothing new, but still amazing.<|eor|><|soopr|>I realize it's not new, just didn't see it posted to /r/lolphp before. The reason I found out a...
8
lolphp
kingguru
c71r1u8
<|sols|><|sot|>php_uname returns a description of the OS PHP is running on or the OS PHP was built on.<|eot|><|sol|>http://php.net/manual/en/function.php-uname.php<|eol|><|sor|>> This will only happen if your uname() library call either doesn't exist or doesn't work. I'm curious which distros this would happen on. Ar...
7
lolphp
kingguru
c71pob6
<|sols|><|sot|>php_uname returns a description of the OS PHP is running on or the OS PHP was built on.<|eot|><|sol|>http://php.net/manual/en/function.php-uname.php<|eol|><|sor|>God fucking dammit why. Why is the acceptable behavior to just deliver an unexpected and WRONG answer instead of straight up failing and saying...
6
lolphp
ThisIsADogHello
c71nv1m
<|sols|><|sot|>php_uname returns a description of the OS PHP is running on or the OS PHP was built on.<|eot|><|sol|>http://php.net/manual/en/function.php-uname.php<|eol|><|sor|>> This will only happen if your uname() library call either doesn't exist or doesn't work. I'm curious which distros this would happen on. Ar...
6
lolphp
rafaelschp
c718osq
<|sols|><|sot|>php_uname returns a description of the OS PHP is running on or the OS PHP was built on.<|eot|><|sol|>http://php.net/manual/en/function.php-uname.php<|eol|><|sor|>Serious question, why would you want to know what OS your copy of PHP was compiled on?<|eor|><|sor|>Maybe to test for specific bugs in that pla...
5
lolphp
kingguru
c71c7y8
<|sols|><|sot|>php_uname returns a description of the OS PHP is running on or the OS PHP was built on.<|eot|><|sol|>http://php.net/manual/en/function.php-uname.php<|eol|><|sor|>> This will only happen if your uname() library call either doesn't exist or doesn't work. I'm curious which distros this would happen on. Ar...
5
lolphp
kingguru
11niu5
<|sols|><|sot|>PHP Annotations Are a Horrible Idea<|eot|><|sol|>http://theunraveler.com/blog/2012/php-annotations-are-a-horrible-idea/<|eol|><|eols|><|endoftext|>
29
lolphp
vytah
c6o6hcp
<|sols|><|sot|>PHP Annotations Are a Horrible Idea<|eot|><|sol|>http://theunraveler.com/blog/2012/php-annotations-are-a-horrible-idea/<|eol|><|sor|>PHP: stealing mediocre ideas from Java and making them worse since 2004. <|eor|><|eols|><|endoftext|>
19
lolphp
Andryu67
c6o5vjv
<|sols|><|sot|>PHP Annotations Are a Horrible Idea<|eot|><|sol|>http://theunraveler.com/blog/2012/php-annotations-are-a-horrible-idea/<|eol|><|sor|>I like how my gut told me it sounded odd when I saw it in /r/PHP only to have it reassured this way in my front page: [http://i.imgur.com/dPTAT.png](http://i.imgur.com/dPTA...
8
lolphp
kingguru
c6o8a6h
<|sols|><|sot|>PHP Annotations Are a Horrible Idea<|eot|><|sol|>http://theunraveler.com/blog/2012/php-annotations-are-a-horrible-idea/<|eol|><|sor|>Why is this in /r/lolphp? Are you saying that comment-based annotations are a swell idea, that the alternatives he's proposing are retarded or are you just making fun of PH...
5
lolphp
ealf
udeml
<|sols|><|sot|>The textbook implementation of edit distance takes O(n) work. The PHP standard library can compute a greedy approximation in (n).<|eot|><|sol|>http://www.php.net/similar_text<|eol|><|eols|><|endoftext|>
30
lolphp
toomuchvitriol
c4ugmen
<|sols|><|sot|>The textbook implementation of edit distance takes O(n) work. The PHP standard library can compute a greedy approximation in (n).<|eot|><|sol|>http://www.php.net/similar_text<|eol|><|sor|>I can only assume the source is cited as `Oliver [1993]` because that's how they've seen other people cite things, co...
14
lolphp
ealf
c4untwx
<|sols|><|sot|>The textbook implementation of edit distance takes O(n) work. The PHP standard library can compute a greedy approximation in (n).<|eot|><|sol|>http://www.php.net/similar_text<|eol|><|sor|>Extra WTF: they also have a pretty generic edit distance function called [`levenshtein`](http://nl.php.net/manual/en/...
9
lolphp
ealf
c4uuuny
<|sols|><|sot|>The textbook implementation of edit distance takes O(n) work. The PHP standard library can compute a greedy approximation in (n).<|eot|><|sol|>http://www.php.net/similar_text<|eol|><|sor|>Extra WTF: they also have a pretty generic edit distance function called [`levenshtein`](http://nl.php.net/manual/en/...
5
lolphp
ManchegoObfuscator
qdxz9
<|sols|><|sot|>If I'm half as drunk as this PHP error message I'm definitively having a great time<|eot|><|sol|>https://twitter.com/#!/ircmaxell/status/175070904659886080<|eol|><|eols|><|endoftext|>
34
lolphp
tweet_poster
c3wtein
<|sols|><|sot|>If I'm half as drunk as this PHP error message I'm definitively having a great time<|eot|><|sol|>https://twitter.com/#!/ircmaxell/status/175070904659886080<|eol|><|sor|>***ircmaxell***: >&#91;2012/03/01&#93;&#91;04:12:10&#93; >[&#91;Translate&#93;](http://translate.google.com/#auto|auto|You know it%27s...
10
lolphp
Takeoded
ni11yx
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|eols|><|endoftext|>
28
lolphp
Smooth-Zucchini4923
gz07jvh
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|soopr|>i imagine the code is something like ``` uint16_t i=0; do{ ++i; name="prefix"+bin2hex(pack ( 'v', i )); }while(file_exists(name) && i...
18
lolphp
emperorkrulos
gyzzk53
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|sor|>Had a run in with this on our CI-pipeline. I was running integration tests using guzzle. Guzzle streams the response to a tmpfile. The tmpfiles...
14
lolphp
Smooth-Zucchini4923
gz16x0b
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|soopr|>i imagine the code is something like ``` uint16_t i=0; do{ ++i; name="prefix"+bin2hex(pack ( 'v', i )); }while(file_exists(name) && i...
11
lolphp
Regimardyl
gyzijto
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|soopr|>i imagine the code is something like ``` uint16_t i=0; do{ ++i; name="prefix"+bin2hex(pack ( 'v', i )); }while(file_exists(name) && i...
11
lolphp
Smooth-Zucchini4923
gz064sf
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|soopr|>i imagine the code is something like ``` uint16_t i=0; do{ ++i; name="prefix"+bin2hex(pack ( 'v', i )); }while(file_exists(name) && i...
10
lolphp
Takeoded
gyz9z9i
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|soopr|>i imagine the code is something like ``` uint16_t i=0; do{ ++i; name="prefix"+bin2hex(pack ( 'v', i )); }while(file_exists(name) && i...
7
lolphp
Takeoded
gz12wql
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|soopr|>i imagine the code is something like ``` uint16_t i=0; do{ ++i; name="prefix"+bin2hex(pack ( 'v', i )); }while(file_exists(name) && i...
7
lolphp
AyrA_ch
gz1n9qr
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|soopr|>i imagine the code is something like ``` uint16_t i=0; do{ ++i; name="prefix"+bin2hex(pack ( 'v', i )); }while(file_exists(name) && i...
7
lolphp
iloveportalz0r
gz1gplk
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|soopr|>i imagine the code is something like ``` uint16_t i=0; do{ ++i; name="prefix"+bin2hex(pack ( 'v', i )); }while(file_exists(name) && i...
7
lolphp
homeopathetic
gz2z0ln
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|sor|>If you have more than 65k files in one folder you're going to have bigger problems. If you need a solution that isn't limited to 65k it must b...
6
lolphp
Dr_Legacy
gz1lj9h
<|sols|><|sot|>On NTFS this also happens if the specified directory contains more than 65534 files.<|eot|><|sol|>https://www.php.net/manual/en/function.tempnam.php<|eol|><|soopr|>i imagine the code is something like ``` uint16_t i=0; do{ ++i; name="prefix"+bin2hex(pack ( 'v', i )); }while(file_exists(name) && i...
5
lolphp
zilltine
m67z3r
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|eoss|><|endoftext|>
31
lolphp
fragglet
gr4g1pf
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>not a LOL if you read documentation for scrict flag `in_array(0, ['IsThisLolPhp'], true);` [https://www.php.net/manual/en/function.in-array.php](https://www.php.net/manual/en/function.i...
54
lolphp
SAmaruVMR
gr46mzj
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>That's because of type juggling. For example, you're checking an integer with a string. What happens behind the courtains is that the php try to see if in the string that you're comparin...
21
lolphp
CollieOxenfree
gr5ofjm
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>not a LOL if you read documentation for scrict flag `in_array(0, ['IsThisLolPhp'], true);` [https://www.php.net/manual/en/function.in-array.php](https://www.php.net/manual/en/function.i...
19
lolphp
SAmaruVMR
gr480kf
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>[false](https://phpize.online/?phpses=78819a38111285235a0b1f73cc475ef3) This sub definitely needs a FAQ wiki<|eor|><|sor|>You're using PHP 8. They fixed just that. If you try any version...
13
lolphp
bkdotcom
gr4b0v6
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>That's because of type juggling. For example, you're checking an integer with a string. What happens behind the courtains is that the php try to see if in the string that you're comparin...
13
lolphp
zilltine
gr4lrlc
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>That's because of type juggling. For example, you're checking an integer with a string. What happens behind the courtains is that the php try to see if in the string that you're comparin...
11
lolphp
LeadingArmadillo
gr4clxb
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>not a LOL if you read documentation for scrict flag `in_array(0, ['IsThisLolPhp'], true);` [https://www.php.net/manual/en/function.in-array.php](https://www.php.net/manual/en/function.i...
9
lolphp
zilltine
gr4savg
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>[deleted]<|eor|><|soopr|>I did, i had to find if array key contains one of possible keys. Basically had to find keys recursively on undefined structure, it was finding first elements in u...
9
lolphp
zilltine
gr4723g
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>That's because of type juggling. For example, you're checking an integer with a string. What happens behind the courtains is that the php try to see if in the string that you're comparin...
7
lolphp
elcapitanoooo
gr5b76m
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>not a LOL if you read documentation for scrict flag `in_array(0, ['IsThisLolPhp'], true);` [https://www.php.net/manual/en/function.in-array.php](https://www.php.net/manual/en/function.i...
7
lolphp
colshrapnel
gr48v8q
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>[false](https://phpize.online/?phpses=78819a38111285235a0b1f73cc475ef3) This sub definitely needs a FAQ wiki<|eor|><|sor|>You're using PHP 8. They fixed just that. If you try any version...
5
lolphp
fatboycreeper
gr4ivd3
<|soss|><|sot|>Is 0 in array<|eot|><|sost|>&#x200B; in_array(0, ['IsThisLolPhp']) Answer is true &#x200B;<|eost|><|sor|>[false](https://phpize.online/?phpses=78819a38111285235a0b1f73cc475ef3) This sub definitely needs a FAQ wiki<|eor|><|sor|>You're using PHP 8. They fixed just that. If you try any version...
5
lolphp
CheezyXenomorph
a0o35o
<|sols|><|sot|>Arrow functions!<|eot|><|sol|>https://twitter.com/calebporzio/status/1067163387338080259?s=19<|eol|><|eols|><|endoftext|>
31
lolphp
ArtyomR
eajeoef
<|sols|><|sot|>Arrow functions!<|eot|><|sol|>https://twitter.com/calebporzio/status/1067163387338080259?s=19<|eol|><|sor|>The perfect programming language doesnt exi-<|eor|><|eols|><|endoftext|>
8
lolphp
CheezyXenomorph
eakc70m
<|sols|><|sot|>Arrow functions!<|eot|><|sol|>https://twitter.com/calebporzio/status/1067163387338080259?s=19<|eol|><|sor|>What the hell is wrong with that person's font preference.<|eor|><|soopr|>Yeah, I thought it was [Fira code](https://github.com/tonsky/FiraCode) at first which is the font I use for coding, as the c...
5
lolphp
Takeoded
74fb4u
<|sols|><|sot|>Warning: SSL: The operation completed successfully.<|eot|><|sol|>https://stackoverflow.com/questions/46337963/php-soap-clients-http-headers-error<|eol|><|eols|><|endoftext|>
29