subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
Rhomboid
clqu1mr
<|sols|><|sot|>Prepared statements in pdo, running in emulated mode (which is default), will split the query on semi colons, and execute multiple queries thus formed, allowing SQL injection attacks and was the basis on the last Drupal vulnerability.<|eot|><|sol|>http://blog.ircmaxell.com/2014/10/a-lesson-in-security.ht...
8
lolphp
DoctorWaluigiTime
clqqz2e
<|sols|><|sot|>Prepared statements in pdo, running in emulated mode (which is default), will split the query on semi colons, and execute multiple queries thus formed, allowing SQL injection attacks and was the basis on the last Drupal vulnerability.<|eot|><|sol|>http://blog.ircmaxell.com/2014/10/a-lesson-in-security.ht...
7
lolphp
Katastic_Voyage
clqsnjj
<|sols|><|sot|>Prepared statements in pdo, running in emulated mode (which is default), will split the query on semi colons, and execute multiple queries thus formed, allowing SQL injection attacks and was the basis on the last Drupal vulnerability.<|eot|><|sol|>http://blog.ircmaxell.com/2014/10/a-lesson-in-security.ht...
7
lolphp
Rhomboid
clqrseu
<|sols|><|sot|>Prepared statements in pdo, running in emulated mode (which is default), will split the query on semi colons, and execute multiple queries thus formed, allowing SQL injection attacks and was the basis on the last Drupal vulnerability.<|eot|><|sol|>http://blog.ircmaxell.com/2014/10/a-lesson-in-security.ht...
6
lolphp
_vec_
cls36p9
<|sols|><|sot|>Prepared statements in pdo, running in emulated mode (which is default), will split the query on semi colons, and execute multiple queries thus formed, allowing SQL injection attacks and was the basis on the last Drupal vulnerability.<|eot|><|sol|>http://blog.ircmaxell.com/2014/10/a-lesson-in-security.ht...
5
lolphp
pilif
239fmc
<|sols|><|sot|>String? No. This looks like a number. It must be one.<|eot|><|sol|>http://codepad.org/NMc1idYX<|eol|><|eols|><|endoftext|>
45
lolphp
Rhomboid
cgurouy
<|sols|><|sot|>String? No. This looks like a number. It must be one.<|eot|><|sol|>http://codepad.org/NMc1idYX<|eol|><|sor|>Oh, it's even sadder than that. Try to use a float as a key? Silently cast to integer and truncated. That might make sense if arrays were purely numerically indexed, but they're really hash maps...
25
lolphp
pilif
cgura3a
<|sols|><|sot|>String? No. This looks like a number. It must be one.<|eot|><|sol|>http://codepad.org/NMc1idYX<|eol|><|soopr|>This pisses me off endlessly as silent conversions of strings into number is working against any use of the === operator. In this particular case, it's impossible to have a string that looks lik...
16
lolphp
HelloAnnyong
cgyh3gy
<|sols|><|sot|>String? No. This looks like a number. It must be one.<|eot|><|sol|>http://codepad.org/NMc1idYX<|eol|><|sor|>Oh man, this behaviour leads to an entire class of bugs that you will never see in development, but will only appear in production. PHP's insistence on coercing strings to integers without telling...
13
lolphp
barubary
cgwrcs7
<|sols|><|sot|>String? No. This looks like a number. It must be one.<|eot|><|sol|>http://codepad.org/NMc1idYX<|eol|><|sor|>Oh, it's even sadder than that. Try to use a float as a key? Silently cast to integer and truncated. That might make sense if arrays were purely numerically indexed, but they're really hash maps...
10
lolphp
edave64
cgv0bt9
<|sols|><|sot|>String? No. This looks like a number. It must be one.<|eot|><|sol|>http://codepad.org/NMc1idYX<|eol|><|sor|>Oh, it's even sadder than that. Try to use a float as a key? Silently cast to integer and truncated. That might make sense if arrays were purely numerically indexed, but they're really hash maps...
8
lolphp
huf
cgus0vj
<|sols|><|sot|>String? No. This looks like a number. It must be one.<|eot|><|sol|>http://codepad.org/NMc1idYX<|eol|><|soopr|>This pisses me off endlessly as silent conversions of strings into number is working against any use of the === operator. In this particular case, it's impossible to have a string that looks lik...
7
lolphp
Rhomboid
cgwkw9p
<|sols|><|sot|>String? No. This looks like a number. It must be one.<|eot|><|sol|>http://codepad.org/NMc1idYX<|eol|><|sor|>Oh, it's even sadder than that. Try to use a float as a key? Silently cast to integer and truncated. That might make sense if arrays were purely numerically indexed, but they're really hash maps...
6
lolphp
postmodest
cgvh8ey
<|sols|><|sot|>String? No. This looks like a number. It must be one.<|eot|><|sol|>http://codepad.org/NMc1idYX<|eol|><|sor|>some day they'll make hash() "a language construct" and all the Perl people will look at them and say "You're all fucking retards."<|eor|><|sor|>> all the Perl people will look at them and say "Yo...
5
lolphp
barubary
1efmol
<|soss|><|sot|>I love JSON; it's so easy!<|eot|><|sost|> % php -r 'var_dump(json_decode("true"));' bool(true) % php -r 'var_dump(json_decode("tRue"));' bool(true) % php -r 'var_dump(json_decode("true "));' NULL % php -r 'var_dump(json_decode("[true ] "));' array(1) { [0]=> ...
43
lolphp
tdammers
c9zsqbv
<|soss|><|sot|>I love JSON; it's so easy!<|eot|><|sost|> % php -r 'var_dump(json_decode("true"));' bool(true) % php -r 'var_dump(json_decode("tRue"));' bool(true) % php -r 'var_dump(json_decode("true "));' NULL % php -r 'var_dump(json_decode("[true ] "));' array(1) { [0]=> ...
10
lolphp
wwwwolf
ca143me
<|soss|><|sot|>I love JSON; it's so easy!<|eot|><|sost|> % php -r 'var_dump(json_decode("true"));' bool(true) % php -r 'var_dump(json_decode("tRue"));' bool(true) % php -r 'var_dump(json_decode("true "));' NULL % php -r 'var_dump(json_decode("[true ] "));' array(1) { [0]=> ...
9
lolphp
notwolverine
ca15bti
<|soss|><|sot|>I love JSON; it's so easy!<|eot|><|sost|> % php -r 'var_dump(json_decode("true"));' bool(true) % php -r 'var_dump(json_decode("tRue"));' bool(true) % php -r 'var_dump(json_decode("true "));' NULL % php -r 'var_dump(json_decode("[true ] "));' array(1) { [0]=> ...
6
lolphp
iheartrms
9occ0x
<|sols|><|sot|>Not sure if LOL but seems relevant: Around 62% of all Internet sites will run an unsupported PHP version in 10 weeks | ZDNet<|eot|><|sol|>https://www.zdnet.com/article/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks/<|eol|><|eols|><|endoftext|>
39
lolphp
BufferUnderpants
e7t89e3
<|sols|><|sot|>Not sure if LOL but seems relevant: Around 62% of all Internet sites will run an unsupported PHP version in 10 weeks | ZDNet<|eot|><|sol|>https://www.zdnet.com/article/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks/<|eol|><|sor|>That's what elitists don't understand. You ...
18
lolphp
BufferUnderpants
e7tlf5r
<|sols|><|sot|>Not sure if LOL but seems relevant: Around 62% of all Internet sites will run an unsupported PHP version in 10 weeks | ZDNet<|eot|><|sol|>https://www.zdnet.com/article/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks/<|eol|><|sor|>That's what elitists don't understand. You ...
13
lolphp
girst
e7w5p8m
<|sols|><|sot|>Not sure if LOL but seems relevant: Around 62% of all Internet sites will run an unsupported PHP version in 10 weeks | ZDNet<|eot|><|sol|>https://www.zdnet.com/article/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks/<|eol|><|sor|>5.6? pffft, amateurs! >`Apache/2.0.59easyT...
12
lolphp
walterbanana
e7tg2vc
<|sols|><|sot|>Not sure if LOL but seems relevant: Around 62% of all Internet sites will run an unsupported PHP version in 10 weeks | ZDNet<|eot|><|sol|>https://www.zdnet.com/article/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks/<|eol|><|sor|>Distributions will supply security updates ...
12
lolphp
walterbanana
e7u01m2
<|sols|><|sot|>Not sure if LOL but seems relevant: Around 62% of all Internet sites will run an unsupported PHP version in 10 weeks | ZDNet<|eot|><|sol|>https://www.zdnet.com/article/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks/<|eol|><|sor|>Distributions will supply security updates ...
10
lolphp
Branan
e7urj87
<|sols|><|sot|>Not sure if LOL but seems relevant: Around 62% of all Internet sites will run an unsupported PHP version in 10 weeks | ZDNet<|eot|><|sol|>https://www.zdnet.com/article/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks/<|eol|><|sor|>Distributions will supply security updates ...
9
lolphp
polish_niceguy
e9cm7wf
<|sols|><|sot|>Not sure if LOL but seems relevant: Around 62% of all Internet sites will run an unsupported PHP version in 10 weeks | ZDNet<|eot|><|sol|>https://www.zdnet.com/article/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks/<|eol|><|sor|>5.6? pffft, amateurs! >`Apache/2.0.59easyT...
7
lolphp
walterbanana
e7u6u27
<|sols|><|sot|>Not sure if LOL but seems relevant: Around 62% of all Internet sites will run an unsupported PHP version in 10 weeks | ZDNet<|eot|><|sol|>https://www.zdnet.com/article/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks/<|eol|><|sor|>Distributions will supply security updates ...
7
lolphp
guy99882
e7tb0mn
<|sols|><|sot|>Not sure if LOL but seems relevant: Around 62% of all Internet sites will run an unsupported PHP version in 10 weeks | ZDNet<|eot|><|sol|>https://www.zdnet.com/article/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks/<|eol|><|sor|>That's what elitists don't understand. You ...
5
lolphp
SjaakRake
7yxt1i
<|sols|><|sot|>After thorough delibiration and review we've decided to deprecate this. Oh, wait, never mind.<|eot|><|sol|>http://php.net/manual/en/function.is-a.php#refsect1-function.is-a-changelog<|eol|><|eols|><|endoftext|>
41
lolphp
maweki
dul563w
<|sols|><|sot|>After thorough delibiration and review we've decided to deprecate this. Oh, wait, never mind.<|eot|><|sol|>http://php.net/manual/en/function.is-a.php#refsect1-function.is-a-changelog<|eol|><|sor|>The first comment is gold: > Whether this change is considered a bug and whether it will be reverted or kept...
15
lolphp
creativeMan
7isg11
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|eols|><|endoftext|>
41
lolphp
creativeMan
dr1b7eg
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|sor|>This demonstrates very limited understanding. I can tell you're new to PHP. Welcome.<|eor|><|soopr|>I'll admit I'm new to PHP. Not to programming though. This I believe will cause me a lot of confusion in the future.<|eoopr|><|eo...
22
lolphp
PM_TACOS
dr1g8fm
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|sor|>This demonstrates very limited understanding. I can tell you're new to PHP. Welcome.<|eor|><|soopr|>I'll admit I'm new to PHP. Not to programming though. This I believe will cause me a lot of confusion in the future.<|eoopr|><|so...
16
lolphp
creativeMan
dr12hxu
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|soopr|>0 is false though. if(0) echo "zero";<|eoopr|><|eols|><|endoftext|>
12
lolphp
Joniator
dr2yi3k
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|sor|>This demonstrates very limited understanding. I can tell you're new to PHP. Welcome.<|eor|><|soopr|>I'll admit I'm new to PHP. Not to programming though. This I believe will cause me a lot of confusion in the future.<|eoopr|><|so...
11
lolphp
the_alias_of_andrea
dr1xcw9
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|sor|>It's weird to me that `false` and `null`'s string values are both `''`. `''` makes sense for the latter perhaps, but shouldn't the former be `'0'` to contrast? I mean, `'0'` is falsey in PHP! It's specifically special-cased!<|eor...
10
lolphp
the_alias_of_andrea
dr3457m
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|sor|>It's weird to me that `false` and `null`'s string values are both `''`. `''` makes sense for the latter perhaps, but shouldn't the former be `'0'` to contrast? I mean, `'0'` is falsey in PHP! It's specifically special-cased!<|eor...
6
lolphp
vekien
dr3cksq
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|sor|>It's weird to me that `false` and `null`'s string values are both `''`. `''` makes sense for the latter perhaps, but shouldn't the former be `'0'` to contrast? I mean, `'0'` is falsey in PHP! It's specifically special-cased!<|eor...
6
lolphp
vekien
dr2w92c
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|soopr|>I'll admit I'm new to PHP. Not to programming though. This I believe will cause me a lot of confusion in the future.<|eoopr|><|sor|>It won't.<|eor|><|sor|>Mind to explain why it does not echo 0?<|eor|><|sor|>* `(string)true ===...
6
lolphp
Joniator
dr3g20d
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|sor|>It won't.<|eor|><|sor|>Mind to explain why it does not echo 0?<|eor|><|sor|>* `(string)true === "1";` * `(string)false === "";` If you really wanted it to be cast to `"0"` you would do `(string)(int)false`.<|eor|><|sor|>But I do...
6
lolphp
vekien
dr2wbap
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|sor|>It's weird to me that `false` and `null`'s string values are both `''`. `''` makes sense for the latter perhaps, but shouldn't the former be `'0'` to contrast? I mean, `'0'` is falsey in PHP! It's specifically special-cased!<|eor...
5
lolphp
vekien
dr3skaa
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|sor|>It's weird to me that `false` and `null`'s string values are both `''`. `''` makes sense for the latter perhaps, but shouldn't the former be `'0'` to contrast? I mean, `'0'` is falsey in PHP! It's specifically special-cased!<|eor...
5
lolphp
Joniator
dr1hcf3
<|sols|><|sot|>True is 1. False is not 0.<|eot|><|sol|>https://3v4l.org/gt31C<|eol|><|sor|>This demonstrates very limited understanding. I can tell you're new to PHP. Welcome.<|eor|><|soopr|>I'll admit I'm new to PHP. Not to programming though. This I believe will cause me a lot of confusion in the future.<|eoopr|><|so...
5
lolphp
ZugNachPankow
5kkpsl
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|eols|><|endoftext|>
44
lolphp
mcilrain
dbp0dcy
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|sor|>Inb4 `openssl_real_public_encrypt`.<|eor|><|eols|><|endoftext|>
40
lolphp
polish_niceguy
dbp40wo
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|sor|>Inb4 `openssl_real_public_encrypt`.<|eor|><|sor|>Inb4 "we can't change the defaults as it will break legacy code"<|e...
28
lolphp
binwiederhier
dbp49ft
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|sor|>The title of this post and the article are both a bit click-bait-y. The title makes it seem like PHP and its librari...
18
lolphp
ZugNachPankow
dbp0mnt
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|sor|>Inb4 `openssl_real_public_encrypt`.<|eor|><|soopr|>`openSslRealPubEncr`, FTFY<|eoopr|><|eols|><|endoftext|>
13
lolphp
ZugNachPankow
dbp4jnn
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|sor|>The title of this post and the article are both a bit click-bait-y. The title makes it seem like PHP and its librari...
12
lolphp
edave64
dbq7kfp
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|sor|>Inb4 `openssl_real_public_encrypt`.<|eor|><|sor|>FYI, that's the function name because the PHP library just used the...
12
lolphp
hylje
dbsf6ie
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|sor|>Inb4 `openssl_real_public_encrypt`.<|eor|><|sor|>FYI, that's the function name because the PHP library just used the...
10
lolphp
nikomo
dbpvjv6
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|sor|>Inb4 `openssl_real_public_encrypt`.<|eor|><|sor|>FYI, that's the function name because the PHP library just used the...
8
lolphp
DeeSnow97
dbpr9ds
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|sor|>The title of this post and the article are both a bit click-bait-y. The title makes it seem like PHP and its librari...
6
lolphp
c_o_r_b_a
dbq64mh
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|sor|>\> 2016 \> people still using RSA \> RSA for encryption (as opposed to handshake) \> not using stream ciphers (...
5
lolphp
sarciszewski
dbq2zyw
<|sols|><|sot|>Everything You Know About Public-Key Encryption in PHP is Wrong<|eot|><|sol|>https://paragonie.com/blog/2016/12/everything-you-know-about-public-key-encryption-in-php-is-wrong<|eol|><|sor|>The title of this post and the article are both a bit click-bait-y. The title makes it seem like PHP and its librari...
5
lolphp
Danack
3jvcxh
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|eols|><|endoftext|>
42
lolphp
polish_niceguy
cusrwz8
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>It's lolrasmus, not lolphp. This idiot generated map with all the vendor libraries like Faker, phpDocumentor, Symfony, etc. He's just jealous that Laravel turned his retarded...
36
lolphp
Vakieh
cusuqal
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>Yeah! Who needs a class hierarchy, with abstraction, and encapsulation, and actual idiomatic patterns? Just code the entire language into a single file, you probably only...
18
lolphp
greyfade
cut8oju
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>It's lolrasmus, not lolphp. This idiot generated map with all the vendor libraries like Faker, phpDocumentor, Symfony, etc. He's just jealous that Laravel turned his retarded...
17
lolphp
BilgeXA
cusmwo6
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>>Lerdorf looking at Laravel Uh oh... this can only spell disaster.<|eor|><|eols|><|endoftext|>
15
lolphp
myaut
cutchrz
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>It's so bad you should even be careful opening the image (as it's HUUUUUGE). It froze my PC for a good half a minute before it would close.<|eor|><|sor|>It is also a JPG which...
13
lolphp
Brainlag
cutpozf
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>It's so bad you should even be careful opening the image (as it's HUUUUUGE). It froze my PC for a good half a minute before it would close.<|eor|><|sor|>It is also a JPG which...
12
lolphp
Kerfulfel
cutr658
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>It's lolrasmus, not lolphp. This idiot generated map with all the vendor libraries like Faker, phpDocumentor, Symfony, etc. He's just jealous that Laravel turned his retarded...
10
lolphp
greyfade
cuttf2a
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>It's lolrasmus, not lolphp. This idiot generated map with all the vendor libraries like Faker, phpDocumentor, Symfony, etc. He's just jealous that Laravel turned his retarded...
9
lolphp
beerdude26
cutdv0s
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>It's lolrasmus, not lolphp. This idiot generated map with all the vendor libraries like Faker, phpDocumentor, Symfony, etc. He's just jealous that Laravel turned his retarded...
8
lolphp
Sheepshow
cux4kv5
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>It's so bad you should even be careful opening the image (as it's HUUUUUGE). It froze my PC for a good half a minute before it would close.<|eor|><|sor|>It is also a JPG which...
8
lolphp
gearvOsh
cusqze8
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>IMO, this would prove a better point if dev dependencies weren't included. Those seem to make up the majority.<|eor|><|eols|><|endoftext|>
7
lolphp
TweetPoster
cuskogd
<|sols|><|sot|>A partial map of Laravel's class hierarchy<|eot|><|sol|>https://twitter.com/rasmus/status/618301957095055360/photo/1<|eol|><|sor|>[**@rasmus**](https://twitter.com/rasmus): >[2015-07-07 06:14:08 UTC](https://twitter.com/rasmus/status/618301957095055360) >I was getting lost in Laravel's class hierarchy s...
5
lolphp
callcifer
2qyuhc
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
46
lolphp
allthediamonds
cnb41qs
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
30
lolphp
expugnator3000
cnat4dh
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
26
lolphp
BufferUnderpants
cnb5g08
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
20
lolphp
urquan
cnb3gwd
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
19
lolphp
quickjoe_smith
cnatmom
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
13
lolphp
duskwuff
cnavjpe
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
13
lolphp
rabidferret
cnavr9k
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
12
lolphp
n1c0_ds
cnb96ih
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
10
lolphp
InconsiderateBastard
cnavmct
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
8
lolphp
Rhomboid
cnaxren
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
6
lolphp
expugnator3000
cnbo49h
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
6
lolphp
vytah
cnbdj7w
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
5
lolphp
rabidferret
cnavs80
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
5
lolphp
OneWingedShark
cnetrj6
<|soss|><|sot|>New RFC for scalar types in PHP 7!<|eot|><|sost|>As expected, [the new RFC](https://wiki.php.net/rfc/scalar_type_hints) is full of perfectly sensible, well designed, no-surprises behavior: function foo(int $bar) { return $bar + 2; } foo("7PHP"); // returns 9 How about booleans?...
5
lolphp
denilsonsa
2ad68f
<|sols|><|sot|>bindParam('foo', $value, PDO::PARAM_INT) will change $value to string.<|eot|><|sol|>http://php.net/manual/en/pdostatement.bindparam.php#94711<|eol|><|eols|><|endoftext|>
42
lolphp
Myto
ciu5sq9
<|sols|><|sot|>bindParam('foo', $value, PDO::PARAM_INT) will change $value to string.<|eot|><|sol|>http://php.net/manual/en/pdostatement.bindparam.php#94711<|eol|><|sor|>["Unlike PDOStatement::bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement::execute() is called...
18
lolphp
kasnalin
ciu5yto
<|sols|><|sot|>bindParam('foo', $value, PDO::PARAM_INT) will change $value to string.<|eot|><|sol|>http://php.net/manual/en/pdostatement.bindparam.php#94711<|eol|><|sor|>["Unlike PDOStatement::bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement::execute() is called...
16
lolphp
Myto
ciu4290
<|sols|><|sot|>bindParam('foo', $value, PDO::PARAM_INT) will change $value to string.<|eot|><|sol|>http://php.net/manual/en/pdostatement.bindparam.php#94711<|eol|><|sor|>["Unlike PDOStatement::bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement::execute() is called...
13
lolphp
ahruss
ciudf14
<|sols|><|sot|>bindParam('foo', $value, PDO::PARAM_INT) will change $value to string.<|eot|><|sol|>http://php.net/manual/en/pdostatement.bindparam.php#94711<|eol|><|sor|>["Unlike PDOStatement::bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement::execute() is called...
11
lolphp
phoshi
ciub3s6
<|sols|><|sot|>bindParam('foo', $value, PDO::PARAM_INT) will change $value to string.<|eot|><|sol|>http://php.net/manual/en/pdostatement.bindparam.php#94711<|eol|><|sor|>["Unlike PDOStatement::bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement::execute() is called...
10
lolphp
ahruss
ciudful
<|sols|><|sot|>bindParam('foo', $value, PDO::PARAM_INT) will change $value to string.<|eot|><|sol|>http://php.net/manual/en/pdostatement.bindparam.php#94711<|eol|><|sor|>Also, the second parameter: > variable > Name of the PHP variable to bind to the SQL statement parameter. This makes it sound like you use it like `...
9
lolphp
StephenSwat
25eqcr
<|soss|><|sot|>Encountered this trying to strip non-numeric characters from a string...<|eot|><|sost|> preg_replace('/[^0-9]/', '', '123abc45', -1 ); Now, let's see the output of that per PHP version: * 4.4.9: 12345 * 5.1.6: 12345 * 5.3.0: 12345 * 5.4.3: 12345 * 5.4.4: 123abc45 * 5.4.5: 12345 * 5.4.21: 12345 * 5.5...
46
lolphp
deadstone
chgq5v4
<|soss|><|sot|>Encountered this trying to strip non-numeric characters from a string...<|eot|><|sost|> preg_replace('/[^0-9]/', '', '123abc45', -1 ); Now, let's see the output of that per PHP version: * 4.4.9: 12345 * 5.1.6: 12345 * 5.3.0: 12345 * 5.4.3: 12345 * 5.4.4: 123abc45 * 5.4.5: 12345 * 5.4.21: 12345 * 5.5...
33
lolphp
andsens
chh83k5
<|soss|><|sot|>Encountered this trying to strip non-numeric characters from a string...<|eot|><|sost|> preg_replace('/[^0-9]/', '', '123abc45', -1 ); Now, let's see the output of that per PHP version: * 4.4.9: 12345 * 5.1.6: 12345 * 5.3.0: 12345 * 5.4.3: 12345 * 5.4.4: 123abc45 * 5.4.5: 12345 * 5.4.21: 12345 * 5.5...
13
lolphp
Krenair
chhbhuy
<|soss|><|sot|>Encountered this trying to strip non-numeric characters from a string...<|eot|><|sost|> preg_replace('/[^0-9]/', '', '123abc45', -1 ); Now, let's see the output of that per PHP version: * 4.4.9: 12345 * 5.1.6: 12345 * 5.3.0: 12345 * 5.4.3: 12345 * 5.4.4: 123abc45 * 5.4.5: 12345 * 5.4.21: 12345 * 5.5...
11
lolphp
chazzeromus
chgq7hg
<|soss|><|sot|>Encountered this trying to strip non-numeric characters from a string...<|eot|><|sost|> preg_replace('/[^0-9]/', '', '123abc45', -1 ); Now, let's see the output of that per PHP version: * 4.4.9: 12345 * 5.1.6: 12345 * 5.3.0: 12345 * 5.4.3: 12345 * 5.4.4: 123abc45 * 5.4.5: 12345 * 5.4.21: 12345 * 5.5...
8
lolphp
andsens
chh82ah
<|soss|><|sot|>Encountered this trying to strip non-numeric characters from a string...<|eot|><|sost|> preg_replace('/[^0-9]/', '', '123abc45', -1 ); Now, let's see the output of that per PHP version: * 4.4.9: 12345 * 5.1.6: 12345 * 5.3.0: 12345 * 5.4.3: 12345 * 5.4.4: 123abc45 * 5.4.5: 12345 * 5.4.21: 12345 * 5.5...
8
lolphp
StephenSwat
chgqrwp
<|soss|><|sot|>Encountered this trying to strip non-numeric characters from a string...<|eot|><|sost|> preg_replace('/[^0-9]/', '', '123abc45', -1 ); Now, let's see the output of that per PHP version: * 4.4.9: 12345 * 5.1.6: 12345 * 5.3.0: 12345 * 5.4.3: 12345 * 5.4.4: 123abc45 * 5.4.5: 12345 * 5.4.21: 12345 * 5.5...
6
lolphp
more_exercise
14o9ax
<|sols|><|sot|>You can goto the try{} block from the catch block. Yes. That sounds like a good idea, let's do that.<|eot|><|sol|>http://phpmanualmasterpieces.tumblr.com/post/33091353115/the-documentation-clearly-says-raptors<|eol|><|eols|><|endoftext|>
38
lolphp
catcradle5
c7gem9s
<|sols|><|sot|>You can goto the try{} block from the catch block. Yes. That sounds like a good idea, let's do that.<|eot|><|sol|>http://phpmanualmasterpieces.tumblr.com/post/33091353115/the-documentation-clearly-says-raptors<|eol|><|sor|>To be fair, if you're using goto's you've officially forfeited the right to have...
10
lolphp
gecko
c7j1sz0
<|sols|><|sot|>You can goto the try{} block from the catch block. Yes. That sounds like a good idea, let's do that.<|eot|><|sol|>http://phpmanualmasterpieces.tumblr.com/post/33091353115/the-documentation-clearly-says-raptors<|eol|><|sor|>You know, I hate a lot of PHP features, but I do legitimately get this one. Qui...
8