subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
ajmarks
cds2t3s
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>Of course by "standard library" you mean "built into the ...
22
lolphp
hex_m_hell
cdsese7
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>Of course by "standard library" you mean "built into the ...
21
lolphp
barubary
cdrwi76
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>Of course by "standard library" you mean "built into the ...
16
lolphp
scshunt
cdrvr2w
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>I like that there is a function to convert from Julian to...
13
lolphp
cfreak2399
cds5qy9
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>Of course by "standard library" you mean "built into the ...
13
lolphp
vytah
cdsgt7p
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>I find these more useful: * [gzgetss](http://www.php.net...
10
lolphp
suspiciously_calm
cdrykby
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>As an aside, I just love the consistent naming... * JDTo...
9
lolphp
AllenJB83
cdryx3o
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>Of course by "standard library" you mean "built into the ...
9
lolphp
00kyle00
cdtoj8t
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>As an aside, I just love the consistent naming... * JDTo...
9
lolphp
barubary
cdsdq08
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>Of course by "standard library" you mean "built into the ...
6
lolphp
Innominate8
cdshj1u
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>Of course by "standard library" you mean "built into the ...
6
lolphp
ajmarks
cdsg7zk
<|soss|><|sot|>Some useful functions from the PHP standard library<|eot|><|sost|>* http://www.php.net/manual/en/function.jewishtojd.php * http://www.php.net/manual/en/function.easter-date.php * http://www.php.net/manual/en/function.easter-days.php <|eost|><|sor|>Of course by "standard library" you mean "built into the ...
5
lolphp
Serialk
1j0nki
<|sols|><|sot|>openssl_x509_parse(), PHP 4.0.6 (23 june 2001) : "The structure of the returned data is (deliberately) not yet documented, as it is still subject to change."<|eot|><|sol|>http://php.net/manual/en/function.openssl-x509-parse.php<|eol|><|eols|><|endoftext|>
51
lolphp
merreborn
cba59he
<|sols|><|sot|>openssl_x509_parse(), PHP 4.0.6 (23 june 2001) : "The structure of the returned data is (deliberately) not yet documented, as it is still subject to change."<|eot|><|sol|>http://php.net/manual/en/function.openssl-x509-parse.php<|eol|><|sor|>My first personal experience with this sort of documentation iss...
11
lolphp
h0rst_
cba32am
<|sols|><|sot|>openssl_x509_parse(), PHP 4.0.6 (23 june 2001) : "The structure of the returned data is (deliberately) not yet documented, as it is still subject to change."<|eot|><|sol|>http://php.net/manual/en/function.openssl-x509-parse.php<|eol|><|sor|>This probably has more to do with openssl than it does PHP. I'd ...
8
lolphp
MonadicTraversal
cbak5uc
<|sols|><|sot|>openssl_x509_parse(), PHP 4.0.6 (23 june 2001) : "The structure of the returned data is (deliberately) not yet documented, as it is still subject to change."<|eot|><|sol|>http://php.net/manual/en/function.openssl-x509-parse.php<|eol|><|sor|>That's fair. You don't want to make stability promises you can't...
7
lolphp
topaz2078
13y0hz
<|sols|><|sot|>PHP Sadness #52, An illustrated guide to PHP's intransitive, circular comparison operators<|eot|><|sol|>http://phpsadness.com/sad/52<|eol|><|eols|><|endoftext|>
46
lolphp
Tjoppen
c78ip07
<|sols|><|sot|>PHP Sadness #52, An illustrated guide to PHP's intransitive, circular comparison operators<|eot|><|sol|>http://phpsadness.com/sad/52<|eol|><|sor|>This one is about as stupid... http://phpsadness.com/sad/26<|eor|><|sor|>>E_ALL doesn't actually mean "E_ALL"; it means E_ACTUALLY_ALL & ~E_STRICT. I foresee...
5
lolphp
minh-phuc
hhvtpp
<|sols|><|sot|>PHP RFC: Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON<|eot|><|sol|>https://wiki.php.net/rfc/rename-double-colon-token<|eol|><|eols|><|endoftext|>
51
lolphp
blueskin
fwde92d
<|sols|><|sot|>PHP RFC: Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON<|eot|><|sol|>https://wiki.php.net/rfc/rename-double-colon-token<|eol|><|sor|>[deleted]<|eor|><|sor|>When the entire rest of the project is in English, you should use English. If you don't speak it, then I'm not sure how easy it would be to make con...
28
lolphp
Miserable_Fuck
fwcmkzz
<|sols|><|sot|>PHP RFC: Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON<|eot|><|sol|>https://wiki.php.net/rfc/rename-double-colon-token<|eol|><|sor|>Lots of NO votes<|eor|><|eols|><|endoftext|>
24
lolphp
fell_ratio
fwduyka
<|sols|><|sot|>PHP RFC: Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON<|eot|><|sol|>https://wiki.php.net/rfc/rename-double-colon-token<|eol|><|sor|>Christ, are they still debating this? I remember this coming up five years ago, and lots of people advocating for this change, but apparently nothing happened.<|eor|><|eo...
24
lolphp
kafoozalum
fwdmly6
<|sols|><|sot|>PHP RFC: Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON<|eot|><|sol|>https://wiki.php.net/rfc/rename-double-colon-token<|eol|><|sor|>[deleted]<|eor|><|sor|>[deleted]<|eor|><|sor|>> but it's not a fair criticism of PHP that the language has internal codes that reflect the inventor's first language When ...
22
lolphp
cfreak2399
fwdcon6
<|sols|><|sot|>PHP RFC: Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON<|eot|><|sol|>https://wiki.php.net/rfc/rename-double-colon-token<|eol|><|sor|>[deleted]<|eor|><|sor|>[deleted]<|eor|><|sor|>Agreed. The token name in the error and the fact they haven't been able to fix that over the last 20 years is the real LOL PH...
19
lolphp
yawkat
fwdcmwg
<|sols|><|sot|>PHP RFC: Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON<|eot|><|sol|>https://wiki.php.net/rfc/rename-double-colon-token<|eol|><|sor|>[deleted]<|eor|><|sor|>Even software projects built by entirely single-nationality teams should use English.<|eor|><|eols|><|endoftext|>
12
lolphp
KFCConspiracy
fwfq1t8
<|sols|><|sot|>PHP RFC: Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON<|eot|><|sol|>https://wiki.php.net/rfc/rename-double-colon-token<|eol|><|sor|>Lots of NO votes<|eor|><|sor|>[deleted]<|eor|><|sor|>The second one is valid<|eor|><|eols|><|endoftext|>
6
lolphp
Takeoded
bltr45
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|eols|><|endoftext|>
51
lolphp
Takeoded
emrao7i
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|soopr|>issue here is that \`double\` is just an alias for \`float\` ... except in function declarations, where double is not an alias for float... presumably because consistency is overrated anyway?<|eoopr|><|eols|><|en...
31
lolphp
tdammers
emrb91l
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|soopr|>issue here is that \`double\` is just an alias for \`float\` ... except in function declarations, where double is not an alias for float... presumably because consistency is overrated anyway?<|eoopr|><|sor|>Or ma...
20
lolphp
dotancohen
emt7c3f
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|sor|>The PHP 5 error message is a lolphp all by itself: > Argument 1 passed to f() must be an instance of double, double given, called in /in/4dGn7<|eor|><|eols|><|endoftext|>
15
lolphp
Takeoded
emreeck
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|soopr|>issue here is that \`double\` is just an alias for \`float\` ... except in function declarations, where double is not an alias for float... presumably because consistency is overrated anyway?<|eoopr|><|sor|>Well ...
11
lolphp
the_alias_of_andrea
ems1n1t
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|soopr|>issue here is that \`double\` is just an alias for \`float\` ... except in function declarations, where double is not an alias for float... presumably because consistency is overrated anyway?<|eoopr|><|sor|>`(dou...
8
lolphp
Takeoded
emrdq7y
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|soopr|>issue here is that \`double\` is just an alias for \`float\` ... except in function declarations, where double is not an alias for float... presumably because consistency is overrated anyway?<|eoopr|><|sor|>Well ...
7
lolphp
the_alias_of_andrea
emsgpsx
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|soopr|>issue here is that \`double\` is just an alias for \`float\` ... except in function declarations, where double is not an alias for float... presumably because consistency is overrated anyway?<|eoopr|><|sor|>What ...
7
lolphp
abermea
emre4ew
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|soopr|>issue here is that \`double\` is just an alias for \`float\` ... except in function declarations, where double is not an alias for float... presumably because consistency is overrated anyway?<|eoopr|><|sor|>Well ...
7
lolphp
phplovesong
en008x1
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|sor|>It gets worse. PHP has hundreds of what they call "aliases". Originally they were added to ease the mind-bendingly badly named functions with more human readable naming. The kicker is they never removed the old one...
6
lolphp
Takeoded
emt59at
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|soopr|>issue here is that \`double\` is just an alias for \`float\` ... except in function declarations, where double is not an alias for float... presumably because consistency is overrated anyway?<|eoopr|><|sor|>`(dou...
6
lolphp
abermea
emrck9g
<|sols|><|sot|>casting to double doesn't give you double<|eot|><|sol|>https://3v4l.org/4dGn7<|eol|><|soopr|>issue here is that \`double\` is just an alias for \`float\` ... except in function declarations, where double is not an alias for float... presumably because consistency is overrated anyway?<|eoopr|><|sor|>Well ...
5
lolphp
Danack
7xamy2
<|sols|><|sot|>Return true to win<|eot|><|sol|>https://returntrue.win/<|eol|><|eols|><|endoftext|>
48
lolphp
Matt3k
du7si0g
<|sols|><|sot|>Return true to win<|eot|><|sol|>https://returntrue.win/<|eol|><|sor|>> Error: Rate limit reached, please try again later lol<|eor|><|eols|><|endoftext|>
9
lolphp
bladder-rinse-repeat
du81jqd
<|sols|><|sot|>Return true to win<|eot|><|sol|>https://returntrue.win/<|eol|><|sor|>yeah these were pretty fun. The Absolute best scores are total rubbish tough. Also i'm not sure how smart it is to eval random people's inputs lol <|eor|><|sor|>I think we're playing `true` golf, so a shorter input is better.<|eor...
7
lolphp
huf
du886bh
<|sols|><|sot|>Return true to win<|eot|><|sol|>https://returntrue.win/<|eol|><|sor|>why does it die with a weird parse error if you enter ""? how much more php can this get? :D<|eor|><|eols|><|endoftext|>
6
lolphp
Bl00dsoul
du71r12
<|sols|><|sot|>Return true to win<|eot|><|sol|>https://returntrue.win/<|eol|><|sor|>yeah these were pretty fun. The Absolute best scores are total rubbish tough. Also i'm not sure how smart it is to eval random people's inputs lol <|eor|><|eols|><|endoftext|>
6
lolphp
Danack
du8aqoe
<|sols|><|sot|>Return true to win<|eot|><|sol|>https://returntrue.win/<|eol|><|sor|>why does it die with a weird parse error if you enter ""? how much more php can this get? :D<|eor|><|soopr|>I smell eval.<|eoopr|><|eols|><|endoftext|>
5
lolphp
kauffj
21s691
<|sols|><|sot|>Throwing an exception inside __toString() is a fatal error<|eot|><|sol|>http://stackoverflow.com/questions/2429642/why-its-impossible-to-throw-exception-from-tostring<|eol|><|eols|><|endoftext|>
48
lolphp
Rhomboid
cgg57bv
<|sols|><|sot|>Throwing an exception inside __toString() is a fatal error<|eot|><|sol|>http://stackoverflow.com/questions/2429642/why-its-impossible-to-throw-exception-from-tostring<|eol|><|sor|>"Hi, I'm PHP! Welcome to our home. Oh, make sure you don't plug anything into the outlet in the bathroom -- that will cause...
37
lolphp
ajmarks
cgg2wk0
<|sols|><|sot|>Throwing an exception inside __toString() is a fatal error<|eot|><|sol|>http://stackoverflow.com/questions/2429642/why-its-impossible-to-throw-exception-from-tostring<|eol|><|sor|>It is reasonable to expect that __toString() will return string. Your thread is shit, OP.<|eor|><|sor|>The exception would no...
30
lolphp
F-J-W
cgg31te
<|sols|><|sot|>Throwing an exception inside __toString() is a fatal error<|eot|><|sol|>http://stackoverflow.com/questions/2429642/why-its-impossible-to-throw-exception-from-tostring<|eol|><|sor|>It is reasonable to expect that __toString() will return string. Your thread is shit, OP.<|eor|><|sor|>Not sure if sarcastic ...
19
lolphp
kauffj
cgfzj77
<|sols|><|sot|>Throwing an exception inside __toString() is a fatal error<|eot|><|sol|>http://stackoverflow.com/questions/2429642/why-its-impossible-to-throw-exception-from-tostring<|eol|><|soopr|>[Bonus](https://bugs.php.net/bug.php?id=53648)<|eoopr|><|eols|><|endoftext|>
14
lolphp
more_exercise
cggs5x5
<|sols|><|sot|>Throwing an exception inside __toString() is a fatal error<|eot|><|sol|>http://stackoverflow.com/questions/2429642/why-its-impossible-to-throw-exception-from-tostring<|eol|><|sor|>"Hi, I'm PHP! Welcome to our home. Oh, make sure you don't plug anything into the outlet in the bathroom -- that will cause...
9
lolphp
frezik
cggek7e
<|sols|><|sot|>Throwing an exception inside __toString() is a fatal error<|eot|><|sol|>http://stackoverflow.com/questions/2429642/why-its-impossible-to-throw-exception-from-tostring<|eol|><|sor|>It is reasonable to expect that __toString() will return string. Your thread is shit, OP.<|eor|><|sor|>It's reasonable to exp...
9
lolphp
the-fritz
1o6chm
<|sols|><|sot|>Values that are == to each other in PHP.<|eot|><|sol|>http://i.imgur.com/pyDTn2i.png<|eol|><|eols|><|endoftext|>
52
lolphp
kcsj0
ccpbszf
<|sols|><|sot|>Values that are == to each other in PHP.<|eot|><|sol|>http://i.imgur.com/pyDTn2i.png<|eol|><|sor|>Haha, this is great! :)) Could you do that again with a font that makes it easy to distinguish 1 and l?<|eor|><|sor|>It probably doesn't matter with PHP.<|eor|><|eols|><|endoftext|>
42
lolphp
despens
ccp6iyc
<|sols|><|sot|>Values that are == to each other in PHP.<|eot|><|sol|>http://i.imgur.com/pyDTn2i.png<|eol|><|sor|>Haha, this is great! :)) Could you do that again with a font that makes it easy to distinguish 1 and l?<|eor|><|eols|><|endoftext|>
15
lolphp
derogbortigjen
ccpizqi
<|sols|><|sot|>Values that are == to each other in PHP.<|eot|><|sol|>http://i.imgur.com/pyDTn2i.png<|eol|><|sor|>Many of these are not true. OP is a troll. <|eor|><|eols|><|endoftext|>
13
lolphp
duskwuff
ccpbosa
<|sols|><|sot|>Values that are == to each other in PHP.<|eot|><|sol|>http://i.imgur.com/pyDTn2i.png<|eol|><|sor|>This doesn't look right. I wasn't able to reproduce most of the results indicated, other than a few of the really simple ones like `"0"` and `"0.0"`.<|eor|><|eols|><|endoftext|>
12
lolphp
deusex_
ccpgbzt
<|sols|><|sot|>Values that are == to each other in PHP.<|eot|><|sol|>http://i.imgur.com/pyDTn2i.png<|eol|><|sor|>'<p>1</p>' != '1', there are quite a few links that do not work at all.<|eor|><|eols|><|endoftext|>
9
lolphp
MrDOS
ccpl6xt
<|sols|><|sot|>Values that are == to each other in PHP.<|eot|><|sol|>http://i.imgur.com/pyDTn2i.png<|eol|><|sor|>I've seen a couple of graphs like this to varying degrees of messiness. Has anyone made one of these with ===? Is it sane?<|eor|><|sor|>> Is it sane? Given the intended meaning of `===`, I would sure hope i...
6
lolphp
djsumdog
ccp9t8u
<|sols|><|sot|>Values that are == to each other in PHP.<|eot|><|sol|>http://i.imgur.com/pyDTn2i.png<|eol|><|sor|>I've seen a couple of graphs like this to varying degrees of messiness. Has anyone made one of these with ===? Is it sane?<|eor|><|eols|><|endoftext|>
5
lolphp
jamwaffles
1l71jx
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|eols|><|endoftext|>
49
lolphp
jamwaffles
cbwcarm
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|soopr|>The code from the second answer down is particularly... enlightening: class A { public function test() { echo $this->name; } } ...
39
lolphp
phoshi
cbwigat
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|soopr|>The code from the second answer down is particularly... enlightening: class A { public function test() { echo $this->name; } } ...
24
lolphp
davvblack
cbwjzgx
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|soopr|>The code from the second answer down is particularly... enlightening: class A { public function test() { echo $this->name; } } ...
16
lolphp
catcradle5
cbwmprf
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|soopr|>The code from the second answer down is particularly... enlightening: class A { public function test() { echo $this->name; } } ...
12
lolphp
nikic
cbwvz8f
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|sor|>The only reason this is surprising is that people commonly think that `::` is the "static access operator" and that static methods are some completely different...
10
lolphp
Sarcastinator
cbwwsva
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|sor|>The only reason this is surprising is that people commonly think that `::` is the "static access operator" and that static methods are some completely different...
9
lolphp
cythrawll
cbwo6k7
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|soopr|>The code from the second answer down is particularly... enlightening: class A { public function test() { echo $this->name; } } ...
8
lolphp
more_exercise
cbxx17y
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|sor|>The only reason this is surprising is that people commonly think that `::` is the "static access operator" and that static methods are some completely different...
8
lolphp
boxingdog
cbwkku1
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|soopr|>The code from the second answer down is particularly... enlightening: class A { public function test() { echo $this->name; } } ...
6
lolphp
more_exercise
cbxxntu
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|sor|>The only reason this is surprising is that people commonly think that `::` is the "static access operator" and that static methods are some completely different...
6
lolphp
ChoHag
cbwkf8x
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|sor|>This is because of its perl roots, which does basically exactly the same thing, except it makes sense: The $x->foo(...) calling convention is *exactly* the same...
5
lolphp
ChoHag
cbwv5ti
<|sols|><|sot|>Static or non static? Fuck it, have whatever<|eot|><|sol|>http://stackoverflow.com/questions/3754786/calling-non-static-method-with<|eol|><|sor|>This is because of its perl roots, which does basically exactly the same thing, except it makes sense: The $x->foo(...) calling convention is *exactly* the same...
5
lolphp
sclv
1gtbfg
<|sols|><|sot|>Downcasting, the PHP way<|eot|><|sol|>http://thedailywtf.com/Articles/Pot-o-Gold.aspx<|eol|><|eols|><|endoftext|>
48
lolphp
phoshi
cao65mt
<|sols|><|sot|>Downcasting, the PHP way<|eot|><|sol|>http://thedailywtf.com/Articles/Pot-o-Gold.aspx<|eol|><|sor|>The basic idea isn't all that crazy. The Common Lisp Object System (CLOS) [allows for changing the class of an object](http://clhs.lisp.se/Body/f_chg_cl.htm) on-the-fly. However, it's not built on some hoke...
7
lolphp
throwaway-o
p95wz
<|sols|><|sot|>Fix security bug. Fix introduces much worse security bug.<|eot|><|sol|>http://www.h-online.com/security/news/item/Critical-PHP-vulnerability-being-fixed-Update-1427316.html<|eol|><|eols|><|endoftext|>
48
lolphp
GarlicCornflakes
cadnqe
<|sols|><|sot|>PHP will not throw an error when making nonsensical comparisons with the min and max functions. When comparing 0 (int) and 'hello' (string) the output is dependant on the order the parameters were passed.<|eot|><|sol|>https://www.php.net/manual/en/function.min.php<|eol|><|eols|><|endoftext|>
48
lolphp
shitcanz
et8vac4
<|sols|><|sot|>PHP will not throw an error when making nonsensical comparisons with the min and max functions. When comparing 0 (int) and 'hello' (string) the output is dependant on the order the parameters were passed.<|eot|><|sol|>https://www.php.net/manual/en/function.min.php<|eol|><|sor|>Time and time again, PHP ha...
11
lolphp
SirClueless
et82vde
<|sols|><|sot|>PHP will not throw an error when making nonsensical comparisons with the min and max functions. When comparing 0 (int) and 'hello' (string) the output is dependant on the order the parameters were passed.<|eot|><|sol|>https://www.php.net/manual/en/function.min.php<|eol|><|sor|>This doesn't seem weird to ...
10
lolphp
yawkat
et8srpk
<|sols|><|sot|>PHP will not throw an error when making nonsensical comparisons with the min and max functions. When comparing 0 (int) and 'hello' (string) the output is dependant on the order the parameters were passed.<|eot|><|sol|>https://www.php.net/manual/en/function.min.php<|eol|><|sor|>This doesn't seem weird to ...
10
lolphp
BufferUnderpants
et9bayn
<|sols|><|sot|>PHP will not throw an error when making nonsensical comparisons with the min and max functions. When comparing 0 (int) and 'hello' (string) the output is dependant on the order the parameters were passed.<|eot|><|sol|>https://www.php.net/manual/en/function.min.php<|eol|><|sor|>if you put garbage in you a...
9
lolphp
dotancohen
et97lm5
<|sols|><|sot|>PHP will not throw an error when making nonsensical comparisons with the min and max functions. When comparing 0 (int) and 'hello' (string) the output is dependant on the order the parameters were passed.<|eot|><|sol|>https://www.php.net/manual/en/function.min.php<|eol|><|sor|>This doesn't seem weird to ...
7
lolphp
squiggleslash
et9ch1q
<|sols|><|sot|>PHP will not throw an error when making nonsensical comparisons with the min and max functions. When comparing 0 (int) and 'hello' (string) the output is dependant on the order the parameters were passed.<|eot|><|sol|>https://www.php.net/manual/en/function.min.php<|eol|><|sor|>if you put garbage in you a...
7
lolphp
BufferUnderpants
et9bl3t
<|sols|><|sot|>PHP will not throw an error when making nonsensical comparisons with the min and max functions. When comparing 0 (int) and 'hello' (string) the output is dependant on the order the parameters were passed.<|eot|><|sol|>https://www.php.net/manual/en/function.min.php<|eol|><|sor|>This doesn't seem weird to ...
7
lolphp
Mattho
7eq7j1
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|eols|><|endoftext|>
51
lolphp
Saltub
dq6p8a4
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>The bigger problem, that is perhaps less well understood, ...
36
lolphp
alercah
dq6p08r
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>"Currently the "@" error-control operator prefix will even...
34
lolphp
alercah
dq6oznn
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>*prepend* isn't a word. You mean *prefix*.<|eor|><|sor|>Pr...
34
lolphp
AyrA_ch
dq6p8f1
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>"Currently the "@" error-control operator prefix will even...
21
lolphp
coredumperror
dq7qrcm
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>"Currently the "@" error-control operator prefix will even...
17
lolphp
inabahare
dq6xtqo
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>*prepend* isn't a word. You mean *prefix*.<|eor|><|sor|>ht...
17
lolphp
AyrA_ch
dq6zbrs
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>[deleted]<|eor|><|sor|>There is a JS variant of this too: ...
15
lolphp
MazeChaZer
dq6vmyw
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>Even worse, it doesn't suppress the actual error, but just...
14
lolphp
Boldewyn
dq6oz83
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>*prepend* isn't a word. You mean *prefix*.<|eor|><|sor|>_O...
12
lolphp
Max-P
dq7nkx9
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>What's worse is that this operator is necessary with some ...
8
lolphp
Mattho
dq705ye
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>Even worse, it doesn't suppress the actual error, but just...
8
lolphp
afraca
dq76yig
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>[deleted]<|eor|><|sor|>There is a JS variant of this too: ...
8
lolphp
masklinn
dq8ob4q
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>The bigger problem, that is perhaps less well understood, ...
7
lolphp
coredumperror
dq8qx2a
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>"Currently the "@" error-control operator prefix will even...
6
lolphp
Takeoded
dqfi8ox
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>Even worse, it doesn't suppress the actual error, but just...
5
lolphp
OneWingedShark
dqhmc6j
<|sols|><|sot|>PHP supports error control operator '@'. When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.<|eot|><|sol|>http://php.net/manual/en/language.operators.errorcontrol.php<|eol|><|sor|>Even worse, it doesn't suppress the actual error, but just...
5