subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
Matt3k
ef7i4ng
<|sols|><|sot|>The fuckery that is $http_response_header<|eot|><|sol|>https://twitter.com/asgrim/status/1089117795957256193<|eol|><|sor|>...what?<|eor|><|sor|>- Variables magically created in the local scope, rather than supplied as a function result. - Three undocumented gotchas mentioned in the first handful of user ...
13
lolphp
teizhen
ef7crd5
<|sols|><|sot|>The fuckery that is $http_response_header<|eot|><|sol|>https://twitter.com/asgrim/status/1089117795957256193<|eol|><|sor|>...what?<|eor|><|sor|>Someone promoting their unfunny Twatter.<|eor|><|eols|><|endoftext|>
5
lolphp
c_o_r_b_a
ef7qc69
<|sols|><|sot|>The fuckery that is $http_response_header<|eot|><|sol|>https://twitter.com/asgrim/status/1089117795957256193<|eol|><|sor|>...what?<|eor|><|sor|>- Variables magically created in the local scope, rather than supplied as a function result. - Three undocumented gotchas mentioned in the first handful of user ...
5
lolphp
RainOnYourTirade
65glxm
<|soss|><|sot|>Trying to override a standard class? Good luck with default parameters.<|eot|><|sost|>I recently made a class that extends the PDO database class, with support for custom prefixed tables. I ran into this wonderful chain of PHP warnings along the way: public function prepare($statement, array $driver_op...
12
lolphp
jesseschalken
dgadjc0
<|soss|><|sot|>Trying to override a standard class? Good luck with default parameters.<|eot|><|sost|>I recently made a class that extends the PDO database class, with support for custom prefixed tables. I ran into this wonderful chain of PHP warnings along the way: public function prepare($statement, array $driver_op...
15
lolphp
jesseschalken
dgaes8u
<|soss|><|sot|>Trying to override a standard class? Good luck with default parameters.<|eot|><|sost|>I recently made a class that extends the PDO database class, with support for custom prefixed tables. I ran into this wonderful chain of PHP warnings along the way: public function prepare($statement, array $driver_op...
8
lolphp
ealf
57a2ea
<|sols|><|sot|>DOMDocument assumes the first element it sees is the document element and quietly stuffs all other content inside that.<|eot|><|sol|>https://3v4l.org/kG4sj<|eol|><|eols|><|endoftext|>
12
lolphp
the_alias_of_andrea
d8qlvih
<|sols|><|sot|>DOMDocument assumes the first element it sees is the document element and quietly stuffs all other content inside that.<|eot|><|sol|>https://3v4l.org/kG4sj<|eol|><|sor|>Hmm, is that strictly incorrect behaviour? It is using `LIBXML_HTML_NOIMPLIED`, after all. If it *is* incorrect, given it's using libxm...
14
lolphp
the_alias_of_andrea
d8qgyvh
<|sols|><|sot|>DOMDocument assumes the first element it sees is the document element and quietly stuffs all other content inside that.<|eot|><|sol|>https://3v4l.org/kG4sj<|eol|><|sor|>Hmm, is that strictly incorrect behaviour? It is using `LIBXML_HTML_NOIMPLIED`, after all. If it *is* incorrect, given it's using libxm...
13
lolphp
the_alias_of_andrea
d8q786p
<|sols|><|sot|>DOMDocument assumes the first element it sees is the document element and quietly stuffs all other content inside that.<|eot|><|sol|>https://3v4l.org/kG4sj<|eol|><|sor|>Hmm, is that strictly incorrect behaviour? It is using `LIBXML_HTML_NOIMPLIED`, after all. If it *is* incorrect, given it's using libxm...
9
lolphp
Analemma_
4fuqn9
<|sols|><|sot|>33,000 government logins dumped, because someone copy-pasted from PHP's docs<|eot|><|sol|>https://news.ycombinator.com/item?id=11544323<|eol|><|eols|><|endoftext|>
14
lolphp
BilgeXA
d2ca0tw
<|sols|><|sot|>33,000 government logins dumped, because someone copy-pasted from PHP's docs<|eot|><|sol|>https://news.ycombinator.com/item?id=11544323<|eol|><|sor|>That link has nothing to do with 33,000 government logins being dumped.<|eor|><|eols|><|endoftext|>
19
lolphp
DoctorWaluigiTime
d2c61u2
<|sols|><|sot|>33,000 government logins dumped, because someone copy-pasted from PHP's docs<|eot|><|sol|>https://news.ycombinator.com/item?id=11544323<|eol|><|sor|>Less of PHP's fault, more bad programmer's fault. Regardless of language, you shouldn't use online copy/paste examples in your security...<|eor|><|eols|><|...
16
lolphp
startwearinggreen
d2e2fpu
<|sols|><|sot|>33,000 government logins dumped, because someone copy-pasted from PHP's docs<|eot|><|sol|>https://news.ycombinator.com/item?id=11544323<|eol|><|sor|>Less of PHP's fault, more bad programmer's fault. Regardless of language, you shouldn't use online copy/paste examples in your security...<|eor|><|sor|>Thi...
7
lolphp
Takeoded
d2ckbjl
<|sols|><|sot|>33,000 government logins dumped, because someone copy-pasted from PHP's docs<|eot|><|sol|>https://news.ycombinator.com/item?id=11544323<|eol|><|sor|>That link has nothing to do with 33,000 government logins being dumped.<|eor|><|sor|>no, but it got him the likes, didn't it? :p<|eor|><|eols|><|endoftext|>
5
lolphp
the_alias_of_andrea
447mg3
<|sols|><|sot|>PHPWTF<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/445of9/phpwtf/<|eol|><|eols|><|endoftext|>
12
lolphp
andsens
43olfi
<|sols|><|sot|>DateInterval::__construct Creates a new DateInterval object -- The format starts with the letter P, for "period."<|eot|><|sol|>http://fi2.php.net/manual/en/dateinterval.construct.php<|eol|><|eols|><|endoftext|>
11
lolphp
andsens
czjp3p6
<|sols|><|sot|>DateInterval::__construct Creates a new DateInterval object -- The format starts with the letter P, for "period."<|eot|><|sol|>http://fi2.php.net/manual/en/dateinterval.construct.php<|eol|><|soopr|>I think I have to backpedal on this one. The fault doesn't seem to be with PHP but rather the way the ISO ...
19
lolphp
pilif
czjuomx
<|sols|><|sot|>DateInterval::__construct Creates a new DateInterval object -- The format starts with the letter P, for "period."<|eot|><|sol|>http://fi2.php.net/manual/en/dateinterval.construct.php<|eol|><|sor|>The constructor actually uses the ISO specified format. I would recommend to use the much more user-friendly...
12
lolphp
knightry
czjvbjq
<|sols|><|sot|>DateInterval::__construct Creates a new DateInterval object -- The format starts with the letter P, for "period."<|eot|><|sol|>http://fi2.php.net/manual/en/dateinterval.construct.php<|eol|><|soopr|>I think I have to backpedal on this one. The fault doesn't seem to be with PHP but rather the way the ISO ...
10
lolphp
Olathe
czk6ddw
<|sols|><|sot|>DateInterval::__construct Creates a new DateInterval object -- The format starts with the letter P, for "period."<|eot|><|sol|>http://fi2.php.net/manual/en/dateinterval.construct.php<|eol|><|soopr|>I think I have to backpedal on this one. The fault doesn't seem to be with PHP but rather the way the ISO ...
6
lolphp
allthediamonds
2j3tj0
<|sols|><|sot|>[xpost r/PHP] Can you convince me not to use DreamWeaver?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2iub9o/can_you_convince_me_to_not_use_dreamweaver/<|eol|><|eols|><|endoftext|>
10
lolphp
shvelo
cl859vb
<|sols|><|sot|>[xpost r/PHP] Can you convince me not to use DreamWeaver?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2iub9o/can_you_convince_me_to_not_use_dreamweaver/<|eol|><|sor|>Dreamweaver isn't the biggest issue here, he/she was using NOTEPAD, fucking notepad. How stupid should you be to use notepad for anyt...
14
lolphp
h0rst_
cl8iq68
<|sols|><|sot|>[xpost r/PHP] Can you convince me not to use DreamWeaver?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2iub9o/can_you_convince_me_to_not_use_dreamweaver/<|eol|><|sor|>Dreamweaver isn't the biggest issue here, he/she was using NOTEPAD, fucking notepad. How stupid should you be to use notepad for anyt...
13
lolphp
hex_m_hell
cl8833l
<|sols|><|sot|>[xpost r/PHP] Can you convince me not to use DreamWeaver?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2iub9o/can_you_convince_me_to_not_use_dreamweaver/<|eol|><|sor|>Dreamweaver isn't the biggest issue here, he/she was using NOTEPAD, fucking notepad. How stupid should you be to use notepad for anyt...
7
lolphp
arand
cl8aepf
<|sols|><|sot|>[xpost r/PHP] Can you convince me not to use DreamWeaver?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2iub9o/can_you_convince_me_to_not_use_dreamweaver/<|eol|><|sor|>Dreamweaver isn't the biggest issue here, he/she was using NOTEPAD, fucking notepad. How stupid should you be to use notepad for anyt...
7
lolphp
audaxxx
cl89ure
<|sols|><|sot|>[xpost r/PHP] Can you convince me not to use DreamWeaver?<|eot|><|sol|>http://www.reddit.com/r/PHP/comments/2iub9o/can_you_convince_me_to_not_use_dreamweaver/<|eol|><|sor|>Convince me not to use vim. I've used vim for years and I'm really productive in it and I love how I have my settings configured and ...
5
lolphp
lolphp
1owwcz
<|sols|><|sot|>pupesoft - A finnish ERP app.<|eot|><|sol|>https://github.com/devlab-oy/pupesoft<|eol|><|eols|><|endoftext|>
12
lolphp
ma-int
ccwodwa
<|sols|><|sot|>pupesoft - A finnish ERP app.<|eot|><|sol|>https://github.com/devlab-oy/pupesoft<|eol|><|soopr|>the actual lolphp is in the codebase itself. it's spaghetti<|eoopr|><|sor|>can you post an example?<|eor|><|sor|>I took a random sample of 2 files and looked at both. Since my eyes are now bleeding I approxima...
10
lolphp
lolphp
ccwfdse
<|sols|><|sot|>pupesoft - A finnish ERP app.<|eot|><|sol|>https://github.com/devlab-oy/pupesoft<|eol|><|soopr|>the actual lolphp is in the codebase itself. it's spaghetti<|eoopr|><|eols|><|endoftext|>
9
lolphp
bobjohnsonmilw
ccwxawo
<|sols|><|sot|>pupesoft - A finnish ERP app.<|eot|><|sol|>https://github.com/devlab-oy/pupesoft<|eol|><|sor|>I usually am like, ehh, this isn't really that bad. This is pretty bad. Sql mixed in with <font> tags? Wow.<|eor|><|eols|><|endoftext|>
8
lolphp
nikomo
ccwvvxz
<|sols|><|sot|>pupesoft - A finnish ERP app.<|eot|><|sol|>https://github.com/devlab-oy/pupesoft<|eol|><|sor|>As a Finn, this is the most informal Finnish I've seen in a long while. Those commit messages would be fine for a personal thing, but anything that someone else would have to read? Fuck no.<|eor|><|eols|><|endo...
8
lolphp
ajmarks
ccwi3o8
<|sols|><|sot|>pupesoft - A finnish ERP app.<|eot|><|sol|>https://github.com/devlab-oy/pupesoft<|eol|><|sor|>IDGI? Why is this lolphp?<|eor|><|eols|><|endoftext|>
8
lolphp
sopvop
ccwy7cl
<|sols|><|sot|>pupesoft - A finnish ERP app.<|eot|><|sol|>https://github.com/devlab-oy/pupesoft<|eol|><|sor|>Saatana Perkele!<|eor|><|eols|><|endoftext|>
7
lolphp
wwwwolf
ccxr77i
<|sols|><|sot|>pupesoft - A finnish ERP app.<|eot|><|sol|>https://github.com/devlab-oy/pupesoft<|eol|><|sor|>As a Finn, this is the most informal Finnish I've seen in a long while. Those commit messages would be fine for a personal thing, but anything that someone else would have to read? Fuck no.<|eor|><|sor|>The [DB...
6
lolphp
ajmarks
ccwiuwl
<|sols|><|sot|>pupesoft - A finnish ERP app.<|eot|><|sol|>https://github.com/devlab-oy/pupesoft<|eol|><|sor|>IDGI? Why is this lolphp?<|eor|><|sor|>Probably because of gazillion lines of code and phpfiles with finnish naming. That much php must hurt you brain.<|eor|><|sor|>lolfinnish?<|eor|><|eols|><|endoftext|>
6
lolphp
Lokaltog
ccwr1wm
<|sols|><|sot|>pupesoft - A finnish ERP app.<|eot|><|sol|>https://github.com/devlab-oy/pupesoft<|eol|><|soopr|>the actual lolphp is in the codebase itself. it's spaghetti<|eoopr|><|sor|>can you post an example?<|eor|><|sor|>I took a random sample of 2 files and looked at both. Since my eyes are now bleeding I approxima...
5
lolphp
demonyte
ccx2bzh
<|sols|><|sot|>pupesoft - A finnish ERP app.<|eot|><|sol|>https://github.com/devlab-oy/pupesoft<|eol|><|soopr|>the actual lolphp is in the codebase itself. it's spaghetti<|eoopr|><|sor|>can you post an example?<|eor|><|sor|>No examples since you can view just about any file there and have a pretty high WTF/min rate. Bu...
5
lolphp
huf
1m19tb
<|sols|><|sot|>A better way to do substr(PHP_VERSION, 0, 1)...<|eot|><|sol|>https://github.com/jonursenbach/smarty-lint/blob/master/smarty-lint#L29<|eol|><|eols|><|endoftext|>
10
lolphp
huf
cc5ehhz
<|sols|><|sot|>A better way to do substr(PHP_VERSION, 0, 1)...<|eot|><|sol|>https://github.com/jonursenbach/smarty-lint/blob/master/smarty-lint#L29<|eol|><|sor|>Not exactly a lolphp<|eor|><|soopr|>no? then explain that line to me. especially why the rightmost occurrence of $version is required.<|eoopr|><|eols|><|endoft...
5
lolphp
tdammers
1do59z
<|soss|><|sot|>Ten million dollars<|eot|><|sost|>Enjoy: <?php $a="a\n"; $$a=$a; eval('echo ' . str_repeat('$', 10000000) . 'a;'); I really can't imagine why, but it does work. Takes a while though. <|eost|><|eoss|><|endoftext|>
13
lolphp
nikomo
c9zsit3
<|soss|><|sot|>Ten million dollars<|eot|><|sost|>Enjoy: <?php $a="a\n"; $$a=$a; eval('echo ' . str_repeat('$', 10000000) . 'a;'); I really can't imagine why, but it does work. Takes a while though. <|eost|><|sor|>Well, once you permit variable variables the sky is the limit, and combining with in-quot...
16
lolphp
tdammers
ca29j2v
<|soss|><|sot|>Ten million dollars<|eot|><|sost|>Enjoy: <?php $a="a\n"; $$a=$a; eval('echo ' . str_repeat('$', 10000000) . 'a;'); I really can't imagine why, but it does work. Takes a while though. <|eost|><|sor|>> str_repeat('$', 10000000) Ugh. Why couldnt the PHP idiots do sane stuff like `'$'...
11
lolphp
lexyeevee
cag2yl6
<|soss|><|sot|>Ten million dollars<|eot|><|sost|>Enjoy: <?php $a="a\n"; $$a=$a; eval('echo ' . str_repeat('$', 10000000) . 'a;'); I really can't imagine why, but it does work. Takes a while though. <|eost|><|sor|>> str_repeat('$', 10000000) Ugh. Why couldnt the PHP idiots do sane stuff like `'$'...
5
lolphp
OrangeredStilton
vspa8
<|sols|><|sot|>SQLite2 support removed, including session storage; SQLite3 session storage never included<|eot|><|sol|>https://bugs.php.net/bug.php?id=53713<|eol|><|eols|><|endoftext|>
11
lolphp
dipswitch
vbzdw
<|sols|><|sot|>Count the CVEs in todays update<|eot|><|sol|>https://launchpad.net/ubuntu/+source/php5/5.3.10-1ubuntu3.2/+changelog<|eol|><|eols|><|endoftext|>
12
lolphp
ealf
jl7td
<|sols|><|sot|>"hexdec() converts a hexadecimal string to a decimal number"<|eot|><|sol|>http://php.net/hexdec<|eol|><|eols|><|endoftext|>
13
lolphp
i-am-am-nice-really
c2d2w59
<|sols|><|sot|>"hexdec() converts a hexadecimal string to a decimal number"<|eot|><|sol|>http://php.net/hexdec<|eol|><|sor|>pure genius print(hexdec("get fucked php!!")); 982253<|eor|><|eols|><|endoftext|>
8
lolphp
ch0wn
hloz9
<|sols|><|sot|>PHP Sadness<|eot|><|sol|>http://www.phpsadness.com/<|eol|><|eols|><|endoftext|>
11
lolphp
shitcanz
m7l1je
<|soss|><|sot|>PHP when things did not work out as planned<|eot|><|sost|>One of the joys of PHP. Looks like everything needs some sort of hack to work. Its amazing how small things are always so hard. https://phpize.online/?phpses=6f15b18c62823bdcf9e07ac476773a84&sqlses=null&php_version=php8&sql_version=mysql57<|eost|...
11
lolphp
IluTov
grbxhoj
<|soss|><|sot|>PHP when things did not work out as planned<|eot|><|sost|>One of the joys of PHP. Looks like everything needs some sort of hack to work. Its amazing how small things are always so hard. https://phpize.online/?phpses=6f15b18c62823bdcf9e07ac476773a84&sqlses=null&php_version=php8&sql_version=mysql57<|eost|...
10
lolphp
elcapitanoooo
grbz886
<|soss|><|sot|>PHP when things did not work out as planned<|eot|><|sost|>One of the joys of PHP. Looks like everything needs some sort of hack to work. Its amazing how small things are always so hard. https://phpize.online/?phpses=6f15b18c62823bdcf9e07ac476773a84&sqlses=null&php_version=php8&sql_version=mysql57<|eost|...
9
lolphp
squiggleslash
grdsyq7
<|soss|><|sot|>PHP when things did not work out as planned<|eot|><|sost|>One of the joys of PHP. Looks like everything needs some sort of hack to work. Its amazing how small things are always so hard. https://phpize.online/?phpses=6f15b18c62823bdcf9e07ac476773a84&sqlses=null&php_version=php8&sql_version=mysql57<|eost|...
7
lolphp
Takeoded
g8h6jp
<|sols|><|sot|>something seems very wrong with float->int conversion<|eot|><|sol|>https://3v4l.org/PYRPM<|eol|><|eols|><|endoftext|>
12
lolphp
nikic
foo5e98
<|sols|><|sot|>something seems very wrong with float->int conversion<|eot|><|sol|>https://3v4l.org/PYRPM<|eol|><|soopr|>inb4 this is documented behavior: > sometimes floats above 0 but below PHP_INT_MAX when casted to int becomes negative because (blah blah bla) ^^^\/s<|eoopr|><|sor|>But 9223372036854775808 isn't be...
22
lolphp
the_alias_of_andrea
fookkyg
<|sols|><|sot|>something seems very wrong with float->int conversion<|eot|><|sol|>https://3v4l.org/PYRPM<|eol|><|sor|>64-bit PHP_INT_MAX is too large to be represented exactly as a float, so it is rounded to the nearest power of two (2^(63)), which is one greater than PHP_INT_MAX. Float to integer casts in PHP do a tru...
14
lolphp
the_alias_of_andrea
fooibh2
<|sols|><|sot|>something seems very wrong with float->int conversion<|eot|><|sol|>https://3v4l.org/PYRPM<|eol|><|soopr|>inb4 this is documented behavior: > sometimes floats above 0 but below PHP_INT_MAX when casted to int becomes negative because (blah blah bla) ^^^\/s<|eoopr|><|sor|>But 9223372036854775808 isn't be...
7
lolphp
piechart
fonui5q
<|sols|><|sot|>something seems very wrong with float->int conversion<|eot|><|sol|>https://3v4l.org/PYRPM<|eol|><|sor|>Seems like due to float rounding `18446744073709552000 - PHP_INT_MAX === PHP_INT_MAX + 1` which overflows to `PHP_INT_MIN` when cast to int.<|eor|><|eols|><|endoftext|>
5
lolphp
TortoiseWrath
foo1bi5
<|sols|><|sot|>something seems very wrong with float->int conversion<|eot|><|sol|>https://3v4l.org/PYRPM<|eol|><|soopr|>inb4 this is documented behavior: > sometimes floats above 0 but below PHP_INT_MAX when casted to int becomes negative because (blah blah bla) ^^^\/s<|eoopr|><|sor|>But 9223372036854775808 isn't be...
5
lolphp
chin98edwin
cffh1r
<|soss|><|sot|>Awkward function and parameter names?<|eot|><|sost|>I'm rather new to PHP but I'm already hating it from day one. &#x200B; Function names like `implode()`, `explode()` The order of parameters are a mess. I would expect the first parameter to be the array/string and the second to be the separator/joiner...
12
lolphp
vita10gy
eu9rdvi
<|soss|><|sot|>Awkward function and parameter names?<|eot|><|sost|>I'm rather new to PHP but I'm already hating it from day one. &#x200B; Function names like `implode()`, `explode()` The order of parameters are a mess. I would expect the first parameter to be the array/string and the second to be the separator/joiner...
30
lolphp
barubary
euajpsr
<|soss|><|sot|>Awkward function and parameter names?<|eot|><|sost|>I'm rather new to PHP but I'm already hating it from day one. &#x200B; Function names like `implode()`, `explode()` The order of parameters are a mess. I would expect the first parameter to be the array/string and the second to be the separator/joiner...
17
lolphp
tansly
eua9v7x
<|soss|><|sot|>Awkward function and parameter names?<|eot|><|sost|>I'm rather new to PHP but I'm already hating it from day one. &#x200B; Function names like `implode()`, `explode()` The order of parameters are a mess. I would expect the first parameter to be the array/string and the second to be the separator/joiner...
11
lolphp
newplayerentered
eu9vbe1
<|soss|><|sot|>Awkward function and parameter names?<|eot|><|sost|>I'm rather new to PHP but I'm already hating it from day one. &#x200B; Function names like `implode()`, `explode()` The order of parameters are a mess. I would expect the first parameter to be the array/string and the second to be the separator/joiner...
8
lolphp
b1ackcat
eu9mapw
<|soss|><|sot|>Awkward function and parameter names?<|eot|><|sost|>I'm rather new to PHP but I'm already hating it from day one. &#x200B; Function names like `implode()`, `explode()` The order of parameters are a mess. I would expect the first parameter to be the array/string and the second to be the separator/joiner...
7
lolphp
b1ackcat
euao737
<|soss|><|sot|>Awkward function and parameter names?<|eot|><|sost|>I'm rather new to PHP but I'm already hating it from day one. &#x200B; Function names like `implode()`, `explode()` The order of parameters are a mess. I would expect the first parameter to be the array/string and the second to be the separator/joiner...
7
lolphp
the_alias_of_andrea
eu9l6qn
<|soss|><|sot|>Awkward function and parameter names?<|eot|><|sost|>I'm rather new to PHP but I'm already hating it from day one. &#x200B; Function names like `implode()`, `explode()` The order of parameters are a mess. I would expect the first parameter to be the array/string and the second to be the separator/joiner...
6
lolphp
b1ackcat
eu9tn6h
<|soss|><|sot|>Awkward function and parameter names?<|eot|><|sost|>I'm rather new to PHP but I'm already hating it from day one. &#x200B; Function names like `implode()`, `explode()` The order of parameters are a mess. I would expect the first parameter to be the array/string and the second to be the separator/joiner...
6
lolphp
newplayerentered
eudhoq1
<|soss|><|sot|>Awkward function and parameter names?<|eot|><|sost|>I'm rather new to PHP but I'm already hating it from day one. &#x200B; Function names like `implode()`, `explode()` The order of parameters are a mess. I would expect the first parameter to be the array/string and the second to be the separator/joiner...
5
lolphp
calligraphic-io
8qncp4
<|soss|><|sot|>PHP Standards Wikipedia Page: PSR-8<|eot|><|sost|>The Wikipedia [PHP Standards Recommendation](https://en.wikipedia.org/wiki/PHP_Standard_Recommendation) page looks similar to other technical Wikipedia pages for other mainstream, serious programming languages. Until you get. to. this. "gem": PSR-8 Hugga...
9
lolphp
mort96
e0klx4r
<|soss|><|sot|>PHP Standards Wikipedia Page: PSR-8<|eot|><|sost|>The Wikipedia [PHP Standards Recommendation](https://en.wikipedia.org/wiki/PHP_Standard_Recommendation) page looks similar to other technical Wikipedia pages for other mainstream, serious programming languages. Until you get. to. this. "gem": PSR-8 Hugga...
55
lolphp
mort96
e0lgl0y
<|soss|><|sot|>PHP Standards Wikipedia Page: PSR-8<|eot|><|sost|>The Wikipedia [PHP Standards Recommendation](https://en.wikipedia.org/wiki/PHP_Standard_Recommendation) page looks similar to other technical Wikipedia pages for other mainstream, serious programming languages. Until you get. to. this. "gem": PSR-8 Hugga...
22
lolphp
xiongchiamiov
e0ktwfp
<|soss|><|sot|>PHP Standards Wikipedia Page: PSR-8<|eot|><|sost|>The Wikipedia [PHP Standards Recommendation](https://en.wikipedia.org/wiki/PHP_Standard_Recommendation) page looks similar to other technical Wikipedia pages for other mainstream, serious programming languages. Until you get. to. this. "gem": PSR-8 Hugga...
13
lolphp
Crecket
e0lfo8l
<|soss|><|sot|>PHP Standards Wikipedia Page: PSR-8<|eot|><|sost|>The Wikipedia [PHP Standards Recommendation](https://en.wikipedia.org/wiki/PHP_Standard_Recommendation) page looks similar to other technical Wikipedia pages for other mainstream, serious programming languages. Until you get. to. this. "gem": PSR-8 Hugga...
13
lolphp
mort96
e0law9x
<|soss|><|sot|>PHP Standards Wikipedia Page: PSR-8<|eot|><|sost|>The Wikipedia [PHP Standards Recommendation](https://en.wikipedia.org/wiki/PHP_Standard_Recommendation) page looks similar to other technical Wikipedia pages for other mainstream, serious programming languages. Until you get. to. this. "gem": PSR-8 Hugga...
8
lolphp
mort96
e0lh54s
<|soss|><|sot|>PHP Standards Wikipedia Page: PSR-8<|eot|><|sost|>The Wikipedia [PHP Standards Recommendation](https://en.wikipedia.org/wiki/PHP_Standard_Recommendation) page looks similar to other technical Wikipedia pages for other mainstream, serious programming languages. Until you get. to. this. "gem": PSR-8 Hugga...
8
lolphp
chinahawk
e0ksrag
<|soss|><|sot|>PHP Standards Wikipedia Page: PSR-8<|eot|><|sost|>The Wikipedia [PHP Standards Recommendation](https://en.wikipedia.org/wiki/PHP_Standard_Recommendation) page looks similar to other technical Wikipedia pages for other mainstream, serious programming languages. Until you get. to. this. "gem": PSR-8 Hugga...
7
lolphp
shvelo
e0lb8ym
<|soss|><|sot|>PHP Standards Wikipedia Page: PSR-8<|eot|><|sost|>The Wikipedia [PHP Standards Recommendation](https://en.wikipedia.org/wiki/PHP_Standard_Recommendation) page looks similar to other technical Wikipedia pages for other mainstream, serious programming languages. Until you get. to. this. "gem": PSR-8 Hugga...
6
lolphp
joske79
e0kkfbb
<|soss|><|sot|>PHP Standards Wikipedia Page: PSR-8<|eot|><|sost|>The Wikipedia [PHP Standards Recommendation](https://en.wikipedia.org/wiki/PHP_Standard_Recommendation) page looks similar to other technical Wikipedia pages for other mainstream, serious programming languages. Until you get. to. this. "gem": PSR-8 Hugga...
5
lolphp
quchen
2l2cvf
<|sols|><|sot|>Good format to represent arbitrary size/precision numbers? String!<|eot|><|sol|>http://php.net/manual/en/intro.bc.php<|eol|><|eols|><|endoftext|>
11
lolphp
Benutzername
clrjxy3
<|sols|><|sot|>Good format to represent arbitrary size/precision numbers? String!<|eot|><|sol|>http://php.net/manual/en/intro.bc.php<|eol|><|sor|>Similar to http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html#BigInteger(java.lang.String) no?<|eor|><|sor|>That's just a convenience constructor. Internally ...
14
lolphp
quchen
cm09ws9
<|sols|><|sot|>Good format to represent arbitrary size/precision numbers? String!<|eot|><|sol|>http://php.net/manual/en/intro.bc.php<|eol|><|soopr|>And I don't mean "string internally". The functions literally take string arguments. string bcadd ( string $left_operand , string $right_operand [, int $scale ] ) ...
7
lolphp
powerofmightyatom
cltwudv
<|sols|><|sot|>Good format to represent arbitrary size/precision numbers? String!<|eot|><|sol|>http://php.net/manual/en/intro.bc.php<|eol|><|soopr|>And I don't mean "string internally". The functions literally take string arguments. string bcadd ( string $left_operand , string $right_operand [, int $scale ] ) ...
6
lolphp
Benutzername
clr2xg9
<|sols|><|sot|>Good format to represent arbitrary size/precision numbers? String!<|eot|><|sol|>http://php.net/manual/en/intro.bc.php<|eol|><|sor|>Similar to http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html#BigInteger(java.lang.String) no?<|eor|><|sor|>That's just a convenience constructor. Internally ...
6
lolphp
quchen
clqs3bc
<|sols|><|sot|>Good format to represent arbitrary size/precision numbers? String!<|eot|><|sol|>http://php.net/manual/en/intro.bc.php<|eol|><|soopr|>And I don't mean "string internally". The functions literally take string arguments. string bcadd ( string $left_operand , string $right_operand [, int $scale ] ) ...
5
lolphp
Goz3rr
27sizw
<|sols|><|sot|>Argument 1 must be an instance of string, string given<|eot|><|sol|>https://eval.in/160610<|eol|><|eols|><|endoftext|>
13
lolphp
Goz3rr
ci3x6fj
<|sols|><|sot|>Argument 1 must be an instance of string, string given<|eot|><|sol|>https://eval.in/160610<|eol|><|soopr|>This is because you can only type hint classes (and arrays for whatever reason), for this to compile you would have to: class string {} function lolphp(string $data) {} lolphp(new string...
17
lolphp
kageurufu
ci42xfo
<|sols|><|sot|>Argument 1 must be an instance of string, string given<|eot|><|sol|>https://eval.in/160610<|eol|><|sor|>PHP doesn't support type hinting for scalar types. What a stupid post.<|eor|><|sor|>what a stupid issue with their type hinting... this is a pretty important failure in php<|eor|><|eols|><|endoftext|>
15
lolphp
kageurufu
ci4b38n
<|sols|><|sot|>Argument 1 must be an instance of string, string given<|eot|><|sol|>https://eval.in/160610<|eol|><|sor|>PHP doesn't support type hinting for scalar types. What a stupid post.<|eor|><|sor|>what a stupid issue with their type hinting... this is a pretty important failure in php<|eor|><|sor|>How is this a s...
7
lolphp
Daniel15
27quqv
<|sols|><|sot|>Redefining true<|eot|><|sol|>https://eval.in/160294<|eol|><|eols|><|endoftext|>
10
lolphp
PhyxsiusPrime
ci3nxuf
<|sols|><|sot|>Redefining true<|eot|><|sol|>https://eval.in/160294<|eol|><|sor|>You can do it in Python 2 too: >>> False = True >>> if False : print 'hahaha' ... hahaha <|eor|><|soopr|>That's really strange. Surely built-in values like False and True should be constants and you shouldn't be allowed to...
11
lolphp
vytah
ci3hf1y
<|sols|><|sot|>Redefining true<|eot|><|sol|>https://eval.in/160294<|eol|><|sor|>You can do it in Python 2 too: >>> False = True >>> if False : print 'hahaha' ... hahaha <|eor|><|eols|><|endoftext|>
10
lolphp
Daniel15
ci3li3u
<|sols|><|sot|>Redefining true<|eot|><|sol|>https://eval.in/160294<|eol|><|soopr|>More lols: It doesn't work if you're not in a namespace. https://eval.in/160329<|eoopr|><|eols|><|endoftext|>
9
lolphp
shillbert
ci3o3lu
<|sols|><|sot|>Redefining true<|eot|><|sol|>https://eval.in/160294<|eol|><|sor|>You can do it in C too. Oh wait, C doesn't even *have* booleans; I'm thinking of C++.<|eor|><|sor|>Well, C99 does.<|eor|><|sor|>You and your fancy C99. I like to maintain compatibility with Turbo C 2.0 and Visual C++ 2010.<|eor|><|eols|><|e...
8
lolphp
legoktm
ci3jzbs
<|sols|><|sot|>Redefining true<|eot|><|sol|>https://eval.in/160294<|eol|><|sor|>You can do it in Python 2 too: >>> False = True >>> if False : print 'hahaha' ... hahaha <|eor|><|sor|>Thankfully you can no longer do that in Python 3.<|eor|><|eols|><|endoftext|>
7
lolphp
Daniel15
ci3gg3v
<|sols|><|sot|>Redefining true<|eot|><|sol|>https://eval.in/160294<|eol|><|soopr|> <?php namespace lolphp; define('lolphp\\true', false); var_dump(true); // bool(false)<|eoopr|><|eols|><|endoftext|>
5
lolphp
Daniel15
ci3lh5p
<|sols|><|sot|>Redefining true<|eot|><|sol|>https://eval.in/160294<|eol|><|sor|>You can do it in Python 2 too: >>> False = True >>> if False : print 'hahaha' ... hahaha <|eor|><|soopr|>That's really strange. Surely built-in values like False and True should be constants and you shouldn't be allowed to...
5
lolphp
terrorobe
1xwtoj
<|sols|><|sot|>"Reading two form elements with same name" - that's an interesting problem, PHP has you covered!<|eot|><|sol|>http://stackoverflow.com/questions/5643981/reading-two-form-elements-with-same-name<|eol|><|eols|><|endoftext|>
12
lolphp
zerro_4
cffez64
<|sols|><|sot|>"Reading two form elements with same name" - that's an interesting problem, PHP has you covered!<|eot|><|sol|>http://stackoverflow.com/questions/5643981/reading-two-form-elements-with-same-name<|eol|><|sor|>You can also give an index to the array (string or number), so technically they *don't* have the s...
16
lolphp
Matt3k
cffpodx
<|sols|><|sot|>"Reading two form elements with same name" - that's an interesting problem, PHP has you covered!<|eot|><|sol|>http://stackoverflow.com/questions/5643981/reading-two-form-elements-with-same-name<|eol|><|sor|>I don't see what's amusing about this.<|eor|><|sor|>The fact that you have to adapt your form's el...
13