subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
Various_Pickles
dad8qrp
<|sols|><|sot|>Opencart, a PHP-based e-commerce platform, will expose DB passwords to users if the MySQL server is down and error reporting hasn't been turned off<|eot|><|sol|>https://github.com/opencart/opencart/issues/5027<|eol|><|sor|>> oh shit i cant talk to the db hunter2 hunter2 hunter2!<|eor|><|eols|><|endoftext...
5
lolphp
marcini82
daasbb1
<|sols|><|sot|>Opencart, a PHP-based e-commerce platform, will expose DB passwords to users if the MySQL server is down and error reporting hasn't been turned off<|eot|><|sol|>https://github.com/opencart/opencart/issues/5027<|eol|><|sor|>But where is the lolphp in this case?<|eor|><|eols|><|endoftext|>
5
lolphp
berkes
dab62t4
<|sols|><|sot|>Opencart, a PHP-based e-commerce platform, will expose DB passwords to users if the MySQL server is down and error reporting hasn't been turned off<|eot|><|sol|>https://github.com/opencart/opencart/issues/5027<|eol|><|sor|>But where is the lolphp in this case?<|eor|><|sor|>> Error No: ' in /home/user/dom...
5
lolphp
disclosure5
2og776
<|sols|><|sot|>When your only major crypto library hasn't been maintained since 2007<|eot|><|sol|>http://news.php.net/php.internals/79446<|eol|><|eols|><|endoftext|>
65
lolphp
ZugNachPankow
cmmutbx
<|sols|><|sot|>When your only major crypto library hasn't been maintained since 2007<|eot|><|sol|>http://news.php.net/php.internals/79446<|eol|><|sor|>[deleted]<|eor|><|sor|>\>md5 \>encryption lel^I ^know, ^it ^was ^the ^joke. <|eor|><|eols|><|endoftext|>
18
lolphp
nikic
cmmv6mb
<|sols|><|sot|>When your only major crypto library hasn't been maintained since 2007<|eot|><|sol|>http://news.php.net/php.internals/79446<|eol|><|sor|>Mcrypt is not PHPs "only major crypto library", it also has openssl bindings. (Which are often recommended over mcrypt for the very mundane reason of being a good bit fa...
17
lolphp
disclosure5
cmmvgbr
<|sols|><|sot|>When your only major crypto library hasn't been maintained since 2007<|eot|><|sol|>http://news.php.net/php.internals/79446<|eol|><|sor|>Mcrypt is not PHPs "only major crypto library", it also has openssl bindings. (Which are often recommended over mcrypt for the very mundane reason of being a good bit fa...
12
lolphp
nikic
cmmwk99
<|sols|><|sot|>When your only major crypto library hasn't been maintained since 2007<|eot|><|sol|>http://news.php.net/php.internals/79446<|eol|><|sor|>Mcrypt is not PHPs "only major crypto library", it also has openssl bindings. (Which are often recommended over mcrypt for the very mundane reason of being a good bit fa...
12
lolphp
ZugNachPankow
cmnocmb
<|sols|><|sot|>When your only major crypto library hasn't been maintained since 2007<|eot|><|sol|>http://news.php.net/php.internals/79446<|eol|><|sor|>[deleted]<|eor|><|sor|>\>md5 \>encryption lel^I ^know, ^it ^was ^the ^joke. <|eor|><|sor|>nice meme arrows ;\^)<|eor|><|sor|>Meh. I find "le memearrows" to be a conci...
5
lolphp
vytah
2j8i3g
<|sols|><|sot|>How to modify DateTimeImmutable? Call getTimestamp() on it.<|eot|><|sol|>https://bugs.php.net/bug.php?id=67634<|eol|><|eols|><|endoftext|>
67
lolphp
Regimardyl
cl9jiki
<|sols|><|sot|>How to modify DateTimeImmutable? Call getTimestamp() on it.<|eot|><|sol|>https://bugs.php.net/bug.php?id=67634<|eol|><|sor|>PHP Quantum physics again; introspecting something changes it's value. ^(Not my joke, found it somewhere here)<|eor|><|eols|><|endoftext|>
37
lolphp
midir
cl9zl8t
<|sols|><|sot|>How to modify DateTimeImmutable? Call getTimestamp() on it.<|eot|><|sol|>https://bugs.php.net/bug.php?id=67634<|eol|><|sor|>When is an immutable object not immutable? When you look at it.<|eor|><|eols|><|endoftext|>
10
lolphp
OneWingedShark
cl9v7qy
<|sols|><|sot|>How to modify DateTimeImmutable? Call getTimestamp() on it.<|eot|><|sol|>https://bugs.php.net/bug.php?id=67634<|eol|><|sor|>You would think that the person or the persons involved in designing a class named fucking DateTime**IMMUTABLE** would design it in a way that makes it behave as the name implies: t...
8
lolphp
killerstorm
cl9xb94
<|sols|><|sot|>How to modify DateTimeImmutable? Call getTimestamp() on it.<|eot|><|sol|>https://bugs.php.net/bug.php?id=67634<|eol|><|sor|>To quote the documentation for DateTimeImmutable::modify: Creates a new DateTimeImmutable object with modified timestamp. The original object is not modified. IS NOT MODIFIED....
7
lolphp
vytah
cl9c3ec
<|sols|><|sot|>How to modify DateTimeImmutable? Call getTimestamp() on it.<|eot|><|sol|>https://bugs.php.net/bug.php?id=67634<|eol|><|soopr|>Another submission of the same bug: https://bugs.php.net/bug.php?id=68204<|eoopr|><|eols|><|endoftext|>
6
lolphp
mort96
cla0dw0
<|sols|><|sot|>How to modify DateTimeImmutable? Call getTimestamp() on it.<|eot|><|sol|>https://bugs.php.net/bug.php?id=67634<|eol|><|sor|>PHP Quantum physics again; introspecting something changes it's value. ^(Not my joke, found it somewhere here)<|eor|><|sor|>> it's<|eor|><|eols|><|endoftext|>
6
lolphp
dagbrown
232phg
<|sols|><|sot|>Pure PHP implementations of SSH, SFTP, RSA and X.509--I don't see how that could possibly go wrong<|eot|><|sol|>http://phpseclib.sourceforge.net<|eol|><|eols|><|endoftext|>
65
lolphp
willfe42
cgsx11i
<|sols|><|sot|>Pure PHP implementations of SSH, SFTP, RSA and X.509--I don't see how that could possibly go wrong<|eot|><|sol|>http://phpseclib.sourceforge.net<|eol|><|sor|>[deleted]<|eor|><|sor|>lol entitled much?<|eor|><|sor|>Heh, yeah, screw those "experts" and their fancy crypto (I mean, c'mon, they even had a _vul...
23
lolphp
dehrmann
cgt3rt2
<|sols|><|sot|>Pure PHP implementations of SSH, SFTP, RSA and X.509--I don't see how that could possibly go wrong<|eot|><|sol|>http://phpseclib.sourceforge.net<|eol|><|sor|>Really, a crypto library in any language without primatives like bytes or uint64 is scary.<|eor|><|eols|><|endoftext|>
22
lolphp
bgeron
cgsyvpk
<|sols|><|sot|>Pure PHP implementations of SSH, SFTP, RSA and X.509--I don't see how that could possibly go wrong<|eot|><|sol|>http://phpseclib.sourceforge.net<|eol|><|sor|>[deleted]<|eor|><|sor|>I think the Mt-gox owner has done a ssh server in PHP, at least this is client code.<|eor|><|sor|>https://web.archive.org/we...
20
lolphp
jmcs
cgsx5s6
<|sols|><|sot|>Pure PHP implementations of SSH, SFTP, RSA and X.509--I don't see how that could possibly go wrong<|eot|><|sol|>http://phpseclib.sourceforge.net<|eol|><|sor|>[deleted]<|eor|><|sor|>I think the Mt-gox owner has done a ssh server in PHP, at least this is client code.<|eor|><|eols|><|endoftext|>
13
lolphp
ebol4anthr4x
cgtgahe
<|sols|><|sot|>Pure PHP implementations of SSH, SFTP, RSA and X.509--I don't see how that could possibly go wrong<|eot|><|sol|>http://phpseclib.sourceforge.net<|eol|><|sor|>Really, a crypto library in any language without primatives like bytes or uint64 is scary.<|eor|><|sor|>We're gonna see vulnerabilities based on th...
10
lolphp
suspiciously_calm
cgta83a
<|sols|><|sot|>Pure PHP implementations of SSH, SFTP, RSA and X.509--I don't see how that could possibly go wrong<|eot|><|sol|>http://phpseclib.sourceforge.net<|eol|><|sor|>Really, a crypto library in any language without primatives like bytes or uint64 is scary.<|eor|><|sor|>We're gonna see vulnerabilities based on th...
6
lolphp
captainramen
cgt6mc6
<|sols|><|sot|>Pure PHP implementations of SSH, SFTP, RSA and X.509--I don't see how that could possibly go wrong<|eot|><|sol|>http://phpseclib.sourceforge.net<|eol|><|sor|>[deleted]<|eor|><|sor|>I think the Mt-gox owner has done a ssh server in PHP, at least this is client code.<|eor|><|sor|>https://web.archive.org/we...
6
lolphp
graingert
cgvn57l
<|sols|><|sot|>Pure PHP implementations of SSH, SFTP, RSA and X.509--I don't see how that could possibly go wrong<|eot|><|sol|>http://phpseclib.sourceforge.net<|eol|><|sor|>Is this a piece of performance art?<|eor|><|eols|><|endoftext|>
5
lolphp
allthediamonds
1v7ek6
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|eols|><|endoftext|>
69
lolphp
merreborn
cepff7f
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>[`in_array`: Searches haystack for needle using loose comparison unless strict is set.](http://php.net/in_array) `0 == 'bacon'`, but `0 !== 'bacon'`, therefor `in_array('bacon', $noBacon)`, but `!in_array('bacon', $noB...
23
lolphp
audaxxx
cepfqw1
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>Wat. Why? Is it somehow deciding that the number value of 'bacon' is 0 and then comparing that against the 0 in the array?<|eor|><|sor|>Yes. Because that is a good default choice.<|eor|><|eols|><|endoftext|>
20
lolphp
catcradle5
cepn7is
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>[`in_array`: Searches haystack for needle using loose comparison unless strict is set.](http://php.net/in_array) `0 == 'bacon'`, but `0 !== 'bacon'`, therefor `in_array('bacon', $noBacon)`, but `!in_array('bacon', $noB...
17
lolphp
BufferUnderpants
cepoijo
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>[`in_array`: Searches haystack for needle using loose comparison unless strict is set.](http://php.net/in_array) `0 == 'bacon'`, but `0 !== 'bacon'`, therefor `in_array('bacon', $noBacon)`, but `!in_array('bacon', $noB...
17
lolphp
audaxxx
cepksh8
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>Wat. Why? Is it somehow deciding that the number value of 'bacon' is 0 and then comparing that against the 0 in the array?<|eor|><|sor|>Yes. Because that is a good default choice.<|eor|><|sor|>[deleted]<|eor|><|sor|>Bec...
15
lolphp
ahruss
cepusjg
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>[`in_array`: Searches haystack for needle using loose comparison unless strict is set.](http://php.net/in_array) `0 == 'bacon'`, but `0 !== 'bacon'`, therefor `in_array('bacon', $noBacon)`, but `!in_array('bacon', $noB...
14
lolphp
escozzia
cepf8g3
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>Wat. Why? Is it somehow deciding that the number value of 'bacon' is 0 and then comparing that against the 0 in the array?<|eor|><|eols|><|endoftext|>
13
lolphp
jellyislovely
cepo5ts
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>[`in_array`: Searches haystack for needle using loose comparison unless strict is set.](http://php.net/in_array) `0 == 'bacon'`, but `0 !== 'bacon'`, therefor `in_array('bacon', $noBacon)`, but `!in_array('bacon', $noB...
13
lolphp
ahruss
cepklw4
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>Wat. Why? Is it somehow deciding that the number value of 'bacon' is 0 and then comparing that against the 0 in the array?<|eor|><|sor|>Yes. Because that is a good default choice.<|eor|><|sor|>[deleted]<|eor|><|sor|>Bec...
13
lolphp
BufferUnderpants
ceq4a01
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>[`in_array`: Searches haystack for needle using loose comparison unless strict is set.](http://php.net/in_array) `0 == 'bacon'`, but `0 !== 'bacon'`, therefor `in_array('bacon', $noBacon)`, but `!in_array('bacon', $noB...
12
lolphp
SyKoHPaTh
cepfhxh
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>Need to use TRUE for strict: if (in_array('bacon', $noBacon, TRUE)) { Since variables don't have a type, strings have a value of "0" unless they start with a number.<|eor|><|eols|><|endoftext|>
10
lolphp
n0rs
ceq0vlu
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>[`in_array`: Searches haystack for needle using loose comparison unless strict is set.](http://php.net/in_array) `0 == 'bacon'`, but `0 !== 'bacon'`, therefor `in_array('bacon', $noBacon)`, but `!in_array('bacon', $noB...
10
lolphp
jmcs
ceq01u0
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>[`in_array`: Searches haystack for needle using loose comparison unless strict is set.](http://php.net/in_array) `0 == 'bacon'`, but `0 !== 'bacon'`, therefor `in_array('bacon', $noBacon)`, but `!in_array('bacon', $noB...
9
lolphp
merreborn
cepgnrh
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>And that's what happens when you make a hash table and an array one data type.<|eor|><|sor|>That's not really relevant. This would still happen, even if those two types were separate. This is a symptom of PHP's loose t...
8
lolphp
aaron552
cepifl7
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>Need to use TRUE for strict: if (in_array('bacon', $noBacon, TRUE)) { Since variables don't have a type, strings have a value of "0" unless they start with a number.<|eor|><|sor|>Oh boy, is a string literal a va...
7
lolphp
TheGreatFohl
ceq0m1i
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>[`in_array`: Searches haystack for needle using loose comparison unless strict is set.](http://php.net/in_array) `0 == 'bacon'`, but `0 !== 'bacon'`, therefor `in_array('bacon', $noBacon)`, but `!in_array('bacon', $noB...
7
lolphp
midir
ceq1te5
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>[`in_array`: Searches haystack for needle using loose comparison unless strict is set.](http://php.net/in_array) `0 == 'bacon'`, but `0 !== 'bacon'`, therefor `in_array('bacon', $noBacon)`, but `!in_array('bacon', $noB...
7
lolphp
jmcs
ceq50fq
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|>[`in_array`: Searches haystack for needle using loose comparison unless strict is set.](http://php.net/in_array) `0 == 'bacon'`, but `0 !== 'bacon'`, therefor `in_array('bacon', $noBacon)`, but `!in_array('bacon', $noB...
7
lolphp
barubary
cephfk7
<|sols|><|sot|>In which in_array() does crazy stuff<|eot|><|sol|>https://eval.in/89008<|eol|><|sor|> % php -r 'var_dump(in_array(2000, array(md5("dbox"))));' bool(true)<|eor|><|eols|><|endoftext|>
6
lolphp
jamwaffles
1umksd
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|eols|><|endoftext|>
66
lolphp
jamwaffles
cejmq7o
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>There are no bugs in PHP, only features.<|eor|><|soopr|>`[ Submit New Feature Report ]` *click*<|eoopr|><|eols|><|endoftext|>
26
lolphp
ismtrn
cejl6vv
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>There are no bugs in PHP, only features.<|eor|><|eols|><|endoftext|>
25
lolphp
Lokaltog
cejlrj6
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>I lol'd when I noticed how the *great* design decision of using \ as a namespace separator have insanely stupid side effects, like having to escape it as \\\\ every time you reference a names...
21
lolphp
Lokaltog
cejnxah
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>I lol'd when I noticed how the *great* design decision of using \ as a namespace separator have insanely stupid side effects, like having to escape it as \\\\ every time you reference a names...
19
lolphp
poizan42
cejp3fi
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>I lol'd when I noticed how the *great* design decision of using \ as a namespace separator have insanely stupid side effects, like having to escape it as \\\\ every time you reference a names...
19
lolphp
suspiciously_calm
cejuuoz
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>Feature request: *Unfuck the language* Status: closed; wontfix<|eor|><|eols|><|endoftext|>
17
lolphp
OneWingedShark
cejshm6
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>I lol'd when I noticed how the *great* design decision of using \ as a namespace separator have insanely stupid side effects, like having to escape it as \\\\ every time you reference a names...
11
lolphp
realnowhereman
cejss0c
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>I lol'd when I noticed how the *great* design decision of using \ as a namespace separator have insanely stupid side effects, like having to escape it as \\\\ every time you reference a names...
10
lolphp
Rhomboid
cejuwqb
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>I lol'd when I noticed how the *great* design decision of using \ as a namespace separator have insanely stupid side effects, like having to escape it as \\\\ every time you reference a names...
9
lolphp
limasxgoesto0
cejr08l
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>I lol'd when I noticed how the *great* design decision of using \ as a namespace separator have insanely stupid side effects, like having to escape it as \\\\ every time you reference a names...
7
lolphp
poizan42
cejpd7t
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>I lol'd when I noticed how the *great* design decision of using \ as a namespace separator have insanely stupid side effects, like having to escape it as \\\\ every time you reference a names...
6
lolphp
jamwaffles
cejvzr3
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>Feature request: *Unfuck the language* Status: closed; wontfix<|eor|><|soopr|>Status: bug.<|eoopr|><|eols|><|endoftext|>
5
lolphp
poizan42
cejt6vp
<|sols|><|sot|>Bugs are just feature requests, apparently<|eot|><|sol|>https://bugs.php.net/bug.php?id=63359&edit=1<|eol|><|sor|>Why couldn't they use a dot like any other language? Seriously, backslashes as namespace separators are the last nail in PHP 's coffin. <|eor|><|sor|>Yeah, I actually quit PHP after I read th...
5
lolphp
catcradle5
1sir7f
<|sols|><|sot|>Warning: Note: Warning: Do not use this, ever!<|eot|><|sol|>http://www.php.net/manual/en/function.extract.php#refsect1-function.extract-notes<|eol|><|eols|><|endoftext|>
71
lolphp
kmeisthax
cdy00x8
<|sols|><|sot|>Warning: Note: Warning: Do not use this, ever!<|eot|><|sol|>http://www.php.net/manual/en/function.extract.php#refsect1-function.extract-notes<|eol|><|sor|>extract: Because there isn't any other way to handle associative arrays, like say, a convenient operator syntax. NOPE GOTTA POLLUTE THE SYMBOL TABLE<|...
21
lolphp
catcradle5
cdxzj8q
<|sols|><|sot|>Warning: Note: Warning: Do not use this, ever!<|eot|><|sol|>http://www.php.net/manual/en/function.extract.php#refsect1-function.extract-notes<|eol|><|soopr|>I know the second note and warning are about using it in conjunction with `register_globals`, but I find this humorous if only because of how PHP pr...
17
lolphp
_vec_
cdyc3tf
<|sols|><|sot|>Warning: Note: Warning: Do not use this, ever!<|eot|><|sol|>http://www.php.net/manual/en/function.extract.php#refsect1-function.extract-notes<|eol|><|sor|>So this function is a sharp knife with a broken handle (the `EXTR_SKIP` option is mandatory and should be the default), but I have actually seen a non...
8
lolphp
_vec_
cdyj562
<|sols|><|sot|>Warning: Note: Warning: Do not use this, ever!<|eot|><|sol|>http://www.php.net/manual/en/function.extract.php#refsect1-function.extract-notes<|eol|><|sor|>So this function is a sharp knife with a broken handle (the `EXTR_SKIP` option is mandatory and should be the default), but I have actually seen a non...
7
lolphp
poizan42
cdyf7at
<|sols|><|sot|>Warning: Note: Warning: Do not use this, ever!<|eot|><|sol|>http://www.php.net/manual/en/function.extract.php#refsect1-function.extract-notes<|eol|><|sor|>So this function is a sharp knife with a broken handle (the `EXTR_SKIP` option is mandatory and should be the default), but I have actually seen a non...
6
lolphp
_vec_
cdymbxx
<|sols|><|sot|>Warning: Note: Warning: Do not use this, ever!<|eot|><|sol|>http://www.php.net/manual/en/function.extract.php#refsect1-function.extract-notes<|eol|><|sor|>There's one instance in which I will use extract(). That is in a template rendering function. As long as the function does nothing but extract the var...
5
lolphp
LongDistanceEjcltr
8cndje
<|sols|><|sot|>wat<|eot|><|sol|>https://3v4l.org/l49VX<|eol|><|eols|><|endoftext|>
67
lolphp
andsens
dxg9l0j
<|sols|><|sot|>wat<|eot|><|sol|>https://3v4l.org/l49VX<|eol|><|sor|>Haha, wat indeed. [I figured it out](https://3v4l.org/X3kb4). Somewhere the element is type coerced into an integer.<|eor|><|eols|><|endoftext|>
25
lolphp
fell_ratio
dxgdv0r
<|sols|><|sot|>wat<|eot|><|sol|>https://3v4l.org/l49VX<|eol|><|sor|>Haha, wat indeed. [I figured it out](https://3v4l.org/X3kb4). Somewhere the element is type coerced into an integer.<|eor|><|sor|>Now we just wait for someone to comment that this is the documented behavior of simplexml.<|eor|><|eols|><|endoftext|>
22
lolphp
FlyLo11
dxgiuec
<|sols|><|sot|>wat<|eot|><|sol|>https://3v4l.org/l49VX<|eol|><|sor|>Haha, wat indeed. [I figured it out](https://3v4l.org/X3kb4). Somewhere the element is type coerced into an integer.<|eor|><|sor|>It happens during division: https://3v4l.org/VFo9o where it tries to convert the object to int instead of float for some r...
17
lolphp
human_bacon
dxhzsvb
<|sols|><|sot|>wat<|eot|><|sol|>https://3v4l.org/l49VX<|eol|><|sor|>So I did some digging before filing a bug report, turns out this is a known bug and shall be fixed in php 7.3 https://bugs.php.net/bug.php?id=54973 https://github.com/php/php-src/blob/b2b2b437af5495dcb2016be6e45567ed826cb87e/NEWS#L140 But of course,...
12
lolphp
polish_niceguy
dxi1e9z
<|sols|><|sot|>wat<|eot|><|sol|>https://3v4l.org/l49VX<|eol|><|sor|>So I did some digging before filing a bug report, turns out this is a known bug and shall be fixed in php 7.3 https://bugs.php.net/bug.php?id=54973 https://github.com/php/php-src/blob/b2b2b437af5495dcb2016be6e45567ed826cb87e/NEWS#L140 But of course,...
7
lolphp
UnusualBear
dxmqy83
<|sols|><|sot|>wat<|eot|><|sol|>https://3v4l.org/l49VX<|eol|><|sor|>Haha, wat indeed. [I figured it out](https://3v4l.org/X3kb4). Somewhere the element is type coerced into an integer.<|eor|><|sor|>That's such ridiculous behavior. Why in gods name would reading from an XML document not remain a string unless otherwise ...
7
lolphp
cythrawll
dxhszx0
<|sols|><|sot|>wat<|eot|><|sol|>https://3v4l.org/l49VX<|eol|><|sor|>Haha, wat indeed. [I figured it out](https://3v4l.org/X3kb4). Somewhere the element is type coerced into an integer.<|eor|><|sor|>The real WTF is choosing to use simplexml over the better xml parsing dom choice, DOMDocument. come fight me. https://3v...
6
lolphp
DaRKoN_
11xn3a
<|sols|><|sot|>Guess the value of $foo<|eot|><|sol|>http://www.phpfiddle.org/lite/code/jxs-h05<|eol|><|eols|><|endoftext|>
69
lolphp
realnowhereman
c6qhhz1
<|sols|><|sot|>Guess the value of $foo<|eot|><|sol|>http://www.phpfiddle.org/lite/code/jxs-h05<|eol|><|soopr|>Can anyone explain how this happens?<|eoopr|><|sor|>php allows you to index into strings as if they were arrays, just to be even more broken: $str = 'bar'; $str[0] = 'x'; Same thing is happening here,...
23
lolphp
Tjoppen
c6qqdcp
<|sols|><|sot|>Guess the value of $foo<|eot|><|sol|>http://www.phpfiddle.org/lite/code/jxs-h05<|eol|><|sor|>[deleted]<|eor|><|sor|>>Wello The official /r/lolphp greeting<|eor|><|eols|><|endoftext|>
16
lolphp
DaRKoN_
c6qg8hh
<|sols|><|sot|>Guess the value of $foo<|eot|><|sol|>http://www.phpfiddle.org/lite/code/jxs-h05<|eol|><|soopr|>Can anyone explain how this happens?<|eoopr|><|eols|><|endoftext|>
9
lolphp
huf
c6qgc6n
<|sols|><|sot|>Guess the value of $foo<|eot|><|sol|>http://www.phpfiddle.org/lite/code/jxs-h05<|eol|><|soopr|>Can anyone explain how this happens?<|eoopr|><|sor|>php allows you to index into strings as if they were arrays, just to be even more broken: $str = 'bar'; $str[0] = 'x'; Same thing is happening here,...
9
lolphp
realnowhereman
c6qoask
<|sols|><|sot|>Guess the value of $foo<|eot|><|sol|>http://www.phpfiddle.org/lite/code/jxs-h05<|eol|><|soopr|>Can anyone explain how this happens?<|eoopr|><|sor|>php allows you to index into strings as if they were arrays, just to be even more broken: $str = 'bar'; $str[0] = 'x'; Same thing is happening here,...
8
lolphp
Browsing_From_Work
c8jufgo
<|sols|><|sot|>Guess the value of $foo<|eot|><|sol|>http://www.phpfiddle.org/lite/code/jxs-h05<|eol|><|sor|>Huh, it looks like this issue has been fixed. This is what I received (which is expected): Array ( [foo] => hello [bar] => Array ( [foo] => world ) ) <|eor|><|eols|><|endoftext|>
6
lolphp
dendeigh
8ecd0c
<|sols|><|sot|>`null["foo"] === null`, no notice, no warning :-/<|eot|><|sol|>https://3v4l.org/4A3QS<|eol|><|eols|><|endoftext|>
65
lolphp
cleeder
dxunoin
<|sols|><|sot|>`null["foo"] === null`, no notice, no warning :-/<|eot|><|sol|>https://3v4l.org/4A3QS<|eol|><|sor|>This is quite logical if you remember that string casts to 0 if they start with a letter. It gives you a warning but still evaluates 'foo' to 0 and gives you first letter. Second is also quite logical (if y...
13
lolphp
the_alias_of_andrea
dxuu6l1
<|sols|><|sot|>`null["foo"] === null`, no notice, no warning :-/<|eot|><|sol|>https://3v4l.org/4A3QS<|eol|><|sor|>IIRC it's a side-effect of how `$foo["bar"]["baz"] = [];` (where neither the variable nor the indices exist, they'll be created) is implemented. It's not great, yeah.<|eor|><|eols|><|endoftext|>
6
lolphp
cleeder
dxuo276
<|sols|><|sot|>`null["foo"] === null`, no notice, no warning :-/<|eot|><|sol|>https://3v4l.org/4A3QS<|eol|><|sor|>This is quite logical if you remember that string casts to 0 if they start with a letter. It gives you a warning but still evaluates 'foo' to 0 and gives you first letter. Second is also quite logical (if y...
6
lolphp
shaql
dxzojvr
<|sols|><|sot|>`null["foo"] === null`, no notice, no warning :-/<|eot|><|sol|>https://3v4l.org/4A3QS<|eol|><|sor|>This is quite logical if you remember that string casts to 0 if they start with a letter. It gives you a warning but still evaluates 'foo' to 0 and gives you first letter. Second is also quite logical (if y...
6
lolphp
GoodBot_BadBot
dxzojx4
<|sols|><|sot|>`null["foo"] === null`, no notice, no warning :-/<|eot|><|sol|>https://3v4l.org/4A3QS<|eol|><|sor|>This is quite logical if you remember that string casts to 0 if they start with a letter. It gives you a warning but still evaluates 'foo' to 0 and gives you first letter. Second is also quite logical (if y...
6
lolphp
TheBuzzSaw
3u0ija
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|eols|><|endoftext|>
65
lolphp
PlasmaSheep
cxavg70
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>>Today were announcing something brand new, a new approach to WordPress, and open sourcing the code behind it. Wow, it's great to have a project like this leave php behind... >Written purely in JavaScrip...
102
lolphp
merreborn
cxax4k5
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>Note: "wordpress core" is still PHP for the forseeable future. This *might* replace the wp-admin UI, eventually. So don't get your hopes up. Poorly written, vulnerable PHP plugins for wordpress will stil...
36
lolphp
cbraga
cxb0ulu
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>>Today were announcing something brand new, a new approach to WordPress, and open sourcing the code behind it. Wow, it's great to have a project like this leave php behind... >Written purely in JavaScrip...
36
lolphp
mellett68
cxb7ynn
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>Note: "wordpress core" is still PHP for the forseeable future. This *might* replace the wp-admin UI, eventually. So don't get your hopes up. Poorly written, vulnerable PHP plugins for wordpress will stil...
35
lolphp
cliath
cxb7xcc
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>>Today were announcing something brand new, a new approach to WordPress, and open sourcing the code behind it. Wow, it's great to have a project like this leave php behind... >Written purely in JavaScrip...
28
lolphp
catcradle5
cxbcj0t
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>>Today were announcing something brand new, a new approach to WordPress, and open sourcing the code behind it. Wow, it's great to have a project like this leave php behind... >Written purely in JavaScrip...
23
lolphp
leyou
cxcgnrz
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>Really? I think PHP is more fed up with Wordpress than the opposite.<|eor|><|eols|><|endoftext|>
9
lolphp
merreborn
cxbgzni
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>Note: "wordpress core" is still PHP for the forseeable future. This *might* replace the wp-admin UI, eventually. So don't get your hopes up. Poorly written, vulnerable PHP plugins for wordpress will stil...
9
lolphp
cliath
cxbuskj
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>>Today were announcing something brand new, a new approach to WordPress, and open sourcing the code behind it. Wow, it's great to have a project like this leave php behind... >Written purely in JavaScrip...
9
lolphp
losingthefight
cxb41bd
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>>Today were announcing something brand new, a new approach to WordPress, and open sourcing the code behind it. Wow, it's great to have a project like this leave php behind... >Written purely in JavaScrip...
7
lolphp
TMiguelT
cxb1tas
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>>Today were announcing something brand new, a new approach to WordPress, and open sourcing the code behind it. Wow, it's great to have a project like this leave php behind... >Written purely in JavaScrip...
6
lolphp
TMiguelT
cxbdqlx
<|sols|><|sot|>Even Wordpress is fed up with PHP<|eot|><|sol|>http://ma.tt/2015/11/dance-to-calypso/<|eol|><|sor|>>Today were announcing something brand new, a new approach to WordPress, and open sourcing the code behind it. Wow, it's great to have a project like this leave php behind... >Written purely in JavaScrip...
6