subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
barubary
c7j8j5s
<|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...
6
lolphp
iopq
c8284or
<|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...
5
lolphp
weirdasianfaces
cn9xdn
<|sols|><|sot|>mb_check_encoding() will decode then re-encode the given string as the given encoding, then check for errors, instead of actually checking the character encoding<|eot|><|sol|>https://twitter.com/marcan42/status/1159002716867350531<|eol|><|eols|><|endoftext|>
44
lolphp
nikic
ew8a7zd
<|sols|><|sot|>mb_check_encoding() will decode then re-encode the given string as the given encoding, then check for errors, instead of actually checking the character encoding<|eot|><|sol|>https://twitter.com/marcan42/status/1159002716867350531<|eol|><|soopr|>I think this is the corresponding code in php-src: https://...
16
lolphp
buroll
ew8vg89
<|sols|><|sot|>mb_check_encoding() will decode then re-encode the given string as the given encoding, then check for errors, instead of actually checking the character encoding<|eot|><|sol|>https://twitter.com/marcan42/status/1159002716867350531<|eol|><|sor|>Best reply on the tweet: It's alright, you can use mb_real_c...
15
lolphp
weirdasianfaces
ew865uw
<|sols|><|sot|>mb_check_encoding() will decode then re-encode the given string as the given encoding, then check for errors, instead of actually checking the character encoding<|eot|><|sol|>https://twitter.com/marcan42/status/1159002716867350531<|eol|><|soopr|>I think this is the corresponding code in php-src: https://...
9
lolphp
m1el
4h40cq
<|sols|><|sot|>usesomesillystringforsalt<|eot|><|sol|>https://github.com/search?q=usesomesillystringforsalt&type=Code&utf8=%E2%9C%93<|eol|><|eols|><|endoftext|>
39
lolphp
berkes
d2n8sz6
<|sols|><|sot|>usesomesillystringforsalt<|eot|><|sol|>https://github.com/search?q=usesomesillystringforsalt&type=Code&utf8=%E2%9C%93<|eol|><|sor|>A few are genuinly stupid. But the majority are unit tests, documentation and other tests. Where it make sense to use the same string as in the official API documentation.<...
30
lolphp
DoctorWaluigiTime
d2nhxoa
<|sols|><|sot|>usesomesillystringforsalt<|eot|><|sol|>https://github.com/search?q=usesomesillystringforsalt&type=Code&utf8=%E2%9C%93<|eol|><|soopr|>Reason this is lolphp: people copy-pasting the code PHP documentation, making password hashing broken. php crypt: http://php.net/manual/en/function.crypt.php if (CRYP...
17
lolphp
shvelo
d2nkowo
<|sols|><|sot|>usesomesillystringforsalt<|eot|><|sol|>https://github.com/search?q=usesomesillystringforsalt&type=Code&utf8=%E2%9C%93<|eol|><|sor|>>$crypt = crypt($password, '$2a$25$usesomesillystringforsalt$') . "<br>"; return $crypt; I love how it includes the <br><|eor|><|eols|><|endoftext|>
16
lolphp
m1el
d2n75hp
<|sols|><|sot|>usesomesillystringforsalt<|eot|><|sol|>https://github.com/search?q=usesomesillystringforsalt&type=Code&utf8=%E2%9C%93<|eol|><|soopr|>Reason this is lolphp: people copy-pasting the code PHP documentation, making password hashing broken. php crypt: http://php.net/manual/en/function.crypt.php if (CRYP...
15
lolphp
RichardEyre
d2o9tpw
<|sols|><|sot|>usesomesillystringforsalt<|eot|><|sol|>https://github.com/search?q=usesomesillystringforsalt&type=Code&utf8=%E2%9C%93<|eol|><|sor|>A few are genuinly stupid. But the majority are unit tests, documentation and other tests. Where it make sense to use the same string as in the official API documentation.<...
7
lolphp
berkes
d2oa4ky
<|sols|><|sot|>usesomesillystringforsalt<|eot|><|sol|>https://github.com/search?q=usesomesillystringforsalt&type=Code&utf8=%E2%9C%93<|eol|><|sor|>A few are genuinly stupid. But the majority are unit tests, documentation and other tests. Where it make sense to use the same string as in the official API documentation.<...
6
lolphp
picklemanjaro
d2rjomz
<|sols|><|sot|>usesomesillystringforsalt<|eot|><|sol|>https://github.com/search?q=usesomesillystringforsalt&type=Code&utf8=%E2%9C%93<|eol|><|sor|>A few are genuinly stupid. But the majority are unit tests, documentation and other tests. Where it make sense to use the same string as in the official API documentation.<...
5
lolphp
gibranois
3zikur
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|eols|><|endoftext|>
43
lolphp
maweki
cymlql9
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>> what sort of jurisdiction would these **cultural gestapo** have? Yeah, tone of discussion seems already fine to me. No n...
31
lolphp
McGlockenshire
cymj2yr
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>What the hell happened in there? > This CoC doesn't create any more fairness in the process - it only codifies what many h...
31
lolphp
Jonny_Axehandle
cynbqy5
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>Similar things have been said about Github's CoC, so i wouldn't see this specifically as a lolphp, even if crazy PHP develo...
29
lolphp
Schmittfried
cymm486
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>Similar things have been said about Github's CoC, so i wouldn't see this specifically as a lolphp, even if crazy PHP develo...
28
lolphp
MrJohz
cymu6o6
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>> what sort of jurisdiction would these **cultural gestapo** have? Yeah, tone of discussion seems already fine to me. No n...
18
lolphp
the_alias_of_andrea
cyn3jtm
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>Similar things have been said about Github's CoC, so i wouldn't see this specifically as a lolphp, even if crazy PHP develo...
18
lolphp
tdammers
cyn7u1s
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>Par for the course. Messy fucked-up language, messy fucked-up ecosystem, messy fucked-up community - what else would you ex...
11
lolphp
freebsdgirl
cypl789
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>Similar things have been said about Github's CoC, so i wouldn't see this specifically as a lolphp, even if crazy PHP develo...
10
lolphp
tdammers
cymlyuz
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>Par for the course. Messy fucked-up language, messy fucked-up ecosystem, messy fucked-up community - what else would you ex...
9
lolphp
the_alias_of_andrea
cynex9l
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>If /r/PHP is representative of the PHP community as a whole, they are in dire need of a code of conduct. But given the comm...
9
lolphp
tdammers
cymvop0
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>Par for the course. Messy fucked-up language, messy fucked-up ecosystem, messy fucked-up community - what else would you ex...
9
lolphp
ZiggyTheHamster
cyn5oqm
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>[removed]<|eor|><|sor|>Why in the everloving fuck do you care if a person's birth gender, gender identity, and/or gender ex...
8
lolphp
McGlockenshire
cypqv7c
<|sols|><|sot|>Grap your popcorns for a bit of PhpDrama (And hopefully a way for a lot more of it)<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3zhapd/rfc_adopt_code_of_conduct/<|eol|><|sor|>Similar things have been said about Github's CoC, so i wouldn't see this specifically as a lolphp, even if crazy PHP develo...
8
lolphp
gibranois
3ta3ql
<|sols|><|sot|>Strange DateTime behaviour in PHP<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3t5noq/strange_datetime_behaviour/<|eol|><|eols|><|endoftext|>
40
lolphp
terrorobe
2h9nhp
<|sols|><|sot|>Optimizing opcodes in a library targeted at operating with network latencies and timeouts<|eot|><|sol|>https://github.com/igorw/retry/issues/3<|eol|><|eols|><|endoftext|>
43
lolphp
idontlikethisname
ckqp2yo
<|sols|><|sot|>Optimizing opcodes in a library targeted at operating with network latencies and timeouts<|eot|><|sol|>https://github.com/igorw/retry/issues/3<|eol|><|sor|>This guy knows his compilers. Which makes me wonder why in hell he'd choose php for a time critical app.<|eor|><|eols|><|endoftext|>
19
lolphp
ioctl79
ckqvy65
<|sols|><|sot|>Optimizing opcodes in a library targeted at operating with network latencies and timeouts<|eot|><|sol|>https://github.com/igorw/retry/issues/3<|eol|><|sor|>WTB: Any profiling whatsoever. Don't be "clever" without measuring what it gets you. [Edit] It is also a joke that this tiny snippet of code appare...
15
lolphp
dehrmann
ckr8u29
<|sols|><|sot|>Optimizing opcodes in a library targeted at operating with network latencies and timeouts<|eot|><|sol|>https://github.com/igorw/retry/issues/3<|eol|><|sor|>This guy knows his compilers. Which makes me wonder why in hell he'd choose php for a time critical app.<|eor|><|sor|>> This guy knows his compilers ...
13
lolphp
urquan
ckr0d2x
<|sols|><|sot|>Optimizing opcodes in a library targeted at operating with network latencies and timeouts<|eot|><|sol|>https://github.com/igorw/retry/issues/3<|eol|><|sor|>I'm pretty sure that's a joke project.<|eor|><|eols|><|endoftext|>
9
lolphp
chazzeromus
ckqtv2g
<|sols|><|sot|>Optimizing opcodes in a library targeted at operating with network latencies and timeouts<|eot|><|sol|>https://github.com/igorw/retry/issues/3<|eol|><|sor|>This guy knows his compilers. Which makes me wonder why in hell he'd choose php for a time critical app.<|eor|><|sor|>Or maybe one day he was curious...
8
lolphp
ioctl79
ckrx93i
<|sols|><|sot|>Optimizing opcodes in a library targeted at operating with network latencies and timeouts<|eot|><|sol|>https://github.com/igorw/retry/issues/3<|eol|><|sor|>WTB: Any profiling whatsoever. Don't be "clever" without measuring what it gets you. [Edit] It is also a joke that this tiny snippet of code appare...
7
lolphp
vita10gy
ckr9z1c
<|sols|><|sot|>Optimizing opcodes in a library targeted at operating with network latencies and timeouts<|eot|><|sol|>https://github.com/igorw/retry/issues/3<|eol|><|sor|>WTB: Any profiling whatsoever. Don't be "clever" without measuring what it gets you. [Edit] It is also a joke that this tiny snippet of code appare...
6
lolphp
vita10gy
ckr9xtg
<|sols|><|sot|>Optimizing opcodes in a library targeted at operating with network latencies and timeouts<|eot|><|sol|>https://github.com/igorw/retry/issues/3<|eol|><|sor|>This guy knows his compilers. Which makes me wonder why in hell he'd choose php for a time critical app.<|eor|><|sor|>I don't think it is a time crit...
6
lolphp
aleczapka
1q1bw0
<|soss|><|sot|>Booleans can be changed within a namespace<|eot|><|sost|>This is hilarious: namespace Foo; define('Foo\\true', false); if (true) { echo "TRUE"; } else { echo "FALSE!!!"; } Example in action: http://3v4l.org/TpeZO<|eost|><|eoss|><|endoftext|>
39
lolphp
Serialk
cd85vjj
<|soss|><|sot|>Booleans can be changed within a namespace<|eot|><|sost|>This is hilarious: namespace Foo; define('Foo\\true', false); if (true) { echo "TRUE"; } else { echo "FALSE!!!"; } Example in action: http://3v4l.org/TpeZO<|eost|><|sor|>Redefining True and False are com...
26
lolphp
ajmarks
cd86a9s
<|soss|><|sot|>Booleans can be changed within a namespace<|eot|><|sost|>This is hilarious: namespace Foo; define('Foo\\true', false); if (true) { echo "TRUE"; } else { echo "FALSE!!!"; } Example in action: http://3v4l.org/TpeZO<|eost|><|sor|>I also like that this yields TRUE...
12
lolphp
djsumdog
cd8h2zh
<|soss|><|sot|>Booleans can be changed within a namespace<|eot|><|sost|>This is hilarious: namespace Foo; define('Foo\\true', false); if (true) { echo "TRUE"; } else { echo "FALSE!!!"; } Example in action: http://3v4l.org/TpeZO<|eost|><|sor|>Redefining True and False are com...
11
lolphp
Jonno_FTW
cd8s0o0
<|soss|><|sot|>Booleans can be changed within a namespace<|eot|><|sost|>This is hilarious: namespace Foo; define('Foo\\true', false); if (true) { echo "TRUE"; } else { echo "FALSE!!!"; } Example in action: http://3v4l.org/TpeZO<|eost|><|sor|>Redefining True and False are com...
6
lolphp
aleczapka
cd924b5
<|soss|><|sot|>Booleans can be changed within a namespace<|eot|><|sost|>This is hilarious: namespace Foo; define('Foo\\true', false); if (true) { echo "TRUE"; } else { echo "FALSE!!!"; } Example in action: http://3v4l.org/TpeZO<|eost|><|sor|>Reminds me of the joke were you r...
5
lolphp
vytah
cd8u6wj
<|soss|><|sot|>Booleans can be changed within a namespace<|eot|><|sost|>This is hilarious: namespace Foo; define('Foo\\true', false); if (true) { echo "TRUE"; } else { echo "FALSE!!!"; } Example in action: http://3v4l.org/TpeZO<|eost|><|sor|>Redefining True and False are com...
5
lolphp
vytah
1pvf3h
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|eols|><|endoftext|>
39
lolphp
ajmarks
cd6grv5
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|sor|>From the manual: >This function does not generate cryptographically secure values, and should not be used for cryptographic purposes. If you need a cryptographi...
30
lolphp
abadidea
cd6ic2h
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|sor|>From the manual: >This function does not generate cryptographically secure values, and should not be used for cryptographic purposes. If you need a cryptographi...
19
lolphp
ajmarks
cd6il1e
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|sor|>From the manual: >This function does not generate cryptographically secure values, and should not be used for cryptographic purposes. If you need a cryptographi...
19
lolphp
suspiciously_calm
cd6pv56
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|sor|>From the manual: >This function does not generate cryptographically secure values, and should not be used for cryptographic purposes. If you need a cryptographi...
18
lolphp
KFCConspiracy
cd6hkoa
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|sor|>This isn't a big deal because it's documented. There are plenty of random functions out there in other languages that shouldn't be used for this purpose. For ...
16
lolphp
abadidea
cd6icxx
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|sor|>I'll just leave this here, because I probably shouldn't have three links on the front page of the subreddit at the same time http://phpmanualmasterpieces.tumb...
12
lolphp
xiongchiamiov
cd6jpdj
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|sor|>This isn't a big deal because it's documented. There are plenty of random functions out there in other languages that shouldn't be used for this purpose. For ...
10
lolphp
KFCConspiracy
cd6itl4
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|sor|>This isn't a big deal because it's documented. There are plenty of random functions out there in other languages that shouldn't be used for this purpose. For ...
8
lolphp
phoshi
cd75ouh
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|sor|>This isn't a big deal because it's documented. There are plenty of random functions out there in other languages that shouldn't be used for this purpose. For ...
7
lolphp
bart2019
cd6o4ej
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|sor|>This isn't a big deal because it's documented. There are plenty of random functions out there in other languages that shouldn't be used for this purpose. For ...
5
lolphp
Serialk
cd6viic
<|sols|><|sot|>PHP's mt_rand() random number generating function has been cracked<|eot|><|sol|>http://www.openwall.com/lists/announce/2013/11/04/1<|eol|><|sor|>From the manual: >This function does not generate cryptographically secure values, and should not be used for cryptographic purposes. If you need a cryptographi...
5
lolphp
Serialk
1jfkrg
<|sols|><|sot|>serialize() documentation: pick your favorite comment<|eot|><|sol|>http://php.net/manual/en/function.serialize.php<|eol|><|eols|><|endoftext|>
39
lolphp
Serialk
cbe5quf
<|sols|><|sot|>serialize() documentation: pick your favorite comment<|eot|><|sol|>http://php.net/manual/en/function.serialize.php<|eol|><|soopr|>My personal best-of: * "Warning: on 64 bits machines, if you use a long string only composed of numbers as a key in an array and serialize/unserialize it, you can run into p...
36
lolphp
farsightxr20
cbel68c
<|sols|><|sot|>serialize() documentation: pick your favorite comment<|eot|><|sol|>http://php.net/manual/en/function.serialize.php<|eol|><|soopr|>My personal best-of: * "Warning: on 64 bits machines, if you use a long string only composed of numbers as a key in an array and serialize/unserialize it, you can run into p...
27
lolphp
audaxxx
cbe6vse
<|sols|><|sot|>serialize() documentation: pick your favorite comment<|eot|><|sol|>http://php.net/manual/en/function.serialize.php<|eol|><|sor|>My best of serialize is: unserialize(serialize(new DateTimeZone("UTC")))->getName(); -> Warning: DateTimeZone::getName(): The DateTimeZone object has not been correc...
26
lolphp
kasnalin
cbe7r9i
<|sols|><|sot|>serialize() documentation: pick your favorite comment<|eot|><|sol|>http://php.net/manual/en/function.serialize.php<|eol|><|soopr|>My personal best-of: * "Warning: on 64 bits machines, if you use a long string only composed of numbers as a key in an array and serialize/unserialize it, you can run into p...
13
lolphp
InconsiderateBastard
cbe6xcj
<|sols|><|sot|>serialize() documentation: pick your favorite comment<|eot|><|sol|>http://php.net/manual/en/function.serialize.php<|eol|><|sor|>This was my favorite, I haven't tested it yet: > Oddly, if you serialize a class that was previously unserialized, the class of the variable changes to string...<|eor|><|eols|>...
10
lolphp
Pandalism
ya8i6
<|sols|><|sot|>The default PHP error messages are vulnerable to XSS? Doesn't matter, people that turn on display_errors are stupid anyway!<|eot|><|sol|>https://bugs.php.net/bug.php?id=55139<|eol|><|eols|><|endoftext|>
41
lolphp
ealf
c5tsw0g
<|sols|><|sot|>The default PHP error messages are vulnerable to XSS? Doesn't matter, people that turn on display_errors are stupid anyway!<|eot|><|sol|>https://bugs.php.net/bug.php?id=55139<|eol|><|sor|>Im all for a bit of LOLPHP, but I side with the devs on this one. <|eor|><|sor|>Look at [this code](https://github.co...
27
lolphp
audaxxx
c5trl7n
<|sols|><|sot|>The default PHP error messages are vulnerable to XSS? Doesn't matter, people that turn on display_errors are stupid anyway!<|eot|><|sol|>https://bugs.php.net/bug.php?id=55139<|eol|><|sor|>Im all for a bit of LOLPHP, but I side with the devs on this one. <|eor|><|sor|>It is a bug though. <|eor|><|eols|><|...
10
lolphp
sumdog
c5uf177
<|sols|><|sot|>The default PHP error messages are vulnerable to XSS? Doesn't matter, people that turn on display_errors are stupid anyway!<|eot|><|sol|>https://bugs.php.net/bug.php?id=55139<|eol|><|sor|>[deleted]<|eor|><|sor|>>display_errors is enabled, which means you renounce any claims of running secure server. Thi...
7
lolphp
ealf
c61c5ny
<|sols|><|sot|>The default PHP error messages are vulnerable to XSS? Doesn't matter, people that turn on display_errors are stupid anyway!<|eot|><|sol|>https://bugs.php.net/bug.php?id=55139<|eol|><|sor|>Im all for a bit of LOLPHP, but I side with the devs on this one. <|eor|><|sor|>Look at [this code](https://github.co...
7
lolphp
Pandalism
c5ttdef
<|sols|><|sot|>The default PHP error messages are vulnerable to XSS? Doesn't matter, people that turn on display_errors are stupid anyway!<|eot|><|sol|>https://bugs.php.net/bug.php?id=55139<|eol|><|soopr|>[More info](https://nealpoole.com/blog/2011/08/cross-site-scripting-via-error-reporting-notices-in-php/)<|eoopr|><|...
5
lolphp
midir
s6kqy
<|soss|><|sot|>When references go bad<|eot|><|sost|>Consider this example: $a = array(0 => 'hello'); // ... noeffect($a); print_r($a); function noeffect($array) { $array[0] = 'something completely different'; } Output: Array ( [0] => hello ) Because the array is passed to noeffect by value, its ...
39
lolphp
zenojevski
c4bmhjy
<|soss|><|sot|>When references go bad<|eot|><|sost|>Consider this example: $a = array(0 => 'hello'); // ... noeffect($a); print_r($a); function noeffect($array) { $array[0] = 'something completely different'; } Output: Array ( [0] => hello ) Because the array is passed to noeffect by value, its ...
7
lolphp
throwaway-o
jxmlk
<|sols|><|sot|>More PHP LOL: release 5.3.8 to fix crypt() bug, break a shitton of other things. It's like they're on LSD.<|eot|><|sol|>https://bugs.php.net/bug.php?id=55475<|eol|><|eols|><|endoftext|>
41
lolphp
kinghfb
c2fzf70
<|sols|><|sot|>More PHP LOL: release 5.3.8 to fix crypt() bug, break a shitton of other things. It's like they're on LSD.<|eot|><|sol|>https://bugs.php.net/bug.php?id=55475<|eol|><|sor|>Normally I play devil's advocate and hassle people posting in this forum. But holy hell what are these clowns doing? Doesn't anyone r...
15
lolphp
i-am-am-nice-really
c2fzhhc
<|sols|><|sot|>More PHP LOL: release 5.3.8 to fix crypt() bug, break a shitton of other things. It's like they're on LSD.<|eot|><|sol|>https://bugs.php.net/bug.php?id=55475<|eol|><|sor|>Normally I play devil's advocate and hassle people posting in this forum. But holy hell what are these clowns doing? Doesn't anyone r...
14
lolphp
sloat
c2g05ed
<|sols|><|sot|>More PHP LOL: release 5.3.8 to fix crypt() bug, break a shitton of other things. It's like they're on LSD.<|eot|><|sol|>https://bugs.php.net/bug.php?id=55475<|eol|><|sor|>Normally I play devil's advocate and hassle people posting in this forum. But holy hell what are these clowns doing? Doesn't anyone r...
6
lolphp
chishiki
mflmgm
<|sols|><|sot|>maybe the git server was a php server<|eot|><|sol|>https://news-web.php.net/php.internals/113838<|eol|><|eols|><|endoftext|>
43
lolphp
sproingie
gspybyc
<|sols|><|sot|>maybe the git server was a php server<|eot|><|sol|>https://news-web.php.net/php.internals/113838<|eol|><|sor|>Let's hope they turn the "require signed commits" flag on github.<|eor|><|sor|>[deleted]<|eor|><|sor|>Linus is a smart guy, but when he's ignorant about something, he trumpets that ignorance loud...
14
lolphp
sproingie
gsosude
<|sols|><|sot|>maybe the git server was a php server<|eot|><|sol|>https://news-web.php.net/php.internals/113838<|eol|><|sor|>Let's hope they turn the "require signed commits" flag on github.<|eor|><|eols|><|endoftext|>
12
lolphp
Smooth-Zucchini4923
gspg5so
<|sols|><|sot|>maybe the git server was a php server<|eot|><|sol|>https://news-web.php.net/php.internals/113838<|eol|><|sor|>The code in question: if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global_str(ZEND_STRL("_SERVER"))) && (enc = zend_hash_str_find(Z_ARRVAL(PG(http_glo...
9
lolphp
elcapitanoooo
gsp4bdh
<|sols|><|sot|>maybe the git server was a php server<|eot|><|sol|>https://news-web.php.net/php.internals/113838<|eol|><|sor|>There was an other thread regarding this. Now the question is: how much malicious code has already been accepted before this was disclosed? Not sure when the php git was hacked, but in theory it ...
7
lolphp
IluTov
gsqoqti
<|sols|><|sot|>maybe the git server was a php server<|eot|><|sol|>https://news-web.php.net/php.internals/113838<|eol|><|sor|>There was an other thread regarding this. Now the question is: how much malicious code has already been accepted before this was disclosed? Not sure when the php git was hacked, but in theory it ...
7
lolphp
barubary
dfw1ln
<|soss|><|sot|>PHP is case (in)sensitive<|eot|><|sost|>We all know about case sensitive variables, case insensitive functions, etc. This one is new. What if you want to embed a character in a string by specifying its hex code? [The manual explains](https://www.php.net/manual/en/language.types.string.php#language.types...
40
lolphp
nikic
f367l1h
<|soss|><|sot|>PHP is case (in)sensitive<|eot|><|sost|>We all know about case sensitive variables, case insensitive functions, etc. This one is new. What if you want to embed a character in a string by specifying its hex code? [The manual explains](https://www.php.net/manual/en/language.types.string.php#language.types...
10
lolphp
Yarhj
f375e2r
<|soss|><|sot|>PHP is case (in)sensitive<|eot|><|sost|>We all know about case sensitive variables, case insensitive functions, etc. This one is new. What if you want to embed a character in a string by specifying its hex code? [The manual explains](https://www.php.net/manual/en/language.types.string.php#language.types...
10
lolphp
the_alias_of_andrea
f398qz0
<|soss|><|sot|>PHP is case (in)sensitive<|eot|><|sost|>We all know about case sensitive variables, case insensitive functions, etc. This one is new. What if you want to embed a character in a string by specifying its hex code? [The manual explains](https://www.php.net/manual/en/language.types.string.php#language.types...
8
lolphp
mikeputerbaugh
f37lxau
<|soss|><|sot|>PHP is case (in)sensitive<|eot|><|sost|>We all know about case sensitive variables, case insensitive functions, etc. This one is new. What if you want to embed a character in a string by specifying its hex code? [The manual explains](https://www.php.net/manual/en/language.types.string.php#language.types...
7
lolphp
EmperorArthur
f36ploc
<|soss|><|sot|>PHP is case (in)sensitive<|eot|><|sost|>We all know about case sensitive variables, case insensitive functions, etc. This one is new. What if you want to embed a character in a string by specifying its hex code? [The manual explains](https://www.php.net/manual/en/language.types.string.php#language.types...
6
lolphp
EmperorArthur
f395jqj
<|soss|><|sot|>PHP is case (in)sensitive<|eot|><|sost|>We all know about case sensitive variables, case insensitive functions, etc. This one is new. What if you want to embed a character in a string by specifying its hex code? [The manual explains](https://www.php.net/manual/en/language.types.string.php#language.types...
6
lolphp
bart2019
96rc1x
<|soss|><|sot|>Comparing the precedence rules of the ternary ? : operators between perl, Javascript and PHP<|eot|><|sost|>Javascript: (console window in a browser): 'a'?'b':'c'?'d':'e' b perl: perl -le "print 'a'?'b':'c'?'d':'e';" b PHP: php -r "echo 'a'?'b':'c'?'d':'e';" d Apparently...
40
lolphp
Inityx
e43i3ue
<|soss|><|sot|>Comparing the precedence rules of the ternary ? : operators between perl, Javascript and PHP<|eot|><|sost|>Javascript: (console window in a browser): 'a'?'b':'c'?'d':'e' b perl: perl -le "print 'a'?'b':'c'?'d':'e';" b PHP: php -r "echo 'a'?'b':'c'?'d':'e';" d Apparently...
25
lolphp
duskwuff
e43kz1l
<|soss|><|sot|>Comparing the precedence rules of the ternary ? : operators between perl, Javascript and PHP<|eot|><|sost|>Javascript: (console window in a browser): 'a'?'b':'c'?'d':'e' b perl: perl -le "print 'a'?'b':'c'?'d':'e';" b PHP: php -r "echo 'a'?'b':'c'?'d':'e';" d Apparently...
21
lolphp
bart2019
e43ce51
<|soss|><|sot|>Comparing the precedence rules of the ternary ? : operators between perl, Javascript and PHP<|eot|><|sost|>Javascript: (console window in a browser): 'a'?'b':'c'?'d':'e' b perl: perl -le "print 'a'?'b':'c'?'d':'e';" b PHP: php -r "echo 'a'?'b':'c'?'d':'e';" d Apparently...
11
lolphp
shitcanz
e442q01
<|soss|><|sot|>Comparing the precedence rules of the ternary ? : operators between perl, Javascript and PHP<|eot|><|sost|>Javascript: (console window in a browser): 'a'?'b':'c'?'d':'e' b perl: perl -le "print 'a'?'b':'c'?'d':'e';" b PHP: php -r "echo 'a'?'b':'c'?'d':'e';" d Apparently...
10
lolphp
shitcanz
e43ov3j
<|soss|><|sot|>Comparing the precedence rules of the ternary ? : operators between perl, Javascript and PHP<|eot|><|sost|>Javascript: (console window in a browser): 'a'?'b':'c'?'d':'e' b perl: perl -le "print 'a'?'b':'c'?'d':'e';" b PHP: php -r "echo 'a'?'b':'c'?'d':'e';" d Apparently...
10
lolphp
pingpong
e444sz3
<|soss|><|sot|>Comparing the precedence rules of the ternary ? : operators between perl, Javascript and PHP<|eot|><|sost|>Javascript: (console window in a browser): 'a'?'b':'c'?'d':'e' b perl: perl -le "print 'a'?'b':'c'?'d':'e';" b PHP: php -r "echo 'a'?'b':'c'?'d':'e';" d Apparently...
9
lolphp
duskwuff
e43m15s
<|soss|><|sot|>Comparing the precedence rules of the ternary ? : operators between perl, Javascript and PHP<|eot|><|sost|>Javascript: (console window in a browser): 'a'?'b':'c'?'d':'e' b perl: perl -le "print 'a'?'b':'c'?'d':'e';" b PHP: php -r "echo 'a'?'b':'c'?'d':'e';" d Apparently...
9
lolphp
duskwuff
e43qb04
<|soss|><|sot|>Comparing the precedence rules of the ternary ? : operators between perl, Javascript and PHP<|eot|><|sost|>Javascript: (console window in a browser): 'a'?'b':'c'?'d':'e' b perl: perl -le "print 'a'?'b':'c'?'d':'e';" b PHP: php -r "echo 'a'?'b':'c'?'d':'e';" d Apparently...
6
lolphp
iheartrms
e43l2om
<|soss|><|sot|>Comparing the precedence rules of the ternary ? : operators between perl, Javascript and PHP<|eot|><|sost|>Javascript: (console window in a browser): 'a'?'b':'c'?'d':'e' b perl: perl -le "print 'a'?'b':'c'?'d':'e';" b PHP: php -r "echo 'a'?'b':'c'?'d':'e';" d Apparently...
5
lolphp
Takeoded
e45zuoc
<|soss|><|sot|>Comparing the precedence rules of the ternary ? : operators between perl, Javascript and PHP<|eot|><|sost|>Javascript: (console window in a browser): 'a'?'b':'c'?'d':'e' b perl: perl -le "print 'a'?'b':'c'?'d':'e';" b PHP: php -r "echo 'a'?'b':'c'?'d':'e';" d Apparently...
5
lolphp
Hacre
85f0w9
<|sols|><|sot|>Throw an error on bad SQL, but only if it's the first statement!<|eot|><|sol|>https://bugs.php.net/bug.php?id=61613<|eol|><|eols|><|endoftext|>
38