subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
ealf
c36d69i
<|soss|><|sot|>guess what var_dump(unset($a)); outputs...<|eot|><|sost|><|eost|><|sor|>"Parse error: syntax error, unexpected T_UNSET, expecting ')' in php shell code on line 1"?<|eor|><|sor|>I don't see why this is surprising. The manual defines the type of unset(..) as void. PHP correctly spots that `fun1(unset(..))`...
12
lolphp
johlin
c367x4s
<|soss|><|sot|>guess what var_dump(unset($a)); outputs...<|eot|><|sost|><|eost|><|sor|>"Parse error: syntax error, unexpected T_UNSET, expecting ')' in php shell code on line 1"?<|eor|><|eoss|><|endoftext|>
6
lolphp
milki_
c395mn3
<|soss|><|sot|>guess what var_dump(unset($a)); outputs...<|eot|><|sost|><|eost|><|sor|>unset() is not a function, but a language construct. It can only be used as statement, not in expression context. Equivalent to `echo` or `(if(if())` in other languages. There is however the `(unset)` typecast which can. (Doesn't un...
5
lolphp
helgim
c36eb08
<|soss|><|sot|>guess what var_dump(unset($a)); outputs...<|eot|><|sost|><|eost|><|sor|>"Parse error: syntax error, unexpected T_UNSET, expecting ')' in php shell code on line 1"?<|eor|><|sor|>I don't see why this is surprising. The manual defines the type of unset(..) as void. PHP correctly spots that `fun1(unset(..))`...
5
lolphp
kenlubin
iyi5i
<|soss|><|sot|>$php = $sadness and $happiness<|eot|><|sost|>The 'and' operator has lower precedence than assignment. As a result, the following statement evaluates as true: $var = true and false; Is there any situation where this could be useful?<|eost|><|eoss|><|endoftext|>
6
lolphp
bobindashadows
c2eezcg
<|soss|><|sot|>$php = $sadness and $happiness<|eot|><|sost|>The 'and' operator has lower precedence than assignment. As a result, the following statement evaluates as true: $var = true and false; Is there any situation where this could be useful?<|eost|><|sor|>This comes from perl, most likely. The idiom there is mor...
10
lolphp
m4nm34t
c28rt9v
<|soss|><|sot|>$php = $sadness and $happiness<|eot|><|sost|>The 'and' operator has lower precedence than assignment. As a result, the following statement evaluates as true: $var = true and false; Is there any situation where this could be useful?<|eost|><|sor|>yes $php = getSomeResult() or $php = defaultValue; <|e...
7
lolphp
bobindashadows
c27pyc7
<|soss|><|sot|>$php = $sadness and $happiness<|eot|><|sost|>The 'and' operator has lower precedence than assignment. As a result, the following statement evaluates as true: $var = true and false; Is there any situation where this could be useful?<|eost|><|sor|>This comes from perl, most likely. The idiom there is mor...
7
lolphp
Altreus
c35pn0o
<|soss|><|sot|>$php = $sadness and $happiness<|eot|><|sost|>The 'and' operator has lower precedence than assignment. As a result, the following statement evaluates as true: $var = true and false; Is there any situation where this could be useful?<|eost|><|sor|>This comes from perl, most likely. The idiom there is mor...
5
lolphp
ealf
dy591
<|sols|><|sot|>PHP can do string replacement in time |input| * |term|^2.<|eot|><|sol|>http://google.com/codesearch/p?hl=en#pFm0LxzAWvs/darwinsource/tarballs/other/apache_mod_php-18.4.tar.gz%7CVIZL9aL0wAg/apache_mod_php-18.4/php/ext/standard/string.c&q=php_strtr%20lang:c%20package:%22http://www.opensource.apple.com/dar...
7
lolphp
ealf
dt0a6
<|soss|><|sot|>Default varargs<|eot|><|sost|> function f($x){} f(); // warning f(1,2); // no warning "'cause, who knows, they might want to call func\_get\_args(), we can't tell"<|eost|><|eoss|><|endoftext|>
6
lolphp
Persism
vhhkop
<|sols|><|sot|>Show Thumbnails?<|eot|><|sol|>https://thedailywtf.com/articles/show-thumbnails<|eol|><|eols|><|endoftext|>
5
lolphp
old-shaggy
id7cax8
<|sols|><|sot|>Show Thumbnails?<|eot|><|sol|>https://thedailywtf.com/articles/show-thumbnails<|eol|><|sor|>How is it lolphp? PHP has nothing to do with bad programmers and you can do same stupid things in other langusges.<|eor|><|eols|><|endoftext|>
11
lolphp
notian
id7d95e
<|sols|><|sot|>Show Thumbnails?<|eot|><|sol|>https://thedailywtf.com/articles/show-thumbnails<|eol|><|sor|>The real wtf is the lack of parentheses, if they had done `($show_image ?? false) == 1 ? '...' : '';` It would have been obvious to the maintainer what the issue was. The `'== 1'` is also obnoxious. You're doin...
9
lolphp
Serialk
2jumee
<|sols|><|sot|>Wrong on so many levels: "reset() rewinds array's internal pointer to the first element and returns the value of the first array element."<|eot|><|sol|>http://php.net/manual/en/function.reset.php<|eol|><|eols|><|endoftext|>
5
lolphp
allthediamonds
clfy2yy
<|sols|><|sot|>Wrong on so many levels: "reset() rewinds array's internal pointer to the first element and returns the value of the first array element."<|eot|><|sol|>http://php.net/manual/en/function.reset.php<|eol|><|sor|>What's so wrong about it? <|eor|><|sor|>Internal pointers are *a thing*. Let me do a quick over...
20
lolphp
allthediamonds
clidyco
<|sols|><|sot|>Wrong on so many levels: "reset() rewinds array's internal pointer to the first element and returns the value of the first array element."<|eot|><|sol|>http://php.net/manual/en/function.reset.php<|eol|><|sor|>What's so wrong about it? <|eor|><|sor|>Internal pointers are *a thing*. Let me do a quick over...
14
lolphp
allthediamonds
clfwtbe
<|sols|><|sot|>Wrong on so many levels: "reset() rewinds array's internal pointer to the first element and returns the value of the first array element."<|eot|><|sol|>http://php.net/manual/en/function.reset.php<|eol|><|sor|>I can't wait until PHP stops being relevant and the phrase "array's internal pointer" is never h...
10
lolphp
vytah
clfef6e
<|sols|><|sot|>Wrong on so many levels: "reset() rewinds array's internal pointer to the first element and returns the value of the first array element."<|eot|><|sol|>http://php.net/manual/en/function.reset.php<|eol|><|sor|>What's so wrong about it? <|eor|><|sor|>I think the worst thing is that the internal pointers ex...
10
lolphp
allthediamonds
clfwuq7
<|sols|><|sot|>Wrong on so many levels: "reset() rewinds array's internal pointer to the first element and returns the value of the first array element."<|eot|><|sol|>http://php.net/manual/en/function.reset.php<|eol|><|sor|>Pissing on stuff from the stone ages now? This is from before foreach syntax. Since then, suppo...
9
lolphp
495647h
clfdzfg
<|sols|><|sot|>Wrong on so many levels: "reset() rewinds array's internal pointer to the first element and returns the value of the first array element."<|eot|><|sol|>http://php.net/manual/en/function.reset.php<|eol|><|sor|>What's so wrong about it? <|eor|><|eols|><|endoftext|>
7
lolphp
phasetwenty
clfepvw
<|sols|><|sot|>Wrong on so many levels: "reset() rewinds array's internal pointer to the first element and returns the value of the first array element."<|eot|><|sol|>http://php.net/manual/en/function.reset.php<|eol|><|sor|>What's so wrong about it? <|eor|><|sor|>I wouldn't consider it lolworthy but, 1. Non-obvious be...
7
lolphp
hyuvii
2bujki
<|sols|><|sot|>array_merge hates numeric keys<|eot|><|sol|>http://stackoverflow.com/questions/7059721/array-merge-versus<|eol|><|eols|><|endoftext|>
6
lolphp
HelloAnnyong
cj94b7c
<|sols|><|sot|>array_merge hates numeric keys<|eot|><|sol|>http://stackoverflow.com/questions/7059721/array-merge-versus<|eol|><|sor|>The wtf here is that PHP has a single data structure for arrays and hash tables. Once you understand that fact, I wouldn't exactly call this a wtf. The name `merge` for a function with ...
13
lolphp
allthediamonds
cj9vt57
<|sols|><|sot|>array_merge hates numeric keys<|eot|><|sol|>http://stackoverflow.com/questions/7059721/array-merge-versus<|eol|><|sor|>Always use a SALT !!<|eor|><|sor|>What does that have to do with anything?<|eor|><|sor|>prefix your numeric keys with K or N and it would all work out<|eor|><|sor|>That's, uh, not what a...
11
lolphp
edave64
cj933z5
<|sols|><|sot|>array_merge hates numeric keys<|eot|><|sol|>http://stackoverflow.com/questions/7059721/array-merge-versus<|eol|><|sor|>Always use a SALT !!<|eor|><|sor|>What does that have to do with anything?<|eor|><|eols|><|endoftext|>
10
lolphp
Plorkyeran
cjbqae4
<|sols|><|sot|>array_merge hates numeric keys<|eot|><|sol|>http://stackoverflow.com/questions/7059721/array-merge-versus<|eol|><|sor|>The wtf here is that PHP has a single data structure for arrays and hash tables. Once you understand that fact, I wouldn't exactly call this a wtf. The name `merge` for a function with ...
6
lolphp
allthediamonds
289r9f
<|sols|><|sot|>"This is the best way to perform an SQL query" PHP's manual, on mysql_query (!)<|eot|><|sol|>http://www.php.net/manual/en/function.mysql-query.php<|eol|><|eols|><|endoftext|>
4
lolphp
DoctorWaluigiTime
ci8te2o
<|sols|><|sot|>"This is the best way to perform an SQL query" PHP's manual, on mysql_query (!)<|eot|><|sol|>http://www.php.net/manual/en/function.mysql-query.php<|eol|><|sor|>It seems like that quote is in the context of using `mysql_query()`, as it's in a comment within an example. Further, there's a big red warning a...
39
lolphp
captainramen
cia5fxl
<|sols|><|sot|>"This is the best way to perform an SQL query" PHP's manual, on mysql_query (!)<|eot|><|sol|>http://www.php.net/manual/en/function.mysql-query.php<|eol|><|sor|>I'm too fucking shocked to parse the rest of the article because php is saying they are gonna deprecate something instead of leave it in for eter...
15
lolphp
allthediamonds
ci8tf0c
<|sols|><|sot|>"This is the best way to perform an SQL query" PHP's manual, on mysql_query (!)<|eot|><|sol|>http://www.php.net/manual/en/function.mysql-query.php<|eol|><|sor|>That "best way" is about building the query string and not mysql_* in general though..<|eor|><|soopr|>Building a query string with sprintf() and ...
9
lolphp
Banane9
ci8w9sm
<|sols|><|sot|>"This is the best way to perform an SQL query" PHP's manual, on mysql_query (!)<|eot|><|sol|>http://www.php.net/manual/en/function.mysql-query.php<|eol|><|sor|>I'm too fucking shocked to parse the rest of the article because php is saying they are gonna deprecate something instead of leave it in for eter...
5
lolphp
ealf
j2yzp
<|sols|><|sot|>/* Guess */ for($i=5; $i-->0; ) { switch($i) { case 3: continue; case true: echo 'x'; } echo $i; }<|eot|><|sol|>http://codepad.org/R61tGE1y<|eol|><|eols|><|endoftext|>
5
lolphp
xeen
hm3mq
<|soss|><|sot|>Calling instance functions statically<|eot|><|sost|> class A { function foo() { echo "foo\n"} function foo2() { echo $this . "\n"; } } A::foo(); A::foo2(); Which will print foo A Instead of at least giving a warning. These are the type of things the some people c...
5
lolphp
ealf
elwdj
<|soss|><|sot|>html_entity_decode('&#38; / &#39; / &#40;') == '& / &#39; / ('<|eot|><|sost|>Like preg_quote, it has an optional parameter that is required to use it safely.<|eost|><|eoss|><|endoftext|>
4
lolphp
ealf
dowqy
<|sols|><|sot|>__sleep<|eot|><|sol|>http://php.net/__sleep<|eol|><|eols|><|endoftext|>
6
lolphp
6f944ee6
89hrqu
<|sols|><|sot|>foo is true (foo=1)<|eot|><|sol|>https://3v4l.org/AUNE8<|eol|><|eols|><|endoftext|>
6
lolphp
SelfDistinction
dwr5oi6
<|sols|><|sot|>foo is true (foo=1)<|eot|><|sol|>https://3v4l.org/AUNE8<|eol|><|sor|>Not really a lolphp; more like a lol untyped. Both cases match, so PHP, like any decent language, chooses the first one.<|eor|><|eols|><|endoftext|>
13
lolphp
mikeputerbaugh
dwrhmyq
<|sols|><|sot|>foo is true (foo=1)<|eot|><|sol|>https://3v4l.org/AUNE8<|eol|><|sor|>Not really a lolphp; more like a lol untyped. Both cases match, so PHP, like any decent language, chooses the first one.<|eor|><|soopr|>Your comment doesn't make any sense. Of course this is an lol php. Perhaps Python is the only case w...
11
lolphp
chinahawk
dwrq54a
<|sols|><|sot|>foo is true (foo=1)<|eot|><|sol|>https://3v4l.org/AUNE8<|eol|><|sor|>OP doesn't understand 'break;'. lolop<|eor|><|eols|><|endoftext|>
5
lolphp
renatomefi
55zd65
<|sols|><|sot|>My code is confused whether 0 is float or not!<|eot|><|sol|>https://twitter.com/renatomefi/status/783651402363133953<|eol|><|eols|><|endoftext|>
4
lolphp
AdventOfScala
d8kaxcs
<|sols|><|sot|>My code is confused whether 0 is float or not!<|eot|><|sol|>https://twitter.com/renatomefi/status/783651402363133953<|eol|><|sor|>This is not lolphp, but his IDE should be showing 0.0 for $value in the first row.<|eor|><|eols|><|endoftext|>
8
lolphp
nikic
d8gbsjy
<|sols|><|sot|>My code is confused whether 0 is float or not!<|eot|><|sol|>https://twitter.com/renatomefi/status/783651402363133953<|eol|><|sor|>in PHP an integer is not a float: https://3v4l.org/2eXlN<|eor|><|sor|>the constant expression `0` is not a float, but the variable expression `$value = 0` apparently is<|eor|>...
8
lolphp
FlyLo11
d8ezxpf
<|sols|><|sot|>My code is confused whether 0 is float or not!<|eot|><|sol|>https://twitter.com/renatomefi/status/783651402363133953<|eol|><|sor|>in PHP an integer is not a float: https://3v4l.org/2eXlN<|eor|><|eols|><|endoftext|>
5
lolphp
Cuddlefluff_Grim
d8g9gvp
<|sols|><|sot|>My code is confused whether 0 is float or not!<|eot|><|sol|>https://twitter.com/renatomefi/status/783651402363133953<|eol|><|sor|>in PHP an integer is not a float: https://3v4l.org/2eXlN<|eor|><|sor|>the constant expression `0` is not a float, but the variable expression `$value = 0` apparently is<|eor|>...
5
lolphp
cirk2
21eofr
<|soss|><|sot|>Argument 1 passed to myFunction() must be an instance of string, string given in /srv/www/file.php<|eot|><|sost|>Why can't php typecheck it's primitive types? It can for custom objects...<|eost|><|eoss|><|endoftext|>
4
lolphp
_vec_
cggi8ps
<|soss|><|sot|>Argument 1 passed to myFunction() must be an instance of string, string given in /srv/www/file.php<|eot|><|sost|>Why can't php typecheck it's primitive types? It can for custom objects...<|eost|><|sor|>PHP primitives are not objects. This is why the API is `strotupper($myString)` instead of `$myString->...
5
lolphp
_sgtk
1x7d1g
<|sols|><|sot|>file_put_contents: "This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE"<|eot|><|sol|>http://php.net/manual/en/function.file-put-contents.php<|eol|><|eols|><|endoftext|>
4
lolphp
ForTheCraic
cf8qq0l
<|sols|><|sot|>file_put_contents: "This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE"<|eot|><|sol|>http://php.net/manual/en/function.file-put-contents.php<|eol|><|sor|>This seems reasonable. It may successfully write zero bytes, returning 0 or it may fail, returnin...
24
lolphp
Various_Pickles
cf8s5y4
<|sols|><|sot|>file_put_contents: "This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE"<|eot|><|sol|>http://php.net/manual/en/function.file-put-contents.php<|eol|><|sor|>This seems reasonable. It may successfully write zero bytes, returning 0 or it may fail, returnin...
11
lolphp
h0rst_
cf8rum0
<|sols|><|sot|>file_put_contents: "This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE"<|eot|><|sol|>http://php.net/manual/en/function.file-put-contents.php<|eol|><|sor|>This seems reasonable. It may successfully write zero bytes, returning 0 or it may fail, returnin...
8
lolphp
_vec_
cf8yfx6
<|sols|><|sot|>file_put_contents: "This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE"<|eot|><|sol|>http://php.net/manual/en/function.file-put-contents.php<|eol|><|sor|>This seems reasonable. It may successfully write zero bytes, returning 0 or it may fail, returnin...
8
lolphp
barubary
cf8u2ij
<|sols|><|sot|>file_put_contents: "This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE"<|eot|><|sol|>http://php.net/manual/en/function.file-put-contents.php<|eol|><|sor|>This seems reasonable. It may successfully write zero bytes, returning 0 or it may fail, returnin...
7
lolphp
ealf
cfaihv7
<|sols|><|sot|>file_put_contents: "This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE"<|eot|><|sol|>http://php.net/manual/en/function.file-put-contents.php<|eol|><|sor|>This seems reasonable. It may successfully write zero bytes, returning 0 or it may fail, returnin...
5
lolphp
Porges
vcu8h
<|sols|><|sot|>PHP lets you dereference NULL and set properties on it<|eot|><|sol|>http://www.reddit.com/r/programminghorror/comments/v1bah/php_member_object_of_null_no_problem/<|eol|><|eols|><|endoftext|>
4
lolphp
ealf
f4vgr
<|soss|><|sot|>preg_match('/foo/', 'foo', $m=array(42)); var_dump($m);<|eot|><|sost|><|eost|><|eoss|><|endoftext|>
3
lolphp
ch0wn
empvc
<|soss|><|sot|>count(array() > 0)<|eot|><|sost|>1, obviously. &#3232;\_&#3232; <|eost|><|eoss|><|endoftext|>
4
lolphp
shitcanz
csth8w
<|sols|><|sot|>PHP isset/empty madness<|eot|><|sol|>https://repl.it/repls/HollowQuestionableProprietarysoftware<|eol|><|eols|><|endoftext|>
4
lolphp
tdammers
exgzwrp
<|sols|><|sot|>PHP isset/empty madness<|eot|><|sol|>https://repl.it/repls/HollowQuestionableProprietarysoftware<|eol|><|soopr|>So PHP has two functions isset and empty. They are VERY similar and its already questionable why they both exists. However empty can be used as an expression but isset cant. True lolphp desi...
12
lolphp
shitcanz
exgyhh6
<|sols|><|sot|>PHP isset/empty madness<|eot|><|sol|>https://repl.it/repls/HollowQuestionableProprietarysoftware<|eol|><|soopr|>So PHP has two functions isset and empty. They are VERY similar and its already questionable why they both exists. However empty can be used as an expression but isset cant. True lolphp desi...
5
lolphp
teizhen
coku9l
<|sols|><|sot|>Powered by PHP<|eot|><|sol|>https://www.aikzik.com/index.php<|eol|><|eols|><|endoftext|>
1
lolphp
cleeder
ewixo7d
<|sols|><|sot|>Powered by PHP<|eot|><|sol|>https://www.aikzik.com/index.php<|eol|><|sor|>/r/lolshittyprogrammer<|eor|><|eols|><|endoftext|>
17
lolphp
Almamu
ewk57xw
<|sols|><|sot|>Powered by PHP<|eot|><|sol|>https://www.aikzik.com/index.php<|eol|><|sor|>More like lol shitty server configuration<|eor|><|eols|><|endoftext|>
6
lolphp
pirogoeth
3ess9r
<|sols|><|sot|>PHP File Manager Riddled With Vulnerabilities, Including Backdoor<|eot|><|sol|>https://threatpost.com/php-file-manager-riddled-with-vulnerabilities-including-backdoor/113969<|eol|><|eols|><|endoftext|>
2
lolphp
DoctorWaluigiTime
cti95th
<|sols|><|sot|>PHP File Manager Riddled With Vulnerabilities, Including Backdoor<|eot|><|sol|>https://threatpost.com/php-file-manager-riddled-with-vulnerabilities-including-backdoor/113969<|eol|><|sor|>So is this subreddit about the language, or bad programming? Because this seems to be about an application written in...
39
lolphp
sloat
ctikonh
<|sols|><|sot|>PHP File Manager Riddled With Vulnerabilities, Including Backdoor<|eot|><|sol|>https://threatpost.com/php-file-manager-riddled-with-vulnerabilities-including-backdoor/113969<|eol|><|sor|>So is this subreddit about the language, or bad programming? Because this seems to be about an application written in...
15
lolphp
Bl00dsoul
cti4rqk
<|sols|><|sot|>PHP File Manager Riddled With Vulnerabilities, Including Backdoor<|eot|><|sol|>https://threatpost.com/php-file-manager-riddled-with-vulnerabilities-including-backdoor/113969<|eol|><|sor|>That is the worst hidden backdoor ever... backdoor user: ```****__DO_NOT_REMOVE_THIS_ENTRY__****``` backdoor ha...
14
lolphp
mesoscalevortex
ctilmr4
<|sols|><|sot|>PHP File Manager Riddled With Vulnerabilities, Including Backdoor<|eot|><|sol|>https://threatpost.com/php-file-manager-riddled-with-vulnerabilities-including-backdoor/113969<|eol|><|sor|>So is this subreddit about the language, or bad programming? Because this seems to be about an application written in...
14
lolphp
papers_
ctiod3w
<|sols|><|sot|>PHP File Manager Riddled With Vulnerabilities, Including Backdoor<|eot|><|sol|>https://threatpost.com/php-file-manager-riddled-with-vulnerabilities-including-backdoor/113969<|eol|><|sor|>So is this subreddit about the language, or bad programming? Because this seems to be about an application written in...
13
lolphp
cythrawll
ctiglqb
<|sols|><|sot|>PHP File Manager Riddled With Vulnerabilities, Including Backdoor<|eot|><|sol|>https://threatpost.com/php-file-manager-riddled-with-vulnerabilities-including-backdoor/113969<|eol|><|sor|>So is this subreddit about the language, or bad programming? Because this seems to be about an application written in...
13
lolphp
beerdude26
ctk0j5u
<|sols|><|sot|>PHP File Manager Riddled With Vulnerabilities, Including Backdoor<|eot|><|sol|>https://threatpost.com/php-file-manager-riddled-with-vulnerabilities-including-backdoor/113969<|eol|><|sor|>I subscribe because I'm a full time PHP developer and I want to be aware of the weaknesses of the language I work in.<...
8
lolphp
myaut
ctj1fg5
<|sols|><|sot|>PHP File Manager Riddled With Vulnerabilities, Including Backdoor<|eot|><|sol|>https://threatpost.com/php-file-manager-riddled-with-vulnerabilities-including-backdoor/113969<|eol|><|sor|>That is the worst hidden backdoor ever... backdoor user: ```****__DO_NOT_REMOVE_THIS_ENTRY__****``` backdoor ha...
5
lolphp
vytah
ctitks3
<|sols|><|sot|>PHP File Manager Riddled With Vulnerabilities, Including Backdoor<|eot|><|sol|>https://threatpost.com/php-file-manager-riddled-with-vulnerabilities-including-backdoor/113969<|eol|><|sor|>So is this subreddit about the language, or bad programming? Because this seems to be about an application written in...
5
lolphp
lracicot
1d5j9z
<|soss|><|sot|>PHP Catchable fatal error: Argument 1 passed to stringTest() must be an instance of string, string given.<|eot|><|sost|><|eost|><|eoss|><|endoftext|>
3
lolphp
Serialk
1bxhww
<|sols|><|sot|>Matrix transposition in PHP<|eot|><|sol|>http://rosettacode.org/wiki/Matrix_transposition#PHP<|eol|><|eols|><|endoftext|>
3
lolphp
hahainternet
c9b0408
<|sols|><|sot|>Matrix transposition in PHP<|eot|><|sol|>http://rosettacode.org/wiki/Matrix_transposition#PHP<|eol|><|sor|>I thought /r/lolphp was about "weird" constructions in the language itself, not about stupid things people write in PHP.<|eor|><|sor|>Surely this is an indictment of the language.<|eor|><|eols|><|en...
6
lolphp
nstory
qoauc
<|soss|><|sot|>The peculiar case of fgetcsv()<|eot|><|sost|>So, fgetcsv() is broken, but only in that particular way where it will bite you in the ass when you least enjoy that sort of behavior, and you find yourself forced to re-implement what should be standard-fucking-shit. If you read [the manual entry for fgetcs...
3
lolphp
ealf
cqqqs
<|soss|><|sot|>It's not a bug, it's a feature: ini_set('user_agent', "PHP\r\nX-MyCustomHeader: Foo") is a documented way to send extra headers<|eot|><|sost|>[Doc link](http://www.php.net/manual/en/wrappers.http.php)<|eost|><|eoss|><|endoftext|>
3
lolphp
Takeoded
j0ptq2
<|sols|><|sot|>basename("/tmp","tmp") fails<|eot|><|sol|>https://bugs.php.net/bug.php?id=80155<|eol|><|eols|><|endoftext|>
2
lolphp
ArisenDrake
g6ul8ji
<|sols|><|sot|>basename("/tmp","tmp") fails<|eot|><|sol|>https://bugs.php.net/bug.php?id=80155<|eol|><|sor|>More like "LOL GNU" Have you even read the answers? Probably not, because PHP bad amirite?<|eor|><|eols|><|endoftext|>
9
lolphp
farsightxr20
g6x2byu
<|sols|><|sot|>basename("/tmp","tmp") fails<|eot|><|sol|>https://bugs.php.net/bug.php?id=80155<|eol|><|sor|>"not a bug because GNU does the same thing" Then why tf doesn't the PHP docs just like to GNU manpages. The whole point of higher-level modern languages is that they abstract all of this weirdness/legacy stuff a...
8
lolphp
ArisenDrake
g6v704s
<|sols|><|sot|>basename("/tmp","tmp") fails<|eot|><|sol|>https://bugs.php.net/bug.php?id=80155<|eol|><|sor|>More like "LOL GNU" Have you even read the answers? Probably not, because PHP bad amirite?<|eor|><|sor|>Why do PHP apologists always shift the blame? I mean common, this is about PHP and not about some GNU behav...
8
lolphp
ArisenDrake
g6vamqj
<|sols|><|sot|>basename("/tmp","tmp") fails<|eot|><|sol|>https://bugs.php.net/bug.php?id=80155<|eol|><|sor|>More like "LOL GNU" Have you even read the answers? Probably not, because PHP bad amirite?<|eor|><|sor|>Why do PHP apologists always shift the blame? I mean common, this is about PHP and not about some GNU behav...
8
lolphp
ArisenDrake
g6vg5w3
<|sols|><|sot|>basename("/tmp","tmp") fails<|eot|><|sol|>https://bugs.php.net/bug.php?id=80155<|eol|><|sor|>More like "LOL GNU" Have you even read the answers? Probably not, because PHP bad amirite?<|eor|><|sor|>Why do PHP apologists always shift the blame? I mean common, this is about PHP and not about some GNU behav...
7
lolphp
Takeoded
g6uleo2
<|sols|><|sot|>basename("/tmp","tmp") fails<|eot|><|sol|>https://bugs.php.net/bug.php?id=80155<|eol|><|sor|>More like "LOL GNU" Have you even read the answers? Probably not, because PHP bad amirite?<|eor|><|soopr|>> Have you even read the answers? I have now - i was the one who submitted that bugreport, and that answ...
6
lolphp
dotted
g6y39bv
<|sols|><|sot|>basename("/tmp","tmp") fails<|eot|><|sol|>https://bugs.php.net/bug.php?id=80155<|eol|><|sor|>It's in the [initial (git) commit...](https://github.com/coreutils/coreutils/commit/ccbd1d7dc5189f4637468a8136f672e60ee0e531#diff-7e1d046275675c503b38ac011e2d058cR61-R78), so at least a 28 year old behaviour.<|eo...
5
lolphp
Takeoded
99r4ie
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|eoss|><|endoftext|>
1
lolphp
4z01235
e4ptlxv
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>> PHP > plans Do you have any historical evidence for this assumption?<|eor|><|eoss|><|endoftext|>
83
lolphp
maweki
e4rfrqo
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>Are there any nice language features from Python to steal and then implement in a slightly incorrect manner that makes it very much less useful? Then that's the plan.<|eor|><|eoss|><|endoftext|>
22
lolphp
dotancohen
e5b8gxf
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>There will not be a PHP version 9 because that would conflict with legacy code that checks the version string for "PHP 9\*" to identify PHP 95 and PHP 98. The current RFC is proposing PHP 2000 or PHP XP, however due to poor IIS support it se...
22
lolphp
olsner
e4pylz7
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>[deleted]<|eor|><|sor|>Oh, PHP 5 is out already? Great news!<|eor|><|eoss|><|endoftext|>
21
lolphp
squiggleslash
e4q1e2f
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>[deleted]<|eor|><|soopr|>jokes on you, .php files execute as 5.6, .php7 files execute as 7... 7.0.30<|eoopr|><|sor|>So .php7 meaning "Run using PHP7" must imply that the extension format is ".php{version number}, but that means "" now equals ...
17
lolphp
SeriTools
e4q2vy4
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>What do you mean?<|eor|><|soopr|>(if you wonder what the initial joke was: if the successor to PHP5 is PHP7, then the PHP7 successor will probably be PHP9, right?)<|eoopr|><|sor|>I honestly wouldn't be surprised.<|eor|><|sor|>My guess would b...
16
lolphp
Takeoded
e4pwopi
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>What do you mean?<|eor|><|soopr|>(if you wonder what the initial joke was: if the successor to PHP5 is PHP7, then the PHP7 successor will probably be PHP9, right?)<|eoopr|><|eoss|><|endoftext|>
14
lolphp
carlos_vini
e4r1z1f
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>What do you mean?<|eor|><|soopr|>(if you wonder what the initial joke was: if the successor to PHP5 is PHP7, then the PHP7 successor will probably be PHP9, right?)<|eoopr|><|sor|>Nah, it will obviously be PHP 8, and then PHP 10. &#x200B;<|eo...
12
lolphp
dr3dz1k
e4r7fhn
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>What do you mean?<|eor|><|soopr|>(if you wonder what the initial joke was: if the successor to PHP5 is PHP7, then the PHP7 successor will probably be PHP9, right?)<|eoopr|><|sor|>Nah, it will obviously be PHP 8, and then PHP 10. &#x200B;<|eo...
10
lolphp
Takeoded
e4pv23j
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>[deleted]<|eor|><|soopr|>jokes on you, .php files execute as 5.6, .php7 files execute as 7... 7.0.30<|eoopr|><|eoss|><|endoftext|>
9
lolphp
SaraMG
e5djc4j
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>Unicode.<|eor|><|sor|>Or more accurately, since a 9 is an upside down 6... pou :6 H<|eor|><|eoss|><|endoftext|>
9
lolphp
stesch
e61jb9s
<|soss|><|sot|>so.. what are the plans for PHP9?<|eot|><|sost|><|eost|><|sor|>[deleted]<|eor|><|sor|>Still had to maintain 2 big PHP 4 projects at my last job. 2017. <|eor|><|eoss|><|endoftext|>
5
lolphp
phplovesong
8pr7bk
<|sols|><|sot|>PHP as a profession<|eot|><|sol|>http://php.net/manual/en/function.delete.php<|eol|><|eols|><|endoftext|>
4