subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
sumdog
c4x7wke
<|sols|><|sot|>10 reasons to use PHP<|eot|><|sol|>http://www.eschrade.com/page/10-reasons-to-use-php-for-your-mobile-project/<|eol|><|sor|>>The PHP Community I don't want to start about the PHP community, but don't underestimate the community. For many this is a huge point. When I started with chicken the extremely h...
7
lolphp
Altreus
qn784
<|soss|><|sot|>Computing an expression? But it's static :(<|eot|><|sost|>Despite being theoretically a programming language, PHP will not allow you to use an expression when constructing a static member variable. class Bla { private static $_thing = array( 'path' => BASE_PATH . '/relative/path' ...
25
lolphp
vytah
c3yxpsw
<|soss|><|sot|>Computing an expression? But it's static :(<|eot|><|sost|>Despite being theoretically a programming language, PHP will not allow you to use an expression when constructing a static member variable. class Bla { private static $_thing = array( 'path' => BASE_PATH . '/relative/path' ...
8
lolphp
farsightxr20
c3z749w
<|soss|><|sot|>Computing an expression? But it's static :(<|eot|><|sost|>Despite being theoretically a programming language, PHP will not allow you to use an expression when constructing a static member variable. class Bla { private static $_thing = array( 'path' => BASE_PATH . '/relative/path' ...
8
lolphp
nsfwIvan
c3z70hn
<|soss|><|sot|>Computing an expression? But it's static :(<|eot|><|sost|>Despite being theoretically a programming language, PHP will not allow you to use an expression when constructing a static member variable. class Bla { private static $_thing = array( 'path' => BASE_PATH . '/relative/path' ...
7
lolphp
vytah
c3yyeux
<|soss|><|sot|>Computing an expression? But it's static :(<|eot|><|sost|>Despite being theoretically a programming language, PHP will not allow you to use an expression when constructing a static member variable. class Bla { private static $_thing = array( 'path' => BASE_PATH . '/relative/path' ...
7
lolphp
Rhomboid
c3yw5eg
<|soss|><|sot|>Computing an expression? But it's static :(<|eot|><|sost|>Despite being theoretically a programming language, PHP will not allow you to use an expression when constructing a static member variable. class Bla { private static $_thing = array( 'path' => BASE_PATH . '/relative/path' ...
5
lolphp
nyamsprod
5zkn29
<|soss|><|sot|>What the hell with iterator_apply ?<|eot|><|sost|>So my question is if iterator_apply is suppose to be the equivalent of array_walk why am I required to give twice the iterator to this function how does it works ??? Even the manual page does not explain it ? Is it magic ? https://3v4l.org/LYPWp <|eost|...
26
lolphp
andsens
dez4fpn
<|soss|><|sot|>What the hell with iterator_apply ?<|eot|><|sost|>So my question is if iterator_apply is suppose to be the equivalent of array_walk why am I required to give twice the iterator to this function how does it works ??? Even the manual page does not explain it ? Is it magic ? https://3v4l.org/LYPWp <|eost|...
21
lolphp
the_alias_of_andrea
dez95um
<|soss|><|sot|>What the hell with iterator_apply ?<|eot|><|sost|>So my question is if iterator_apply is suppose to be the equivalent of array_walk why am I required to give twice the iterator to this function how does it works ??? Even the manual page does not explain it ? Is it magic ? https://3v4l.org/LYPWp <|eost|...
10
lolphp
nikic
dezcu4c
<|soss|><|sot|>What the hell with iterator_apply ?<|eot|><|sost|>So my question is if iterator_apply is suppose to be the equivalent of array_walk why am I required to give twice the iterator to this function how does it works ??? Even the manual page does not explain it ? Is it magic ? https://3v4l.org/LYPWp <|eost|...
10
lolphp
kovensky
df01x8s
<|soss|><|sot|>What the hell with iterator_apply ?<|eot|><|sost|>So my question is if iterator_apply is suppose to be the equivalent of array_walk why am I required to give twice the iterator to this function how does it works ??? Even the manual page does not explain it ? Is it magic ? https://3v4l.org/LYPWp <|eost|...
6
lolphp
nyamsprod
dezaa5s
<|soss|><|sot|>What the hell with iterator_apply ?<|eot|><|sost|>So my question is if iterator_apply is suppose to be the equivalent of array_walk why am I required to give twice the iterator to this function how does it works ??? Even the manual page does not explain it ? Is it magic ? https://3v4l.org/LYPWp <|eost|...
6
lolphp
bj_christianson
df05tsn
<|soss|><|sot|>What the hell with iterator_apply ?<|eot|><|sost|>So my question is if iterator_apply is suppose to be the equivalent of array_walk why am I required to give twice the iterator to this function how does it works ??? Even the manual page does not explain it ? Is it magic ? https://3v4l.org/LYPWp <|eost|...
5
lolphp
idontlikethisname
2eqpmq
<|soss|><|sot|>If you return an object from a function, you can't access its class constants directly, you have to save it to a variable first<|eot|><|sost|> <?php class Foo { const BAR = 'bar'; var $other = 'test'; } function getFoo() { return new Foo(); } var_dump(getF...
27
lolphp
poizan42
ck21q3w
<|soss|><|sot|>If you return an object from a function, you can't access its class constants directly, you have to save it to a variable first<|eot|><|sost|> <?php class Foo { const BAR = 'bar'; var $other = 'test'; } function getFoo() { return new Foo(); } var_dump(getF...
22
lolphp
nikic
ck21nkf
<|soss|><|sot|>If you return an object from a function, you can't access its class constants directly, you have to save it to a variable first<|eot|><|sost|> <?php class Foo { const BAR = 'bar'; var $other = 'test'; } function getFoo() { return new Foo(); } var_dump(getF...
13
lolphp
urquan
ck2iu1t
<|soss|><|sot|>If you return an object from a function, you can't access its class constants directly, you have to save it to a variable first<|eot|><|sost|> <?php class Foo { const BAR = 'bar'; var $other = 'test'; } function getFoo() { return new Foo(); } var_dump(getF...
11
lolphp
Regimardyl
ck25xuv
<|soss|><|sot|>If you return an object from a function, you can't access its class constants directly, you have to save it to a variable first<|eot|><|sost|> <?php class Foo { const BAR = 'bar'; var $other = 'test'; } function getFoo() { return new Foo(); } var_dump(getF...
11
lolphp
callcifer
ck24skd
<|soss|><|sot|>If you return an object from a function, you can't access its class constants directly, you have to save it to a variable first<|eot|><|sost|> <?php class Foo { const BAR = 'bar'; var $other = 'test'; } function getFoo() { return new Foo(); } var_dump(getF...
9
lolphp
Copex
ck22rjs
<|soss|><|sot|>If you return an object from a function, you can't access its class constants directly, you have to save it to a variable first<|eot|><|sost|> <?php class Foo { const BAR = 'bar'; var $other = 'test'; } function getFoo() { return new Foo(); } var_dump(getF...
8
lolphp
Banane9
ck5aygp
<|soss|><|sot|>If you return an object from a function, you can't access its class constants directly, you have to save it to a variable first<|eot|><|sost|> <?php class Foo { const BAR = 'bar'; var $other = 'test'; } function getFoo() { return new Foo(); } var_dump(getF...
6
lolphp
tinkermake
24vpjd
<|sols|><|sot|>Just in case... Thought you guys might be interested<|eot|><|sol|>https://hackerone.com/php<|eol|><|eols|><|endoftext|>
25
lolphp
dongilbert
23zchf
<|sols|><|sot|>Bug fixed 5 years ago lives on (x-post /r/php)<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/23zcdj/bug_in_mysqli_scumbagphp/<|eol|><|eols|><|endoftext|>
25
lolphp
michaelpb
ch2l08u
<|sols|><|sot|>Bug fixed 5 years ago lives on (x-post /r/php)<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/23zcdj/bug_in_mysqli_scumbagphp/<|eol|><|sor|>So they "fixed" the bug by putting it into the documentation. *Brilliant*. No sensible language would set the properties of an object *before it was created*.<|e...
11
lolphp
Banane9
ch2e8yw
<|sols|><|sot|>Bug fixed 5 years ago lives on (x-post /r/php)<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/23zcdj/bug_in_mysqli_scumbagphp/<|eol|><|sor|>So they "fixed" the bug by putting it into the documentation. *Brilliant*. No sensible language would set the properties of an object *before it was created*.<|e...
9
lolphp
tr4ce
1q3r30
<|sols|><|sot|>More $string++ craziness<|eot|><|sol|>https://eval.in/61309<|eol|><|eols|><|endoftext|>
23
lolphp
ajmarks
cd90n6r
<|sols|><|sot|>More $string++ craziness<|eot|><|sol|>https://eval.in/61309<|eol|><|sor|>Dupe: http://www.reddit.com/r/lolphp/comments/1ofw7t/2d9/<|eor|><|eols|><|endoftext|>
8
lolphp
suspiciously_calm
cd96wok
<|sols|><|sot|>More $string++ craziness<|eot|><|sol|>https://eval.in/61309<|eol|><|sor|>Dupe: http://www.reddit.com/r/lolphp/comments/1ofw7t/2d9/<|eor|><|sor|>Yep, it's not "more `$string++` craziness," it's exactly the same.<|eor|><|eols|><|endoftext|>
6
lolphp
hyrulz
1etq3n
<|soss|><|sot|>Wordpress will automatically convert foo to $foo for you.<|eot|><|sost|>Give it a try. A warning will be given when enabling debug mode in wp-config.php: define('WP_DEBUG', true); <|eost|><|eoss|><|endoftext|>
27
lolphp
gearvOsh
ca41bby
<|soss|><|sot|>Wordpress will automatically convert foo to $foo for you.<|eot|><|sost|>Give it a try. A warning will be given when enabling debug mode in wp-config.php: define('WP_DEBUG', true); <|eost|><|sor|>Well, Wordpress is a whole is LOL.<|eor|><|eoss|><|endoftext|>
19
lolphp
redalastor
ca61fy6
<|soss|><|sot|>Wordpress will automatically convert foo to $foo for you.<|eot|><|sost|>Give it a try. A warning will be given when enabling debug mode in wp-config.php: define('WP_DEBUG', true); <|eost|><|sor|>Wordpress <> PHP<|eor|><|sor|>You've got a syntax error $wordpress != $php EDIT: Didn't realize what ...
17
lolphp
David_Crockett
ca405cm
<|soss|><|sot|>Wordpress will automatically convert foo to $foo for you.<|eot|><|sost|>Give it a try. A warning will be given when enabling debug mode in wp-config.php: define('WP_DEBUG', true); <|eost|><|sor|>Wordpress <> PHP<|eor|><|eoss|><|endoftext|>
15
lolphp
David_Crockett
ca49yck
<|soss|><|sot|>Wordpress will automatically convert foo to $foo for you.<|eot|><|sost|>Give it a try. A warning will be given when enabling debug mode in wp-config.php: define('WP_DEBUG', true); <|eost|><|sor|>Wordpress <> PHP<|eor|><|sor|>You've got a syntax error $wordpress != $php EDIT: Didn't realize what ...
15
lolphp
devourer09
ca9ckhh
<|soss|><|sot|>Wordpress will automatically convert foo to $foo for you.<|eot|><|sost|>Give it a try. A warning will be given when enabling debug mode in wp-config.php: define('WP_DEBUG', true); <|eost|><|sor|>You've got a syntax error $wordpress != $php EDIT: Didn't realize what subreddit I was in.<|eor|><|so...
10
lolphp
quirk
ca46ui8
<|soss|><|sot|>Wordpress will automatically convert foo to $foo for you.<|eot|><|sost|>Give it a try. A warning will be given when enabling debug mode in wp-config.php: define('WP_DEBUG', true); <|eost|><|sor|>Wordpress <> PHP<|eor|><|sor|>You've got a syntax error $wordpress != $php EDIT: Didn't realize what ...
8
lolphp
quirk
ca4a2kf
<|soss|><|sot|>Wordpress will automatically convert foo to $foo for you.<|eot|><|sost|>Give it a try. A warning will be given when enabling debug mode in wp-config.php: define('WP_DEBUG', true); <|eost|><|sor|>Wordpress <> PHP<|eor|><|sor|>You've got a syntax error $wordpress != $php EDIT: Didn't realize what ...
8
lolphp
jawn-
1eqt0a
<|soss|><|sot|>fun with json_encode and arrays<|eot|><|sost|> $ cat test.php <?php echo json_encode(array('1' => 1) ), "\n"; echo json_encode(array('0' => 1)); ?> $ php test.php {"1":1} [1] loose typing shittiness strikes again. <|eost|><|eoss|><|endoftext|>
25
lolphp
lost_fogs
ca2wv4y
<|soss|><|sot|>fun with json_encode and arrays<|eot|><|sost|> $ cat test.php <?php echo json_encode(array('1' => 1) ), "\n"; echo json_encode(array('0' => 1)); ?> $ php test.php {"1":1} [1] loose typing shittiness strikes again. <|eost|><|sor|>Does Javascript even allow non-zero ba...
22
lolphp
InsaneWookie
ca2uha6
<|soss|><|sot|>fun with json_encode and arrays<|eot|><|sost|> $ cat test.php <?php echo json_encode(array('1' => 1) ), "\n"; echo json_encode(array('0' => 1)); ?> $ php test.php {"1":1} [1] loose typing shittiness strikes again. <|eost|><|sor|>Yip that does't seem right. The real ...
14
lolphp
midir
ca2zbzd
<|soss|><|sot|>fun with json_encode and arrays<|eot|><|sost|> $ cat test.php <?php echo json_encode(array('1' => 1) ), "\n"; echo json_encode(array('0' => 1)); ?> $ php test.php {"1":1} [1] loose typing shittiness strikes again. <|eost|><|sor|>Inelegant, but an inevitable consequen...
11
lolphp
vytah
ca2vmv2
<|soss|><|sot|>fun with json_encode and arrays<|eot|><|sost|> $ cat test.php <?php echo json_encode(array('1' => 1) ), "\n"; echo json_encode(array('0' => 1)); ?> $ php test.php {"1":1} [1] loose typing shittiness strikes again. <|eost|><|sor|>Does Javascript even allow non-zero ba...
6
lolphp
gearvOsh
ca2vbw0
<|soss|><|sot|>fun with json_encode and arrays<|eot|><|sost|> $ cat test.php <?php echo json_encode(array('1' => 1) ), "\n"; echo json_encode(array('0' => 1)); ?> $ php test.php {"1":1} [1] loose typing shittiness strikes again. <|eost|><|sor|>Does Javascript even allow non-zero ba...
5
lolphp
barubary
qqq3wm
<|soss|><|sot|>Cheap shot: PHP release dates<|eot|><|sost|>Recently I had occasion to look at PHP's official release history at https://www.php.net/releases/index.php, specifically version 7.0.0 and following. ~~(I'd give you a link to the exact location, but the PHP website doesn't believe in `id` attributes.)~~ See [...
25
lolphp
tdammers
hk1zik1
<|soss|><|sot|>Cheap shot: PHP release dates<|eot|><|sost|>Recently I had occasion to look at PHP's official release history at https://www.php.net/releases/index.php, specifically version 7.0.0 and following. ~~(I'd give you a link to the exact location, but the PHP website doesn't believe in `id` attributes.)~~ See [...
26
lolphp
Decicus
hk1t7ni
<|soss|><|sot|>Cheap shot: PHP release dates<|eot|><|sost|>Recently I had occasion to look at PHP's official release history at https://www.php.net/releases/index.php, specifically version 7.0.0 and following. ~~(I'd give you a link to the exact location, but the PHP website doesn't believe in `id` attributes.)~~ See [...
8
lolphp
postmodest
hk4iji0
<|soss|><|sot|>Cheap shot: PHP release dates<|eot|><|sost|>Recently I had occasion to look at PHP's official release history at https://www.php.net/releases/index.php, specifically version 7.0.0 and following. ~~(I'd give you a link to the exact location, but the PHP website doesn't believe in `id` attributes.)~~ See [...
6
lolphp
barubary
itelin
<|soss|><|sot|>What even is Callable?<|eot|><|sost|>*(Inspired by [this post](/r/lolphp/comments/iqlpur/set_exception_handler_returns_null_on_error_and/).)* The [documentation for `set_exception_handler`](https://www.php.net/manual/en/function.set-exception-handler.php) shows this signature: > set_exception_handl...
23
lolphp
Schmittfried
g5egr4n
<|soss|><|sot|>What even is Callable?<|eot|><|sost|>*(Inspired by [this post](/r/lolphp/comments/iqlpur/set_exception_handler_returns_null_on_error_and/).)* The [documentation for `set_exception_handler`](https://www.php.net/manual/en/function.set-exception-handler.php) shows this signature: > set_exception_handl...
13
lolphp
duskwuff
g5eg1n2
<|soss|><|sot|>What even is Callable?<|eot|><|sost|>*(Inspired by [this post](/r/lolphp/comments/iqlpur/set_exception_handler_returns_null_on_error_and/).)* The [documentation for `set_exception_handler`](https://www.php.net/manual/en/function.set-exception-handler.php) shows this signature: > set_exception_handl...
8
lolphp
the_alias_of_andrea
g5ecjng
<|soss|><|sot|>What even is Callable?<|eot|><|sost|>*(Inspired by [this post](/r/lolphp/comments/iqlpur/set_exception_handler_returns_null_on_error_and/).)* The [documentation for `set_exception_handler`](https://www.php.net/manual/en/function.set-exception-handler.php) shows this signature: > set_exception_handl...
7
lolphp
Takeoded
g5g4ygc
<|soss|><|sot|>What even is Callable?<|eot|><|sost|>*(Inspired by [this post](/r/lolphp/comments/iqlpur/set_exception_handler_returns_null_on_error_and/).)* The [documentation for `set_exception_handler`](https://www.php.net/manual/en/function.set-exception-handler.php) shows this signature: > set_exception_handl...
6
lolphp
barubary
g5e4e5f
<|soss|><|sot|>What even is Callable?<|eot|><|sost|>*(Inspired by [this post](/r/lolphp/comments/iqlpur/set_exception_handler_returns_null_on_error_and/).)* The [documentation for `set_exception_handler`](https://www.php.net/manual/en/function.set-exception-handler.php) shows this signature: > set_exception_handl...
6
lolphp
the_alias_of_andrea
g5gtgax
<|soss|><|sot|>What even is Callable?<|eot|><|sost|>*(Inspired by [this post](/r/lolphp/comments/iqlpur/set_exception_handler_returns_null_on_error_and/).)* The [documentation for `set_exception_handler`](https://www.php.net/manual/en/function.set-exception-handler.php) shows this signature: > set_exception_handl...
5
lolphp
shaql
bgtmfv
<|sols|><|sot|>"Timing attack safe string comparison", but "When arguments of differing length are supplied, FALSE is returned immediately and the length of the known string may be leaked in case of a timing attack. "<|eot|><|sol|>https://php.net/manual/en/function.hash-equals.php<|eol|><|eols|><|endoftext|>
27
lolphp
steamruler
elniyni
<|sols|><|sot|>"Timing attack safe string comparison", but "When arguments of differing length are supplied, FALSE is returned immediately and the length of the known string may be leaked in case of a timing attack. "<|eot|><|sol|>https://php.net/manual/en/function.hash-equals.php<|eol|><|sor|>Not really lolphp, there'...
25
lolphp
dotancohen
elnqre3
<|sols|><|sot|>"Timing attack safe string comparison", but "When arguments of differing length are supplied, FALSE is returned immediately and the length of the known string may be leaked in case of a timing attack. "<|eot|><|sol|>https://php.net/manual/en/function.hash-equals.php<|eol|><|sor|>Not really lolphp, there'...
11
lolphp
SirClueless
eloodm6
<|sols|><|sot|>"Timing attack safe string comparison", but "When arguments of differing length are supplied, FALSE is returned immediately and the length of the known string may be leaked in case of a timing attack. "<|eot|><|sol|>https://php.net/manual/en/function.hash-equals.php<|eol|><|sor|>Not really lolphp, there'...
8
lolphp
kokx
elo8z0f
<|sols|><|sot|>"Timing attack safe string comparison", but "When arguments of differing length are supplied, FALSE is returned immediately and the length of the known string may be leaked in case of a timing attack. "<|eot|><|sol|>https://php.net/manual/en/function.hash-equals.php<|eol|><|sor|>Not really lolphp, there'...
8
lolphp
Idontremember99
elo6ltu
<|sols|><|sot|>"Timing attack safe string comparison", but "When arguments of differing length are supplied, FALSE is returned immediately and the length of the known string may be leaked in case of a timing attack. "<|eot|><|sol|>https://php.net/manual/en/function.hash-equals.php<|eol|><|sor|>"It is important to provi...
6
lolphp
nikic
elqi3cc
<|sols|><|sot|>"Timing attack safe string comparison", but "When arguments of differing length are supplied, FALSE is returned immediately and the length of the known string may be leaked in case of a timing attack. "<|eot|><|sol|>https://php.net/manual/en/function.hash-equals.php<|eol|><|sor|>To be fair: timing safe c...
6
lolphp
F-J-W
elno8wu
<|sols|><|sot|>"Timing attack safe string comparison", but "When arguments of differing length are supplied, FALSE is returned immediately and the length of the known string may be leaked in case of a timing attack. "<|eot|><|sol|>https://php.net/manual/en/function.hash-equals.php<|eol|><|sor|>To be fair: timing safe c...
5
lolphp
weirdasianfaces
eml4pbg
<|sols|><|sot|>"Timing attack safe string comparison", but "When arguments of differing length are supplied, FALSE is returned immediately and the length of the known string may be leaked in case of a timing attack. "<|eot|><|sol|>https://php.net/manual/en/function.hash-equals.php<|eol|><|sor|>To be fair: timing safe c...
5
lolphp
tdammers
3u8ccs
<|sols|><|sot|>If you can't hack my site, that proves PHP is secure.<|eot|><|sol|>https://www.reddit.com/r/programming/comments/3u85cd/dont_use_the_owasp_phpsec_crypto_library/<|eol|><|eols|><|endoftext|>
23
lolphp
WrasslorMonkey
cxdkety
<|sols|><|sot|>If you can't hack my site, that proves PHP is secure.<|eot|><|sol|>https://www.reddit.com/r/programming/comments/3u85cd/dont_use_the_owasp_phpsec_crypto_library/<|eol|><|sor|>> Kerckhoff's principle applies to cryptography, not application security. Fucking. Gold. Edit: Quote from here: https://github....
12
lolphp
ajmarks
cxdeo2s
<|sols|><|sot|>If you can't hack my site, that proves PHP is secure.<|eot|><|sol|>https://www.reddit.com/r/programming/comments/3u85cd/dont_use_the_owasp_phpsec_crypto_library/<|eol|><|sor|>what are your trying to link to? I just get the full comments on another reddit thread, the connection to your title is not obviou...
7
lolphp
sarciszewski
cxfnkiz
<|sols|><|sot|>If you can't hack my site, that proves PHP is secure.<|eot|><|sol|>https://www.reddit.com/r/programming/comments/3u85cd/dont_use_the_owasp_phpsec_crypto_library/<|eol|><|sor|>what are your trying to link to? I just get the full comments on another reddit thread, the connection to your title is not obviou...
6
lolphp
tdammers
cxfx6c3
<|sols|><|sot|>If you can't hack my site, that proves PHP is secure.<|eot|><|sol|>https://www.reddit.com/r/programming/comments/3u85cd/dont_use_the_owasp_phpsec_crypto_library/<|eol|><|sor|>> Kerckhoff's principle applies to cryptography, not application security. Fucking. Gold. Edit: Quote from here: https://github....
6
lolphp
sarciszewski
cxfnmz3
<|sols|><|sot|>If you can't hack my site, that proves PHP is secure.<|eot|><|sol|>https://www.reddit.com/r/programming/comments/3u85cd/dont_use_the_owasp_phpsec_crypto_library/<|eol|><|sor|>> Kerckhoff's principle applies to cryptography, not application security. Fucking. Gold. Edit: Quote from here: https://github....
5
lolphp
DoubleNabla
2g531u
<|soss|><|sot|>The Tales of the Magic Mimicry Variable or: $x !== $x<|eot|><|sost|>So, I guess everyone here knows what happens when you use an undefined variable in PHP. php> echo $foo." bar"; PHP Notice: Undefined variable: foo in php shell code on line 1 bar Yeah... it inserts an empty string and emits a _not...
25
lolphp
DoubleNabla
ckfrfh0
<|soss|><|sot|>The Tales of the Magic Mimicry Variable or: $x !== $x<|eot|><|sost|>So, I guess everyone here knows what happens when you use an undefined variable in PHP. php> echo $foo." bar"; PHP Notice: Undefined variable: foo in php shell code on line 1 bar Yeah... it inserts an empty string and emits a _not...
8
lolphp
masklinn
clhgq6k
<|soss|><|sot|>The Tales of the Magic Mimicry Variable or: $x !== $x<|eot|><|sost|>So, I guess everyone here knows what happens when you use an undefined variable in PHP. php> echo $foo." bar"; PHP Notice: Undefined variable: foo in php shell code on line 1 bar Yeah... it inserts an empty string and emits a _not...
6
lolphp
tdammers
ckfp7v2
<|soss|><|sot|>The Tales of the Magic Mimicry Variable or: $x !== $x<|eot|><|sost|>So, I guess everyone here knows what happens when you use an undefined variable in PHP. php> echo $foo." bar"; PHP Notice: Undefined variable: foo in php shell code on line 1 bar Yeah... it inserts an empty string and emits a _not...
5
lolphp
davvblack
1h8yow
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|eoss|><|endoftext|>
23
lolphp
VeXCe
carzgiq
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>Perhaps they were made with php?<|eor|><|eoss|><|endoftext|>
45
lolphp
Athox
cav94z4
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>To bash/praise PHP anonymously.<|eor|><|sor|>But it's just a style, as other have pointed out, it's super easy to show the names. (Especially for a sub full of web developers)<|eor|><|sor|>Yeah but PHP devel...
25
lolphp
Dereleased
cas39qj
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>I always assumed it was either an AA or Witness Protection style joke, withholding our names/identities to protect the innocent, etc. Of course, you can open a JS console and type `$('.author').show()` to g...
23
lolphp
Dereleased
cauaefp
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>I always assumed it was either an AA or Witness Protection style joke, withholding our names/identities to protect the innocent, etc. Of course, you can open a JS console and type `$('.author').show()` to g...
12
lolphp
madlee
cas1jt7
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>so your developer friends won't know about your secret disdain for php.<|eor|><|eoss|><|endoftext|>
11
lolphp
Rhomboid
cas3vdu
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>so your developer friends won't know about your secret disdain for php.<|eor|><|soopr|>But you can still see their names in your inbox, so you know they've been stalking you.<|eoopr|><|sor|>or you can open a...
8
lolphp
davvblack
cbiij4k
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>Not to mention timestamps...<|eor|><|soopr|>Case in point, this thread has been dead for decades.<|eoopr|><|eoss|><|endoftext|>
7
lolphp
jerenept
cas4mwy
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>so your developer friends won't know about your secret disdain for php.<|eor|><|soopr|>But you can still see their names in your inbox, so you know they've been stalking you.<|eoopr|><|sor|>or you can open a...
7
lolphp
gearvOsh
cas3os5
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>To bash/praise PHP anonymously.<|eor|><|eoss|><|endoftext|>
6
lolphp
jaimeeee
cau2djq
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>I always assumed it was either an AA or Witness Protection style joke, withholding our names/identities to protect the innocent, etc. Of course, you can open a JS console and type `$('.author').show()` to g...
5
lolphp
Turtlecupcakes
casbdkt
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>To bash/praise PHP anonymously.<|eor|><|sor|>But it's just a style, as other have pointed out, it's super easy to show the names. (Especially for a sub full of web developers)<|eor|><|eoss|><|endoftext|>
5
lolphp
Dereleased
cas38rs
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>so your developer friends won't know about your secret disdain for php.<|eor|><|soopr|>But you can still see their names in your inbox, so you know they've been stalking you.<|eoopr|><|sor|>or you can open a...
5
lolphp
ekolis
cbiitsp
<|soss|><|sot|>[meta] Why do the custom styles on this subreddit obscure usernames?<|eot|><|sost|><|eost|><|sor|>Not to mention timestamps...<|eor|><|soopr|>Case in point, this thread has been dead for decades.<|eoopr|><|sor|>In that case, do you have some SNES games I could borrow?<|eor|><|eoss|><|endoftext|>
5
lolphp
deviantintegral
1gnhyt
<|soss|><|sot|>Unary operators on strings<|eot|><|sost|>Ran into this where a developer was manually applying a patch (ewww) and forgot to remove a minus sign in the middle of an array declaration. Turns out that plus or minus in front of a string casts it to zero. The minus I'm (somewhat) OK with though I can't think ...
24
lolphp
midir
cam1qxk
<|soss|><|sot|>Unary operators on strings<|eot|><|sost|>Ran into this where a developer was manually applying a patch (ewww) and forgot to remove a minus sign in the middle of an array declaration. Turns out that plus or minus in front of a string casts it to zero. The minus I'm (somewhat) OK with though I can't think ...
11
lolphp
vytah
camjlms
<|soss|><|sot|>Unary operators on strings<|eot|><|sost|>Ran into this where a developer was manually applying a patch (ewww) and forgot to remove a minus sign in the middle of an array declaration. Turns out that plus or minus in front of a string casts it to zero. The minus I'm (somewhat) OK with though I can't think ...
9
lolphp
ealf
p9sn4
<|sols|><|sot|>The case of HTTP response splitting protection in PHP<|eot|><|sol|>http://news.php.net/php.internals/57655<|eol|><|eols|><|endoftext|>
24
lolphp
i-am-am-nice-really
jqum3
<|soss|><|sot|>php --syntax-check somefile.php<|eot|><|sost|>Errors parsing somefile.php *thanks. sigh*<|eost|><|eoss|><|endoftext|>
23
lolphp
i-am-am-nice-really
c2eeiqh
<|soss|><|sot|>php --syntax-check somefile.php<|eot|><|sost|>Errors parsing somefile.php *thanks. sigh*<|eost|><|sor|>quicker to type: php -l somefile.php The 'l' is a lower case 'L'.<|eor|><|soopr|>quicker to not bother at all<|eoopr|><|eoss|><|endoftext|>
6
lolphp
Takeoded
rff8j0
<|sols|><|sot|>you can't use FILE_USE_INCLUDE_PATH in strict mode<|eot|><|sol|>https://www.php.net/manual/en/function.file-get-contents<|eol|><|eols|><|endoftext|>
23
lolphp
Takeoded
hoe4l7a
<|sols|><|sot|>you can't use FILE_USE_INCLUDE_PATH in strict mode<|eot|><|sol|>https://www.php.net/manual/en/function.file-get-contents<|eol|><|sor|>Sounds like this constant should be deprecated, unless it serves some other useful purpose that isn't clear here.<|eor|><|soopr|>ideally you could use FILE_USE_INCLUDE_PAT...
6
lolphp
chrismsnz
n0qqvt
<|sols|><|sot|>LIBXML_NOENT enables entity substitution<|eot|><|sol|>https://blog.sonarsource.com/wordpress-xxe-security-vulnerability<|eol|><|eols|><|endoftext|>
23
lolphp
JiminP
gw9d3pm
<|sols|><|sot|>LIBXML_NOENT enables entity substitution<|eot|><|sol|>https://blog.sonarsource.com/wordpress-xxe-security-vulnerability<|eol|><|sor|> if (PHP_VERSION_ID < 80000) { // This function has been deprecated in PHP 8.0 because in libxml 2.9.0, external entity loading is // disabled by default...
16
lolphp
Silly-Freak
gwa1qh2
<|sols|><|sot|>LIBXML_NOENT enables entity substitution<|eot|><|sol|>https://blog.sonarsource.com/wordpress-xxe-security-vulnerability<|eol|><|sor|>[https://www.youtube.com/watch?v=i1n5VDUghaY](https://www.youtube.com/watch?v=i1n5VDUghaY)<|eor|><|eols|><|endoftext|>
5
lolphp
bkdotcom
gwbmp6f
<|sols|><|sot|>LIBXML_NOENT enables entity substitution<|eot|><|sol|>https://blog.sonarsource.com/wordpress-xxe-security-vulnerability<|eol|><|sor|> if (PHP_VERSION_ID < 80000) { // This function has been deprecated in PHP 8.0 because in libxml 2.9.0, external entity loading is // disabled by default...
5
lolphp
Takeoded
idui3p
<|sols|><|sot|>breaking-to-fix in_array() for PHP8: OK. breaking-to-fix DateTime::ISO8601 for PHP8? no can do (DateTime::ISO8601 is not legal ISO8601)<|eot|><|sol|>https://3v4l.org/B0Jqh<|eol|><|eols|><|endoftext|>
23