subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | ZorbaTHut | fk7qbcb | <|sols|><|sot|>Array is higher than infinity<|eot|><|sol|>https://3v4l.org/iONLA<|eol|><|sor|>Then you don't have implicit conversions.
Not to mention there is no function call in a simple comparison
Then you just get errors when you try to implicitly convert, which is a feature of PHP 7 anyway, is it not?<|eor|><|s... | 5 |
lolphp | Takeoded | 75sq2z | <|sols|><|sot|>if there's no connection, the programmer probably wants an empty string.<|eot|><|sol|>http://php.net/manual/en/mysqli.real-escape-string.php#58650<|eol|><|eols|><|endoftext|> | 44 |
lolphp | katafrakt | do9csx6 | <|sols|><|sot|>if there's no connection, the programmer probably wants an empty string.<|eot|><|sol|>http://php.net/manual/en/mysqli.real-escape-string.php#58650<|eol|><|soopr|>well, its 11 years since that was posted, but at least in 7.0.22 with Xdebug, things looks better (its a NULL instead of a string, and a warnin... | 20 |
lolphp | Takeoded | do8n006 | <|sols|><|sot|>if there's no connection, the programmer probably wants an empty string.<|eot|><|sol|>http://php.net/manual/en/mysqli.real-escape-string.php#58650<|eol|><|soopr|>well, its 11 years since that was posted, but at least in 7.0.22 with Xdebug, things looks better (its a NULL instead of a string, and a warnin... | 15 |
lolphp | ithcy | do9slxj | <|sols|><|sot|>if there's no connection, the programmer probably wants an empty string.<|eot|><|sol|>http://php.net/manual/en/mysqli.real-escape-string.php#58650<|eol|><|soopr|>well, its 11 years since that was posted, but at least in 7.0.22 with Xdebug, things looks better (its a NULL instead of a string, and a warnin... | 10 |
lolphp | nikic | doa972j | <|sols|><|sot|>if there's no connection, the programmer probably wants an empty string.<|eot|><|sol|>http://php.net/manual/en/mysqli.real-escape-string.php#58650<|eol|><|soopr|>well, its 11 years since that was posted, but at least in 7.0.22 with Xdebug, things looks better (its a NULL instead of a string, and a warnin... | 5 |
lolphp | the_real_natenator | 5v3dt1 | <|soss|><|sot|>parse_url and parse_str<|eot|><|sost|>Two functions, both in the same function group, return completely differently:
void parse_str($query_string, &$return)
array parse_url($url)
Consistency, lol.
tldr: one returns via reference variable, and the other returns properly
EDIT 1: Formatting<|eos... | 45 |
lolphp | pilif | ddz0jjj | <|soss|><|sot|>parse_url and parse_str<|eot|><|sost|>Two functions, both in the same function group, return completely differently:
void parse_str($query_string, &$return)
array parse_url($url)
Consistency, lol.
tldr: one returns via reference variable, and the other returns properly
EDIT 1: Formatting<|eos... | 25 |
lolphp | the_alias_of_andrea | ddz3x83 | <|soss|><|sot|>parse_url and parse_str<|eot|><|sost|>Two functions, both in the same function group, return completely differently:
void parse_str($query_string, &$return)
array parse_url($url)
Consistency, lol.
tldr: one returns via reference variable, and the other returns properly
EDIT 1: Formatting<|eos... | 13 |
lolphp | the_alias_of_andrea | de0zyea | <|soss|><|sot|>parse_url and parse_str<|eot|><|sost|>Two functions, both in the same function group, return completely differently:
void parse_str($query_string, &$return)
array parse_url($url)
Consistency, lol.
tldr: one returns via reference variable, and the other returns properly
EDIT 1: Formatting<|eos... | 10 |
lolphp | the_alias_of_andrea | ddz3wod | <|soss|><|sot|>parse_url and parse_str<|eot|><|sost|>Two functions, both in the same function group, return completely differently:
void parse_str($query_string, &$return)
array parse_url($url)
Consistency, lol.
tldr: one returns via reference variable, and the other returns properly
EDIT 1: Formatting<|eos... | 9 |
lolphp | cfreak2399 | ddzd2hi | <|soss|><|sot|>parse_url and parse_str<|eot|><|sost|>Two functions, both in the same function group, return completely differently:
void parse_str($query_string, &$return)
array parse_url($url)
Consistency, lol.
tldr: one returns via reference variable, and the other returns properly
EDIT 1: Formatting<|eos... | 7 |
lolphp | the_real_natenator | ddza411 | <|soss|><|sot|>parse_url and parse_str<|eot|><|sost|>Two functions, both in the same function group, return completely differently:
void parse_str($query_string, &$return)
array parse_url($url)
Consistency, lol.
tldr: one returns via reference variable, and the other returns properly
EDIT 1: Formatting<|eos... | 6 |
lolphp | barubary | de2l1q0 | <|soss|><|sot|>parse_url and parse_str<|eot|><|sost|>Two functions, both in the same function group, return completely differently:
void parse_str($query_string, &$return)
array parse_url($url)
Consistency, lol.
tldr: one returns via reference variable, and the other returns properly
EDIT 1: Formatting<|eos... | 6 |
lolphp | polish_niceguy | ddznq35 | <|soss|><|sot|>parse_url and parse_str<|eot|><|sost|>Two functions, both in the same function group, return completely differently:
void parse_str($query_string, &$return)
array parse_url($url)
Consistency, lol.
tldr: one returns via reference variable, and the other returns properly
EDIT 1: Formatting<|eos... | 5 |
lolphp | 00Davo | 3n7q20 | <|sols|><|sot|>Trying to implement DateTimeInterface raises a fatal error<|eot|><|sol|>http://php.net/manual/en/class.datetimeinterface.php<|eol|><|eols|><|endoftext|> | 40 |
lolphp | BufferUnderpants | cvlx8cp | <|sols|><|sot|>Trying to implement DateTimeInterface raises a fatal error<|eot|><|sol|>http://php.net/manual/en/class.datetimeinterface.php<|eol|><|sor|>> backwards compatibility<|eor|><|sor|>Is that the rationale? The page just says that it was formerly intended to raise an error, but it didn't.<|eor|><|sor|>It's a ja... | 15 |
lolphp | BufferUnderpants | cvltt1c | <|sols|><|sot|>Trying to implement DateTimeInterface raises a fatal error<|eot|><|sol|>http://php.net/manual/en/class.datetimeinterface.php<|eol|><|sor|>> backwards compatibility<|eor|><|eols|><|endoftext|> | 13 |
lolphp | yrro | cvluy1w | <|sols|><|sot|>Trying to implement DateTimeInterface raises a fatal error<|eot|><|sol|>http://php.net/manual/en/class.datetimeinterface.php<|eol|><|sor|>> backwards compatibility<|eor|><|sor|>Is that the rationale? The page just says that it was formerly intended to raise an error, but it didn't.<|eor|><|eols|><|endoft... | 10 |
lolphp | myaut | cvm521v | <|sols|><|sot|>Trying to implement DateTimeInterface raises a fatal error<|eot|><|sol|>http://php.net/manual/en/class.datetimeinterface.php<|eol|><|sor|>> backwards compatibility<|eor|><|sor|>In this case it is probably laziness of PHP devs. They are still distinguish "userland" classes (one that defined in PHP code) a... | 9 |
lolphp | expugnator3000 | cvmvfu4 | <|sols|><|sot|>Trying to implement DateTimeInterface raises a fatal error<|eot|><|sol|>http://php.net/manual/en/class.datetimeinterface.php<|eol|><|sor|>[deleted]<|eor|><|sor|>...and this should not happen?<|eor|><|sor|>[deleted]<|eor|><|sor|>If it's an error then it shouldn't be an interface in the first place, since ... | 7 |
lolphp | expugnator3000 | cvmm0jb | <|sols|><|sot|>Trying to implement DateTimeInterface raises a fatal error<|eot|><|sol|>http://php.net/manual/en/class.datetimeinterface.php<|eol|><|sor|>[deleted]<|eor|><|sor|>...and this should not happen?<|eor|><|eols|><|endoftext|> | 5 |
lolphp | McGlockenshire | 2zf243 | <|sols|><|sot|>The person responsible for creating accounts for RFC voters uses arbitrary criteria to accept or decline accounts, dislikes the RFC voting concept, and seems to think that transparency is bad<|eot|><|sol|>http://marc.info/?l=php-internals&m=142662967407771&w=4<|eol|><|eols|><|endoftext|> | 42 |
lolphp | that_which_is_lain | cpirzww | <|sols|><|sot|>The person responsible for creating accounts for RFC voters uses arbitrary criteria to accept or decline accounts, dislikes the RFC voting concept, and seems to think that transparency is bad<|eot|><|sol|>http://marc.info/?l=php-internals&m=142662967407771&w=4<|eol|><|sor|>> Now. Please go on and become ... | 25 |
lolphp | willfe42 | cpimsei | <|sols|><|sot|>The person responsible for creating accounts for RFC voters uses arbitrary criteria to accept or decline accounts, dislikes the RFC voting concept, and seems to think that transparency is bad<|eot|><|sol|>http://marc.info/?l=php-internals&m=142662967407771&w=4<|eol|><|sor|>> Now. Please go on and become ... | 14 |
lolphp | iftpadfs | cpk9g1b | <|sols|><|sot|>The person responsible for creating accounts for RFC voters uses arbitrary criteria to accept or decline accounts, dislikes the RFC voting concept, and seems to think that transparency is bad<|eot|><|sol|>http://marc.info/?l=php-internals&m=142662967407771&w=4<|eol|><|sor|>[deleted]<|eor|><|sor|>Highly d... | 14 |
lolphp | iftpadfs | cpk71od | <|sols|><|sot|>The person responsible for creating accounts for RFC voters uses arbitrary criteria to accept or decline accounts, dislikes the RFC voting concept, and seems to think that transparency is bad<|eot|><|sol|>http://marc.info/?l=php-internals&m=142662967407771&w=4<|eol|><|sor|>[deleted]<|eor|><|sor|>Highly d... | 13 |
lolphp | domstersch | cpimzg1 | <|sols|><|sot|>The person responsible for creating accounts for RFC voters uses arbitrary criteria to accept or decline accounts, dislikes the RFC voting concept, and seems to think that transparency is bad<|eot|><|sol|>http://marc.info/?l=php-internals&m=142662967407771&w=4<|eol|><|sor|>He says he doesn't like the RFC... | 11 |
lolphp | iftpadfs | cpk9mu5 | <|sols|><|sot|>The person responsible for creating accounts for RFC voters uses arbitrary criteria to accept or decline accounts, dislikes the RFC voting concept, and seems to think that transparency is bad<|eot|><|sol|>http://marc.info/?l=php-internals&m=142662967407771&w=4<|eol|><|sor|>[deleted]<|eor|><|sor|>Highly d... | 6 |
lolphp | TortoiseWrath | 214noa | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|eols|><|endoftext|> | 46 |
lolphp | MeLoN_DO | cg9m09s | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|> > This is not a full unrestricted goto. The target label must be within the same file and context, meaning that you cannot jump out of a function or method, nor can you jump into one. You also cannot jump into any s... | 40 |
lolphp | Innominate8 | cg9mobl | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|>goto is a useful construct when used sparingly. Unfortunately a whole generation now exists who were told as students to never use goto and now believe it is the worst thing you can ever do when programming.
Of the ... | 27 |
lolphp | dehrmann | cg9mqup | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|>Go/Golang also has goto.
Just because everyone says its bad, doesn't exactly mean it doesn't have its uses. Building a web server in Go for example, would benefit from gotos. <|eor|><|sor|>I'd *much* rather have Ja... | 17 |
lolphp | barubary | cg9oq0m | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|> > This is not a full unrestricted goto. The target label must be within the same file and context, meaning that you cannot jump out of a function or method, nor can you jump into one. You also cannot jump into any s... | 15 |
lolphp | nikic | cg9p7em | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|> > This is not a full unrestricted goto. The target label must be within the same file and context, meaning that you cannot jump out of a function or method, nor can you jump into one. You also cannot jump into any s... | 15 |
lolphp | barubary | cg9oo56 | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|>Go/Golang also has goto.
Just because everyone says its bad, doesn't exactly mean it doesn't have its uses. Building a web server in Go for example, would benefit from gotos. <|eor|><|sor|>I'd *much* rather have Ja... | 13 |
lolphp | dagbrown | cg9ovo6 | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|>Go/Golang also has goto.
Just because everyone says its bad, doesn't exactly mean it doesn't have its uses. Building a web server in Go for example, would benefit from gotos. <|eor|><|sor|>It's not *having* goto th... | 10 |
lolphp | aaron552 | cg9pxnm | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|> > This is not a full unrestricted goto. The target label must be within the same file and context, meaning that you cannot jump out of a function or method, nor can you jump into one. You also cannot jump into any s... | 9 |
lolphp | tommorris | cgagoa4 | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|>The justification for it seems to be "it's needed for low-level programming".
The thought of people doing low-level programming in PHP rather than writing a goddamn PHP extension in C is more horrifying than the ex... | 8 |
lolphp | RecursionIsRecursion | cg9r7as | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|> > This is not a full unrestricted goto. The target label must be within the same file and context, meaning that you cannot jump out of a function or method, nor can you jump into one. You also cannot jump into any s... | 8 |
lolphp | jsanc623 | cg9l6cx | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|>Go/Golang also has goto.
Just because everyone says its bad, doesn't exactly mean it doesn't have its uses. Building a web server in Go for example, would benefit from gotos. <|eor|><|eols|><|endoftext|> | 7 |
lolphp | Rhomboid | cg9lx9e | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|>Go/Golang also has goto.
Just because everyone says its bad, doesn't exactly mean it doesn't have its uses. Building a web server in Go for example, would benefit from gotos. <|eor|><|sor|>It's not *having* goto th... | 7 |
lolphp | DoctorWaluigiTime | cg9pdjv | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|> > This is not a full unrestricted goto. The target label must be within the same file and context, meaning that you cannot jump out of a function or method, nor can you jump into one. You also cannot jump into any s... | 6 |
lolphp | MeLoN_DO | cg9srij | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|> > This is not a full unrestricted goto. The target label must be within the same file and context, meaning that you cannot jump out of a function or method, nor can you jump into one. You also cannot jump into any s... | 6 |
lolphp | MeLoN_DO | cg9st41 | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|> > This is not a full unrestricted goto. The target label must be within the same file and context, meaning that you cannot jump out of a function or method, nor can you jump into one. You also cannot jump into any s... | 6 |
lolphp | dehrmann | cg9ms37 | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|>goto is a useful construct when used sparingly. Unfortunately a whole generation now exists who were told as students to never use goto and now believe it is the worst thing you can ever do when programming.
Of the ... | 5 |
lolphp | Pat55word | cg9wwmg | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|>goto is a useful construct when used sparingly. Unfortunately a whole generation now exists who were told as students to never use goto and now believe it is the worst thing you can ever do when programming.
Of the ... | 5 |
lolphp | ismtrn | cg9pvje | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|> > This is not a full unrestricted goto. The target label must be within the same file and context, meaning that you cannot jump out of a function or method, nor can you jump into one. You also cannot jump into any s... | 5 |
lolphp | MeLoN_DO | cg9svkz | <|sols|><|sot|>The goto operator was ADDED in PHP 5.3<|eot|><|sol|>http://us3.php.net/goto<|eol|><|sor|>Go/Golang also has goto.
Just because everyone says its bad, doesn't exactly mean it doesn't have its uses. Building a web server in Go for example, would benefit from gotos. <|eor|><|sor|>I'd *much* rather have Ja... | 5 |
lolphp | ajmarks | 1pz6gn | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|eols|><|endoftext|> | 47 |
lolphp | ajmarks | cd7j74g | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|soopr|>A bit back somebody pointed out the stupidity that is $string++ in PHP. What's even more PHP (read: inconsistent) is that $string-- doesn't undo that; it's a NOP.<|eoopr|><|eols|><|... | 14 |
lolphp | polish_niceguy | cd7xy1z | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|soopr|>A bit back somebody pointed out the stupidity that is $string++ in PHP. What's even more PHP (read: inconsistent) is that $string-- doesn't undo that; it's a NOP.<|eoopr|><|sor|>I'm... | 14 |
lolphp | cwmonkey | cd7jcgt | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|soopr|>A bit back somebody pointed out the stupidity that is $string++ in PHP. What's even more PHP (read: inconsistent) is that $string-- doesn't undo that; it's a NOP.<|eoopr|><|sor|>I'm... | 13 |
lolphp | ajmarks | cd7meqz | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|sor|>Why is $string++ stupid? Plenty of things use that system, for instance excel column names.
**EDIT**: I didn't mean in PHP, I meant the general concept. There exists a kind of base-2... | 8 |
lolphp | Lokaltog | cd7ocmz | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|sor|>Why is $string++ stupid? Plenty of things use that system, for instance excel column names.
**EDIT**: I didn't mean in PHP, I meant the general concept. There exists a kind of base-2... | 7 |
lolphp | ajmarks | cd7lrtq | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|soopr|>A bit back somebody pointed out the stupidity that is $string++ in PHP. What's even more PHP (read: inconsistent) is that $string-- doesn't undo that; it's a NOP.<|eoopr|><|sor|>Ref... | 7 |
lolphp | 0xa0000 | cd7jswk | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|soopr|>A bit back somebody pointed out the stupidity that is $string++ in PHP. What's even more PHP (read: inconsistent) is that $string-- doesn't undo that; it's a NOP.<|eoopr|><|sor|>Ref... | 6 |
lolphp | phoshi | cd7n8ac | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|sor|>Why is $string++ stupid? Plenty of things use that system, for instance excel column names.
**EDIT**: I didn't mean in PHP, I meant the general concept. There exists a kind of base-2... | 6 |
lolphp | ZorbaTHut | cd8aj9j | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|sor|>looks like another perl feature they didnt really manage to port sensibly... just like die() and probably ... everything else?<|eor|><|sor|>\>implying there's any sensible way to incre... | 6 |
lolphp | dagbrown | cd7yzqy | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|sor|>Why is $string++ stupid? Plenty of things use that system, for instance excel column names.
**EDIT**: I didn't mean in PHP, I meant the general concept. There exists a kind of base-2... | 6 |
lolphp | huf | cd7l7pl | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|sor|>looks like another perl feature they didnt really manage to port sensibly... just like die() and probably ... everything else?<|eor|><|eols|><|endoftext|> | 5 |
lolphp | synt4x | cd85ber | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|sor|>I inherited a project tracker that gave IDs to projects using this scheme (e.g. customer 123 would have projects like 123a, ..., 123z, 123aa, etc). I wanted to claw my eyes out when I ... | 5 |
lolphp | huf | cd7n9y4 | <|sols|><|sot|>$string++ is stupid, but what's stupider is that $string-- doesn't match<|eot|><|sol|>https://eval.in/60631<|eol|><|sor|>looks like another perl feature they didnt really manage to port sensibly... just like die() and probably ... everything else?<|eor|><|sor|>\>implying there's any sensible way to incre... | 5 |
lolphp | SockPants | 1j3wlz | <|sols|><|sot|>PHP runs object constructor -after- setting variables with mysql_fetch_object, won't fix bug because it might break old code.<|eot|><|sol|>https://bugs.php.net/bug.php?id=46105<|eol|><|eols|><|endoftext|> | 41 |
lolphp | Mych | cbbbzzb | <|sols|><|sot|>PHP runs object constructor -after- setting variables with mysql_fetch_object, won't fix bug because it might break old code.<|eot|><|sol|>https://bugs.php.net/bug.php?id=46105<|eol|><|sor|>That clearly calls for the addition of `mysql_real_fetch_object()`.<|eor|><|eols|><|endoftext|> | 28 |
lolphp | gearvOsh | cbavgg8 | <|sols|><|sot|>PHP runs object constructor -after- setting variables with mysql_fetch_object, won't fix bug because it might break old code.<|eot|><|sol|>https://bugs.php.net/bug.php?id=46105<|eol|><|soopr|> object mysql_fetch_object ( resource $result [, string $class_name [, array $params ]] )
This function i... | 11 |
lolphp | SockPants | cbatz0j | <|sols|><|sot|>PHP runs object constructor -after- setting variables with mysql_fetch_object, won't fix bug because it might break old code.<|eot|><|sol|>https://bugs.php.net/bug.php?id=46105<|eol|><|soopr|> object mysql_fetch_object ( resource $result [, string $class_name [, array $params ]] )
This function i... | 8 |
lolphp | cfreak2399 | cbawybk | <|sols|><|sot|>PHP runs object constructor -after- setting variables with mysql_fetch_object, won't fix bug because it might break old code.<|eot|><|sol|>https://bugs.php.net/bug.php?id=46105<|eol|><|soopr|> object mysql_fetch_object ( resource $result [, string $class_name [, array $params ]] )
This function i... | 7 |
lolphp | AnonymousPHPDevelope | 1b6dys | <|sols|><|sot|>Fun with $this: Guess the output<|eot|><|sol|>http://www.phpfiddle.org/lite/code/1wb-ydp<|eol|><|eols|><|endoftext|> | 48 |
lolphp | huf | c941r2e | <|sols|><|sot|>Fun with $this: Guess the output<|eot|><|sol|>http://www.phpfiddle.org/lite/code/1wb-ydp<|eol|><|sor|>this is pure fucking joy.<|eor|><|eols|><|endoftext|> | 13 |
lolphp | polish_niceguy | c94clv8 | <|sols|><|sot|>Fun with $this: Guess the output<|eot|><|sol|>http://www.phpfiddle.org/lite/code/1wb-ydp<|eol|><|sor|>But who was foo?!?!?!?!?!?!!!<|eor|><|sor|> $foo = 'this';
$$foo = 'Dog';
echo "Yes, this is $this";<|eor|><|eols|><|endoftext|> | 9 |
lolphp | catcradle5 | c948ikf | <|sols|><|sot|>Fun with $this: Guess the output<|eot|><|sol|>http://www.phpfiddle.org/lite/code/1wb-ydp<|eol|><|sor|>But who was foo?!?!?!?!?!?!!!<|eor|><|eols|><|endoftext|> | 7 |
lolphp | arcanin | 4l0p76 | <|sols|><|sot|>PHP is not able to read multipart/form-data with anything else than POST (PATCH, PUT, anyone?)<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|eols|><|endoftext|> | 45 |
lolphp | beardedlinuxgeek | d3jilun | <|sols|><|sot|>PHP is not able to read multipart/form-data with anything else than POST (PATCH, PUT, anyone?)<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|sor|>It makes more sense to access the input stream anyways.
file_get_contents('php://input');
It's the only way to pass true JSON objects back... | 17 |
lolphp | kageurufu | d3jpsan | <|sols|><|sot|>PHP is not able to read multipart/form-data with anything else than POST (PATCH, PUT, anyone?)<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|sor|>It makes more sense to access the input stream anyways.
file_get_contents('php://input');
It's the only way to pass true JSON objects back... | 11 |
lolphp | gsnedders | d3jo6fp | <|sols|><|sot|>PHP is not able to read multipart/form-data with anything else than POST (PATCH, PUT, anyone?)<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|sor|>Opened: 2011
Status: open
total PHP<|eor|><|sor|>Is there any major project that doesn't have years old bugs still open? Well, I guess those th... | 11 |
lolphp | arcanin | d3javr3 | <|sols|><|sot|>PHP is not able to read multipart/form-data with anything else than POST (PATCH, PUT, anyone?)<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|soopr|>And that bug has been opened since 2011. I'm baffled. Worse thing is, they seem to be hiding behind some kind of excuse instead of fixing the is... | 10 |
lolphp | shvelo | d3jncz2 | <|sols|><|sot|>PHP is not able to read multipart/form-data with anything else than POST (PATCH, PUT, anyone?)<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|sor|>Opened: 2011
Status: open
total PHP<|eor|><|eols|><|endoftext|> | 6 |
lolphp | arcanin | d3kag7x | <|sols|><|sot|>PHP is not able to read multipart/form-data with anything else than POST (PATCH, PUT, anyone?)<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|sor|>That's a misleading title. The linked bug report is about the $_POST super-global only working with POST requests. As [beardedlinuxgeek](https:/... | 6 |
lolphp | PhantomRacer | d3jjyfw | <|sols|><|sot|>PHP is not able to read multipart/form-data with anything else than POST (PATCH, PUT, anyone?)<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|sor|>That's a misleading title. The linked bug report is about the $_POST super-global only working with POST requests. As [beardedlinuxgeek](https:/... | 5 |
lolphp | phoshi | d3kq2hj | <|sols|><|sot|>PHP is not able to read multipart/form-data with anything else than POST (PATCH, PUT, anyone?)<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|sor|>It makes more sense to access the input stream anyways.
file_get_contents('php://input');
It's the only way to pass true JSON objects back... | 5 |
lolphp | sarciszewski | 40l851 | <|sols|><|sot|>#define PHP_CRYPT_RAND php_rand()<|eot|><|sol|>https://twitter.com/voodooKobra/status/686790169836568576<|eol|><|eols|><|endoftext|> | 43 |
lolphp | myaut | cyv4z2y | <|sols|><|sot|>#define PHP_CRYPT_RAND php_rand()<|eot|><|sol|>https://twitter.com/voodooKobra/status/686790169836568576<|eol|><|sor|>Comment above is also golden:
/* If the configure-time checks fail, we provide DES.
* XXX: This is a hack. Fix the real problem! */<|eor|><|eols|><|endoftext|> | 23 |
lolphp | sarciszewski | cyvad1y | <|sols|><|sot|>#define PHP_CRYPT_RAND php_rand()<|eot|><|sol|>https://twitter.com/voodooKobra/status/686790169836568576<|eol|><|sor|>oh noes! The (public) salt is generated using a non-cryptographic RNG. Stop the presses and start the panic! (I'm talking about the [second link](https://github.com/php/php-src/blob/71c19... | 15 |
lolphp | barubary | cyvbwhp | <|sols|><|sot|>#define PHP_CRYPT_RAND php_rand()<|eot|><|sol|>https://twitter.com/voodooKobra/status/686790169836568576<|eol|><|sor|>oh noes! The (public) salt is generated using a non-cryptographic RNG. Stop the presses and start the panic! (I'm talking about the [second link](https://github.com/php/php-src/blob/71c19... | 10 |
lolphp | the_alias_of_andrea | cywk9ib | <|sols|><|sot|>#define PHP_CRYPT_RAND php_rand()<|eot|><|sol|>https://twitter.com/voodooKobra/status/686790169836568576<|eol|><|sor|>Ah yes, mcrypt, which provides the World War II German Enigma cipher as an option.<|eor|><|eols|><|endoftext|> | 9 |
lolphp | sarciszewski | cyvc2lo | <|sols|><|sot|>#define PHP_CRYPT_RAND php_rand()<|eot|><|sol|>https://twitter.com/voodooKobra/status/686790169836568576<|eol|><|sor|>oh noes! The (public) salt is generated using a non-cryptographic RNG. Stop the presses and start the panic! (I'm talking about the [second link](https://github.com/php/php-src/blob/71c19... | 9 |
lolphp | vytah | cz2x0rw | <|sols|><|sot|>#define PHP_CRYPT_RAND php_rand()<|eot|><|sol|>https://twitter.com/voodooKobra/status/686790169836568576<|eol|><|sor|>Ah yes, mcrypt, which provides the World War II German Enigma cipher as an option.<|eor|><|sor|>[I thought you were joking...](http://php.net/manual/en/mcrypt.ciphers.php)
Also, as the *... | 8 |
lolphp | ltldvl | 3di02g | <|sols|><|sot|>Using exceptions inside usort() callback function causes a warning<|eot|><|sol|>https://bugs.php.net/bug.php?id=50688<|eol|><|eols|><|endoftext|> | 41 |
lolphp | HildartheDorf | ct5hm2y | <|sols|><|sot|>Using exceptions inside usort() callback function causes a warning<|eot|><|sol|>https://bugs.php.net/bug.php?id=50688<|eol|><|sor|>All because throwing an exception causes a stacktrace. stacktraces cause references. And usort warns if the reference count changes.
Relying on implementation details: the l... | 34 |
lolphp | cbraga | ct5qdwv | <|sols|><|sot|>Using exceptions inside usort() callback function causes a warning<|eot|><|sol|>https://bugs.php.net/bug.php?id=50688<|eol|><|sor|>All because throwing an exception causes a stacktrace. stacktraces cause references. And usort warns if the reference count changes.
Relying on implementation details: the l... | 19 |
lolphp | arood | ct6bygb | <|sols|><|sot|>Using exceptions inside usort() callback function causes a warning<|eot|><|sol|>https://bugs.php.net/bug.php?id=50688<|eol|><|sor|>I was a bit tired when I read this title and thought it was "Using exceptions inside sort() callback function causes global warming"<|eor|><|eols|><|endoftext|> | 7 |
lolphp | smog_alado | ct6ej1u | <|sols|><|sot|>Using exceptions inside usort() callback function causes a warning<|eot|><|sol|>https://bugs.php.net/bug.php?id=50688<|eol|><|sor|>All because throwing an exception causes a stacktrace. stacktraces cause references. And usort warns if the reference count changes.
Relying on implementation details: the l... | 6 |
lolphp | polish_niceguy | ct6ctho | <|sols|><|sot|>Using exceptions inside usort() callback function causes a warning<|eot|><|sol|>https://bugs.php.net/bug.php?id=50688<|eol|><|sor|>All because throwing an exception causes a stacktrace. stacktraces cause references. And usort warns if the reference count changes.
Relying on implementation details: the l... | 6 |
lolphp | ElusiveGuy | ct6gqk1 | <|sols|><|sot|>Using exceptions inside usort() callback function causes a warning<|eot|><|sol|>https://bugs.php.net/bug.php?id=50688<|eol|><|sor|>I was a bit tired when I read this title and thought it was "Using exceptions inside sort() callback function causes global warming"<|eor|><|sor|>> "Sorry, we cannot change t... | 6 |
lolphp | xkcd_transcriber | ct6gqt2 | <|sols|><|sot|>Using exceptions inside usort() callback function causes a warning<|eot|><|sol|>https://bugs.php.net/bug.php?id=50688<|eol|><|sor|>I was a bit tired when I read this title and thought it was "Using exceptions inside sort() callback function causes global warming"<|eor|><|sor|>> "Sorry, we cannot change t... | 5 |
lolphp | i_make_snow_flakes | 2l1g7s | <|sols|><|sot|>Prepared statements in pdo, running in emulated mode (which is default), will split the query on semi colons, and execute multiple queries thus formed, allowing SQL injection attacks and was the basis on the last Drupal vulnerability.<|eot|><|sol|>http://blog.ircmaxell.com/2014/10/a-lesson-in-security.ht... | 45 |
lolphp | allthediamonds | clqphba | <|sols|><|sot|>Prepared statements in pdo, running in emulated mode (which is default), will split the query on semi colons, and execute multiple queries thus formed, allowing SQL injection attacks and was the basis on the last Drupal vulnerability.<|eot|><|sol|>http://blog.ircmaxell.com/2014/10/a-lesson-in-security.ht... | 19 |
lolphp | Innominate8 | clqmgf9 | <|sols|><|sot|>Prepared statements in pdo, running in emulated mode (which is default), will split the query on semi colons, and execute multiple queries thus formed, allowing SQL injection attacks and was the basis on the last Drupal vulnerability.<|eot|><|sol|>http://blog.ircmaxell.com/2014/10/a-lesson-in-security.ht... | 15 |
lolphp | catcradle5 | clqlrm1 | <|sols|><|sot|>Prepared statements in pdo, running in emulated mode (which is default), will split the query on semi colons, and execute multiple queries thus formed, allowing SQL injection attacks and was the basis on the last Drupal vulnerability.<|eot|><|sol|>http://blog.ircmaxell.com/2014/10/a-lesson-in-security.ht... | 12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.