subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
Rican7
23gu79
<|sols|><|sot|>String character access modification.... oh wait.<|eot|><|sol|>http://i.imgur.com/Jstrsim.png<|eol|><|eols|><|endoftext|>
67
lolphp
Various_Pickles
cgx00tu
<|sols|><|sot|>String character access modification.... oh wait.<|eot|><|sol|>http://i.imgur.com/Jstrsim.png<|eol|><|sor|>Any other (sane) language: "Index out of bounds, fuckface." PHP: "i can count to potatoindex"<|eor|><|eols|><|endoftext|>
57
lolphp
Rhomboid
cgwwwop
<|sols|><|sot|>String character access modification.... oh wait.<|eot|><|sol|>http://i.imgur.com/Jstrsim.png<|eol|><|sor|>Phippy, the helpful paperclip, saw that you wrote empty string but really meant array and fixed it for you. Don't you like it when the computer helps you? <|eor|><|eols|><|endoftext|>
47
lolphp
Rican7
cgx5cso
<|sols|><|sot|>String character access modification.... oh wait.<|eot|><|sol|>http://i.imgur.com/Jstrsim.png<|eol|><|sor|>Unlike for example C, PHP has an inbuilt string datatype. The string datatype allows you array-like access to the single characters in the string but will always be a string. <|eor|><|soopr|>Yes, th...
16
lolphp
Bratmon
cgxa9l7
<|sols|><|sot|>String character access modification.... oh wait.<|eot|><|sol|>http://i.imgur.com/Jstrsim.png<|eol|><|sor|>Unlike for example C, PHP has an inbuilt string datatype. The string datatype allows you array-like access to the single characters in the string but will always be a string. <|eor|><|sor|>>but will...
9
lolphp
SockPants
cgwy62k
<|sols|><|sot|>String character access modification.... oh wait.<|eot|><|sol|>http://i.imgur.com/Jstrsim.png<|eol|><|sor|>More string-related wat. $wat1 = "wat"; $wat1[3] = "z"; var_dump($wat1); $wat2 = "wat"; $wat2[4] = "z"; var_dump($wat2); $wat3 = "wat"; $wat3[50] = "z"; ...
5
lolphp
Rican7
cgx0df7
<|sols|><|sot|>String character access modification.... oh wait.<|eot|><|sol|>http://i.imgur.com/Jstrsim.png<|eol|><|sor|>More string-related wat. $wat1 = "wat"; $wat1[3] = "z"; var_dump($wat1); $wat2 = "wat"; $wat2[4] = "z"; var_dump($wat2); $wat3 = "wat"; $wat3[50] = "z"; ...
5
lolphp
nsfwIvan
13zfvk
<|sols|><|sot|>PHP segfaults - not a bug, totally standard.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|eols|><|endoftext|>
65
lolphp
noname-_-
c78rwh7
<|sols|><|sot|>PHP segfaults - not a bug, totally standard.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>The submitted code doesn't work, either. As written, it will loop endlessly, generating an infinite series of clones in a Fantasia-like manner<|eor|><|sor|>Wasn't that the point?<|eor|><|sor|>Eh. ...
27
lolphp
noname-_-
c78qyoj
<|sols|><|sot|>PHP segfaults - not a bug, totally standard.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>The submitted code doesn't work, either. As written, it will loop endlessly, generating an infinite series of clones in a Fantasia-like manner<|eor|><|sor|>Wasn't that the point?<|eor|><|sor|>Eh. ...
20
lolphp
audaxxx
c78ibcu
<|sols|><|sot|>PHP segfaults - not a bug, totally standard.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>I hate debugging a segfaulting PHP, that happens way too often. Stepping in with a debugger and then stepping to the point where it dies..sucks. It shouldn't segfault. edit: WTF, a 2009 bug and ...
15
lolphp
more_exercise
c78r2ld
<|sols|><|sot|>PHP segfaults - not a bug, totally standard.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>The submitted code doesn't work, either. As written, it will loop endlessly, generating an infinite series of clones in a Fantasia-like manner<|eor|><|sor|>Wasn't that the point?<|eor|><|sor|>Eh. ...
11
lolphp
EdiX
c793nf4
<|sols|><|sot|>PHP segfaults - not a bug, totally standard.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>I hate debugging a segfaulting PHP, that happens way too often. Stepping in with a debugger and then stepping to the point where it dies..sucks. It shouldn't segfault. edit: WTF, a 2009 bug and ...
9
lolphp
noname-_-
c78q1gc
<|sols|><|sot|>PHP segfaults - not a bug, totally standard.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>The submitted code doesn't work, either. As written, it will loop endlessly, generating an infinite series of clones in a Fantasia-like manner<|eor|><|sor|>Wasn't that the point?<|eor|><|eols|><|e...
6
lolphp
more_exercise
c78qobl
<|sols|><|sot|>PHP segfaults - not a bug, totally standard.<|eot|><|sol|>https://bugs.php.net/bug.php?id=49664<|eol|><|sor|>The submitted code doesn't work, either. As written, it will loop endlessly, generating an infinite series of clones in a Fantasia-like manner<|eor|><|sor|>Wasn't that the point?<|eor|><|sor|>Eh. ...
5
lolphp
AndroTux
lr6s3i
<|sols|><|sot|>It's 2021 and the gethostbyname() DNS functions STILL don't support IPv6<|eot|><|sol|>https://bugs.php.net/bug.php?id=49493<|eol|><|eols|><|endoftext|>
66
lolphp
AyrA_ch
gok9mue
<|sols|><|sot|>It's 2021 and the gethostbyname() DNS functions STILL don't support IPv6<|eot|><|sol|>https://bugs.php.net/bug.php?id=49493<|eol|><|sor|>[The documentation](https://www.php.net/manual/en/function.gethostbyname.php) says that this function returns the IPv4 address of a host. This is probably a low priori...
20
lolphp
Dagger0
gokbvil
<|sols|><|sot|>It's 2021 and the gethostbyname() DNS functions STILL don't support IPv6<|eot|><|sol|>https://bugs.php.net/bug.php?id=49493<|eol|><|sor|>This function is forever doomed anyway, because it resolves to a single address only which is simply the wrong model for name resolution. It should be deprecated and re...
15
lolphp
AyrA_ch
gokaz43
<|sols|><|sot|>It's 2021 and the gethostbyname() DNS functions STILL don't support IPv6<|eot|><|sol|>https://bugs.php.net/bug.php?id=49493<|eol|><|sor|>[The documentation](https://www.php.net/manual/en/function.gethostbyname.php) says that this function returns the IPv4 address of a host. This is probably a low priori...
6
lolphp
sproingie
gdmtw1
<|sols|><|sot|>How was your day? I just recently started to hate someone.<|eot|><|sol|>https://i.redd.it/hu046vjqvtw41.png<|eol|><|eols|><|endoftext|>
69
lolphp
dotted
fpih0uk
<|sols|><|sot|>How was your day? I just recently started to hate someone.<|eot|><|sol|>https://i.redd.it/hu046vjqvtw41.png<|eol|><|sor|>/r/programminghorror<|eor|><|eols|><|endoftext|>
21
lolphp
kyou20
fpl3i0q
<|sols|><|sot|>How was your day? I just recently started to hate someone.<|eot|><|sol|>https://i.redd.it/hu046vjqvtw41.png<|eol|><|soopr|>Yes it is lolbadcode. I just thought I'd share a lol that was php even if php itself isn't the lol. Or something. Hey, things are crickets around here.<|eoopr|><|sor|>Not a PHP OO...
12
lolphp
sproingie
fpi86ns
<|sols|><|sot|>How was your day? I just recently started to hate someone.<|eot|><|sol|>https://i.redd.it/hu046vjqvtw41.png<|eol|><|soopr|>Yes it is lolbadcode. I just thought I'd share a lol that was php even if php itself isn't the lol. Or something. Hey, things are crickets around here.<|eoopr|><|eols|><|endoftext...
11
lolphp
kyou20
fpl0yly
<|sols|><|sot|>How was your day? I just recently started to hate someone.<|eot|><|sol|>https://i.redd.it/hu046vjqvtw41.png<|eol|><|soopr|>Yes it is lolbadcode. I just thought I'd share a lol that was php even if php itself isn't the lol. Or something. Hey, things are crickets around here.<|eoopr|><|sor|>Not a PHP OO...
8
lolphp
iheartrms
fpl2hof
<|sols|><|sot|>How was your day? I just recently started to hate someone.<|eot|><|sol|>https://i.redd.it/hu046vjqvtw41.png<|eol|><|soopr|>Yes it is lolbadcode. I just thought I'd share a lol that was php even if php itself isn't the lol. Or something. Hey, things are crickets around here.<|eoopr|><|sor|>Not a PHP OO...
6
lolphp
MMauro94
5vyspq
<|soss|><|sot|>The font on the PHP website changes if the URL contains www<|eot|><|sost|>[without www](http://php.net/manual/en/function.preg-match.php) [with www](http://www.php.net/manual/en/function.preg-match.php)<|eost|><|eoss|><|endoftext|>
68
lolphp
frazzlet
de5zxf7
<|soss|><|sot|>The font on the PHP website changes if the URL contains www<|eot|><|sost|>[without www](http://php.net/manual/en/function.preg-match.php) [with www](http://www.php.net/manual/en/function.preg-match.php)<|eost|><|sor|>Identical here<|eor|><|eoss|><|endoftext|>
11
lolphp
rabidferret
de6a84a
<|soss|><|sot|>The font on the PHP website changes if the URL contains www<|eot|><|sost|>[without www](http://php.net/manual/en/function.preg-match.php) [with www](http://www.php.net/manual/en/function.preg-match.php)<|eost|><|sor|>With www just redirects to without for me.<|eor|><|sor|>Same here.<|eor|><|sor|>I'm gu...
7
lolphp
the_alias_of_andrea
de6n2gz
<|soss|><|sot|>The font on the PHP website changes if the URL contains www<|eot|><|sost|>[without www](http://php.net/manual/en/function.preg-match.php) [with www](http://www.php.net/manual/en/function.preg-match.php)<|eost|><|sor|>With www just redirects to without for me.<|eor|><|sor|>Same here.<|eor|><|sor|>I'm gu...
7
lolphp
rabidferret
de64qon
<|soss|><|sot|>The font on the PHP website changes if the URL contains www<|eot|><|sost|>[without www](http://php.net/manual/en/function.preg-match.php) [with www](http://www.php.net/manual/en/function.preg-match.php)<|eost|><|sor|>With www just redirects to without for me.<|eor|><|eoss|><|endoftext|>
6
lolphp
BilgeXA
de659px
<|soss|><|sot|>The font on the PHP website changes if the URL contains www<|eot|><|sost|>[without www](http://php.net/manual/en/function.preg-match.php) [with www](http://www.php.net/manual/en/function.preg-match.php)<|eost|><|sor|>LL<|eor|><|eoss|><|endoftext|>
5
lolphp
smog_alado
de6lj3y
<|soss|><|sot|>The font on the PHP website changes if the URL contains www<|eot|><|sost|>[without www](http://php.net/manual/en/function.preg-match.php) [with www](http://www.php.net/manual/en/function.preg-match.php)<|eost|><|sor|>Identical here<|eor|><|sor|>They were identical for me until I unblocked Javacript. No...
5
lolphp
the_alias_of_andrea
de6dqap
<|soss|><|sot|>The font on the PHP website changes if the URL contains www<|eot|><|sost|>[without www](http://php.net/manual/en/function.preg-match.php) [with www](http://www.php.net/manual/en/function.preg-match.php)<|eost|><|sor|>With www just redirects to without for me.<|eor|><|sor|>Same here.<|eor|><|sor|>I'm gu...
5
lolphp
throwaway-o
1nn3rx
<|sols|><|sot|>PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.<|eot|><|sol|>http://www.reddit.com/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag<|eol|><|eols|><|endoftext|>
65
lolphp
Sarcastinator
cckcsy6
<|sols|><|sot|>PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.<|eot|><|sol|>http://www.reddit.com/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag<|eol|><|sor|>I actually use this feature all the time. My CMS is merely a series of JPGs. This way if a client decides to rip of my ha...
17
lolphp
merreborn
cck958m
<|sols|><|sot|>PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.<|eot|><|sol|>http://www.reddit.com/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag<|eol|><|sor|>>In short, the attacker uploaded a malicious script disguised as an image; he then requested a page that contained this a...
13
lolphp
bart2019
cck5jb5
<|sols|><|sot|>PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.<|eot|><|sol|>http://www.reddit.com/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag<|eol|><|sor|>>In short, the attacker uploaded a malicious script disguised as an image; he then requested a page that contained this a...
12
lolphp
duskwuff
cck8j1l
<|sols|><|sot|>PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.<|eot|><|sol|>http://www.reddit.com/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag<|eol|><|sor|>That's why you *only* accept images after validating them with `getimagesize` or similar.<|eor|><|sor|>That doesn't help;...
10
lolphp
ajmarks
cck66z7
<|sols|><|sot|>PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.<|eot|><|sol|>http://www.reddit.com/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag<|eol|><|sor|>>In short, the attacker uploaded a malicious script disguised as an image; he then requested a page that contained this a...
10
lolphp
ezzatron
cck7csc
<|sols|><|sot|>PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.<|eot|><|sol|>http://www.reddit.com/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag<|eol|><|sor|>>In short, the attacker uploaded a malicious script disguised as an image; he then requested a page that contained this a...
9
lolphp
adambrenecki
cckkqvp
<|sols|><|sot|>PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.<|eot|><|sol|>http://www.reddit.com/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag<|eol|><|sor|>I thought it would be a lol bad config about Apache misinterpreting files with double extensions. This is nonetheless mor...
9
lolphp
youstolemyname
cckau6j
<|sols|><|sot|>PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.<|eot|><|sol|>http://www.reddit.com/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag<|eol|><|sor|>>In short, the attacker uploaded a malicious script disguised as an image; he then requested a page that contained this a...
6
lolphp
arand
cck60qg
<|sols|><|sot|>PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.<|eot|><|sol|>http://www.reddit.com/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag<|eol|><|sor|>>In short, the attacker uploaded a malicious script disguised as an image; he then requested a page that contained this a...
5
lolphp
koro666
19okxv
<|sols|><|sot|>strcmp() will return 0 on error, can be used to bypass authentication<|eot|><|sol|>http://danuxx.blogspot.ca/2013/03/unauthorized-access-bypassing-php-strcmp.html<|eol|><|eols|><|endoftext|>
68
lolphp
avar
c8q1gpj
<|sols|><|sot|>strcmp() will return 0 on error, can be used to bypass authentication<|eot|><|sol|>http://danuxx.blogspot.ca/2013/03/unauthorized-access-bypassing-php-strcmp.html<|eol|><|sor|>No it doesn't, it returns NULL, which compares as "0" with the "==" operator. Here it is returning 0: $ php -r 'var_dump(st...
32
lolphp
ladaghini
c8q5sc8
<|sols|><|sot|>strcmp() will return 0 on error, can be used to bypass authentication<|eot|><|sol|>http://danuxx.blogspot.ca/2013/03/unauthorized-access-bypassing-php-strcmp.html<|eol|><|sor|>Ready for today's stupid question? Why use strcmp($a,$b) == 0 instead of $a == $b ?<|eor|><|sor|>Because [`'92233720...
19
lolphp
PhantomRacer
c8q4lml
<|sols|><|sot|>strcmp() will return 0 on error, can be used to bypass authentication<|eot|><|sol|>http://danuxx.blogspot.ca/2013/03/unauthorized-access-bypassing-php-strcmp.html<|eol|><|sor|>Ready for today's stupid question? Why use strcmp($a,$b) == 0 instead of $a == $b ?<|eor|><|sor|>Why use $a == ...
12
lolphp
jeanlucpikachu
c8q4fo2
<|sols|><|sot|>strcmp() will return 0 on error, can be used to bypass authentication<|eot|><|sol|>http://danuxx.blogspot.ca/2013/03/unauthorized-access-bypassing-php-strcmp.html<|eol|><|sor|>Ready for today's stupid question? Why use strcmp($a,$b) == 0 instead of $a == $b ?<|eor|><|eols|><|endoftext|>
8
lolphp
EdiX
c8vq3hj
<|sols|><|sot|>strcmp() will return 0 on error, can be used to bypass authentication<|eot|><|sol|>http://danuxx.blogspot.ca/2013/03/unauthorized-access-bypassing-php-strcmp.html<|eol|><|sor|>The fact that a high level programming language with a string type has "strcmp" as a function is bewildering.<|eor|><|eols|><|end...
6
lolphp
Andryu67
c8q0ab2
<|sols|><|sot|>strcmp() will return 0 on error, can be used to bypass authentication<|eot|><|sol|>http://danuxx.blogspot.ca/2013/03/unauthorized-access-bypassing-php-strcmp.html<|eol|><|sor|>Ooh, I keep forgetting about that whole "do x[] to mess things up" deal... Thanks for the reminder.<|eor|><|eols|><|endoftext|>
5
lolphp
Sebbe
12ns15
<|sols|><|sot|>So, <?php </script> ?> is perfectly valid PHP<|eot|><|sol|>http://stackoverflow.com/q/13228306/79061<|eol|><|eols|><|endoftext|>
69
lolphp
kingguru
c6wob88
<|sols|><|sot|>So, <?php </script> ?> is perfectly valid PHP<|eot|><|sol|>http://stackoverflow.com/q/13228306/79061<|eol|><|sor|>I think the real WTF is that writing: <script language="php"> </script> Is valid PHP since the same tags are used for client side script, e.g. Javascript. Since writing PHP usually...
27
lolphp
kingguru
c6wro2y
<|sols|><|sot|>So, <?php </script> ?> is perfectly valid PHP<|eot|><|sol|>http://stackoverflow.com/q/13228306/79061<|eol|><|sor|>And? That's like laughing at the fact that int main(){} is valid c.<|eor|><|sor|>Not really. On the other hand, if something like this was valid C: int main() { /* stuff... */ ...
14
lolphp
Legolas-the-elf
c6wpbgb
<|sols|><|sot|>So, <?php </script> ?> is perfectly valid PHP<|eot|><|sol|>http://stackoverflow.com/q/13228306/79061<|eol|><|sor|>I think the real WTF is that writing: <script language="php"> </script> Is valid PHP since the same tags are used for client side script, e.g. Javascript. Since writing PHP usually...
11
lolphp
kingguru
c6wu9fg
<|sols|><|sot|>So, <?php </script> ?> is perfectly valid PHP<|eot|><|sol|>http://stackoverflow.com/q/13228306/79061<|eol|><|sor|>And? That's like laughing at the fact that int main(){} is valid c.<|eor|><|sor|>Not really. On the other hand, if something like this was valid C: int main() { /* stuff... */ ...
10
lolphp
kingguru
c6wur24
<|sols|><|sot|>So, <?php </script> ?> is perfectly valid PHP<|eot|><|sol|>http://stackoverflow.com/q/13228306/79061<|eol|><|sor|>And? That's like laughing at the fact that int main(){} is valid c.<|eor|><|sor|>Not really. On the other hand, if something like this was valid C: int main() { /* stuff... */ ...
10
lolphp
midir
c6wsib0
<|sols|><|sot|>So, <?php </script> ?> is perfectly valid PHP<|eot|><|sol|>http://stackoverflow.com/q/13228306/79061<|eol|><|sor|>I think the real WTF is that writing: <script language="php"> </script> Is valid PHP since the same tags are used for client side script, e.g. Javascript. Since writing PHP usually...
7
lolphp
kingguru
c6wsv25
<|sols|><|sot|>So, <?php </script> ?> is perfectly valid PHP<|eot|><|sol|>http://stackoverflow.com/q/13228306/79061<|eol|><|sor|>And? That's like laughing at the fact that int main(){} is valid c.<|eor|><|sor|>Not really. On the other hand, if something like this was valid C: int main() { /* stuff... */ ...
7
lolphp
kingguru
c6wpqwl
<|sols|><|sot|>So, <?php </script> ?> is perfectly valid PHP<|eot|><|sol|>http://stackoverflow.com/q/13228306/79061<|eol|><|sor|>I think the real WTF is that writing: <script language="php"> </script> Is valid PHP since the same tags are used for client side script, e.g. Javascript. Since writing PHP usually...
5
lolphp
tells_the_truth_an
4v6ibc
<|sols|><|sot|>Php is too hard for you. You should try Ruby.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4v65ss/your_first_question_should_be_should_we_use_a/d5vtqmo<|eol|><|eols|><|endoftext|>
63
lolphp
trout_fucker
d5vwof8
<|sols|><|sot|>Php is too hard for you. You should try Ruby.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4v65ss/your_first_question_should_be_should_we_use_a/d5vtqmo<|eol|><|sor|>From the video by Lerdorf: "You have a request that comes in and says 'Hey what database are you using' 'MySQL' 'ok let's load up th...
34
lolphp
killerstorm
d5w0c2r
<|sols|><|sot|>Php is too hard for you. You should try Ruby.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4v65ss/your_first_question_should_be_should_we_use_a/d5vtqmo<|eol|><|sor|>From the video by Lerdorf: "You have a request that comes in and says 'Hey what database are you using' 'MySQL' 'ok let's load up th...
25
lolphp
blueskin
d5wce8b
<|sols|><|sot|>Php is too hard for you. You should try Ruby.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4v65ss/your_first_question_should_be_should_we_use_a/d5vtqmo<|eol|><|sor|>That's like saying plague is better than dysentery.<|eor|><|eols|><|endoftext|>
22
lolphp
maweki
d5wh7ce
<|sols|><|sot|>Php is too hard for you. You should try Ruby.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4v65ss/your_first_question_should_be_should_we_use_a/d5vtqmo<|eol|><|sor|>I love how the bot that tells that the post has been linked from /r/lolphp has the most upvotes in this whole thread.<|eor|><|eols|><|...
18
lolphp
dagbrown
d5wn1c8
<|sols|><|sot|>Php is too hard for you. You should try Ruby.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4v65ss/your_first_question_should_be_should_we_use_a/d5vtqmo<|eol|><|sor|>> Alternatively, go play with Wordpress...probably closer to your skillset. WordPress is PHP to the power of PHP with a side order of...
17
lolphp
InconsiderateBastard
d5woey5
<|sols|><|sot|>Php is too hard for you. You should try Ruby.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4v65ss/your_first_question_should_be_should_we_use_a/d5vtqmo<|eol|><|sor|>From the video by Lerdorf: "You have a request that comes in and says 'Hey what database are you using' 'MySQL' 'ok let's load up th...
12
lolphp
00Davo
d5wy7h6
<|sols|><|sot|>Php is too hard for you. You should try Ruby.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4v65ss/your_first_question_should_be_should_we_use_a/d5vtqmo<|eol|><|sor|>They're not wrong. Programming in PHP is a lot harder than programming in Ruby, since it's littered with so many more beartraps and ed...
11
lolphp
00Davo
d5wy68i
<|sols|><|sot|>Php is too hard for you. You should try Ruby.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4v65ss/your_first_question_should_be_should_we_use_a/d5vtqmo<|eol|><|sor|>From the video by Lerdorf: "You have a request that comes in and says 'Hey what database are you using' 'MySQL' 'ok let's load up th...
7
lolphp
miasmic
d5wk4k9
<|sols|><|sot|>Php is too hard for you. You should try Ruby.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4v65ss/your_first_question_should_be_should_we_use_a/d5vtqmo<|eol|><|sor|>What a shitshow<|eor|><|eols|><|endoftext|>
5
lolphp
psychob
4uuk1o
<|sols|><|sot|>TIL: You can read from NULL, just like from regular array.<|eot|><|sol|>https://3v4l.org/C8mMJ<|eol|><|eols|><|endoftext|>
67
lolphp
feketegy
d5sy6dl
<|sols|><|sot|>TIL: You can read from NULL, just like from regular array.<|eot|><|sol|>https://3v4l.org/C8mMJ<|eol|><|sor|>This works: $null = null; var_dump($null['test']); No errors, but this gives you an undefined index error: $arr = []; var_dump($arr['test']); Also you can set array items on...
35
lolphp
shvelo
d5tib9h
<|sols|><|sot|>TIL: You can read from NULL, just like from regular array.<|eot|><|sol|>https://3v4l.org/C8mMJ<|eol|><|sor|>This works: $null = null; var_dump($null['test']); No errors, but this gives you an undefined index error: $arr = []; var_dump($arr['test']); Also you can set array items on...
14
lolphp
the_alias_of_andrea
d5to7qw
<|sols|><|sot|>TIL: You can read from NULL, just like from regular array.<|eot|><|sol|>https://3v4l.org/C8mMJ<|eol|><|sor|>PHP loves treating different kinds of things as being the same thing. That might be helpful, but it never does it consistently. And so.<|eor|><|eols|><|endoftext|>
10
lolphp
carlos_vini
d5ttrn0
<|sols|><|sot|>TIL: You can read from NULL, just like from regular array.<|eot|><|sol|>https://3v4l.org/C8mMJ<|eol|><|sor|>you can also read keys from bool and int, wtf?! https://3v4l.org/WCkTk Edit: do anobody know why it doesn't throw any error? $bool = true; var_dump($bool['test']); $int = 1; va...
8
lolphp
bart2019
d5txj5t
<|sols|><|sot|>TIL: You can read from NULL, just like from regular array.<|eot|><|sol|>https://3v4l.org/C8mMJ<|eol|><|sor|>I think that PHP treats null (and false) as nice initialisation values for arrays, so you can just set array items in it without warning, and then the array will just spring into life. In Perl tha...
7
lolphp
kovensky
d5u0ulg
<|sols|><|sot|>TIL: You can read from NULL, just like from regular array.<|eot|><|sol|>https://3v4l.org/C8mMJ<|eol|><|sor|>I think that PHP treats null (and false) as nice initialisation values for arrays, so you can just set array items in it without warning, and then the array will just spring into life. In Perl tha...
6
lolphp
feketegy
d5u4zwm
<|sols|><|sot|>TIL: You can read from NULL, just like from regular array.<|eot|><|sol|>https://3v4l.org/C8mMJ<|eol|><|sor|>This works: $null = null; var_dump($null['test']); No errors, but this gives you an undefined index error: $arr = []; var_dump($arr['test']); Also you can set array items on...
5
lolphp
valinor4
s64mm
<|sols|><|sot|>'9223372036854775807' == '9223372036854775808'<|eot|><|sol|>https://bugs.php.net/bug.php?id=54547<|eol|><|eols|><|endoftext|>
66
lolphp
Rotten194
c4bkny7
<|sols|><|sot|>'9223372036854775807' == '9223372036854775808'<|eot|><|sol|>https://bugs.php.net/bug.php?id=54547<|eol|><|sor|>The best part: >What you see here in this issue is one of the edge cases (how often do you use large numbers in PHP?) where it does not work well. "Guys it's ok, just don't use large numbers!"...
18
lolphp
audaxxx
c4bghwd
<|sols|><|sot|>'9223372036854775807' == '9223372036854775808'<|eot|><|sol|>https://bugs.php.net/bug.php?id=54547<|eol|><|sor|>From that same page... "@Jeff: You have to understand in PHP 1, 1.0 and "1.0" all are equivalent (in most situations). That's by design."<|eor|><|sor|>And may I add: This design sucks.<|eor|><|...
12
lolphp
gwynjudd
c4biu79
<|sols|><|sot|>'9223372036854775807' == '9223372036854775808'<|eot|><|sol|>https://bugs.php.net/bug.php?id=54547<|eol|><|sor|>From that same page... "@Jeff: You have to understand in PHP 1, 1.0 and "1.0" all are equivalent (in most situations). That's by design."<|eor|><|sor|>And may I add: This design sucks.<|eor|><|...
10
lolphp
jibbist
c4bfgir
<|sols|><|sot|>'9223372036854775807' == '9223372036854775808'<|eot|><|sol|>https://bugs.php.net/bug.php?id=54547<|eol|><|sor|>From that same page... "@Jeff: You have to understand in PHP 1, 1.0 and "1.0" all are equivalent (in most situations). That's by design."<|eor|><|eols|><|endoftext|>
6
lolphp
ealf
c4bj83u
<|sols|><|sot|>'9223372036854775807' == '9223372036854775808'<|eot|><|sol|>https://bugs.php.net/bug.php?id=54547<|eol|><|sor|>Best part: [all the people defending this in /r/programming](http://www.reddit.com/r/programming/comments/s6477/9223372036854775807_9223372036854775808/)<|eor|><|eols|><|endoftext|>
6
lolphp
barubary
tqze5w
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
64
lolphp
barubary
i2kujw8
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
26
lolphp
FruitdealerF
i2kjvuq
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
16
lolphp
barubary
i2nhiif
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
12
lolphp
wchill
i2l2xws
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
12
lolphp
IluTov
i2mg44m
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
10
lolphp
Sarcastinator
i2kskza
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
9
lolphp
wchill
i2l7s7d
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
7
lolphp
GoTriggerYourself
i2kdseu
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
6
lolphp
Sarcastinator
i2pay7u
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
6
lolphp
helloworder
i2mkq2z
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
5
lolphp
barubary
i2o0xhe
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
5
lolphp
barubary
i2l7ixa
<|soss|><|sot|>using generators can yield surprises<|eot|><|sost|>You may have heard that PHP supports [generator functions](https://www.php.net/manual/en/language.generators.syntax.php) that can yield multiple values. (Behind the scenes a generator function returns an iterator object that executes slices of the functi...
5
lolphp
barubary
dfj4nm
<|soss|><|sot|>What even is variable interpolation<|eot|><|sost|> <?php define('foo', 'bar'); $foo = array('yes'); $b = 'no'; echo "r1: $foo[0]\n"; echo "r2: ${foo[0]}\n"; echo "r3: ${ foo[0]}\n"; echo "r4: ${foo[0] }\n"; echo "r5: ${foo [0]}\n"; echo "r6: ${foo[0 ]}\n"; ...
66
lolphp
barubary
f33uvob
<|soss|><|sot|>What even is variable interpolation<|eot|><|sost|> <?php define('foo', 'bar'); $foo = array('yes'); $b = 'no'; echo "r1: $foo[0]\n"; echo "r2: ${foo[0]}\n"; echo "r3: ${ foo[0]}\n"; echo "r4: ${foo[0] }\n"; echo "r5: ${foo [0]}\n"; echo "r6: ${foo[0 ]}\n"; ...
30
lolphp
barubary
f33w5po
<|soss|><|sot|>What even is variable interpolation<|eot|><|sost|> <?php define('foo', 'bar'); $foo = array('yes'); $b = 'no'; echo "r1: $foo[0]\n"; echo "r2: ${foo[0]}\n"; echo "r3: ${ foo[0]}\n"; echo "r4: ${foo[0] }\n"; echo "r5: ${foo [0]}\n"; echo "r6: ${foo[0 ]}\n"; ...
22
lolphp
Regimardyl
f33svcy
<|soss|><|sot|>What even is variable interpolation<|eot|><|sost|> <?php define('foo', 'bar'); $foo = array('yes'); $b = 'no'; echo "r1: $foo[0]\n"; echo "r2: ${foo[0]}\n"; echo "r3: ${ foo[0]}\n"; echo "r4: ${foo[0] }\n"; echo "r5: ${foo [0]}\n"; echo "r6: ${foo[0 ]}\n"; ...
14