subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | duhruh | 2ney2n | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|eols|><|endoftext|> | 28 |
lolphp | implicit_cast | cmd6yrc | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>It seems dumb, it's not really. By default, you're in the global/root namespace (i.e. `\`), so namespace-relative class names, constant names and function names work. Yo... | 13 |
lolphp | frazzlet | cmd480c | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>Does this apply to all types? E.g. if I specify a type, such as a class when constructing it, do I have to type \ in front of it as well? Or does it only pertain to exce... | 11 |
lolphp | myaut | cmde67k | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>Looks like PHP developers adopted C++ approach, but due to limitations of "dynamicness" they couldn't do it fine.
In C++ class name without T_PAAMAYIM_NEKUDOTAYIM quali... | 10 |
lolphp | phoshi | cmdep85 | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>It seems dumb, it's not really. By default, you're in the global/root namespace (i.e. `\`), so namespace-relative class names, constant names and function names work. Yo... | 10 |
lolphp | nikomo | cmd1hbd | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>Jesus effin Christ, high level languages are supposed to make the programmer's job less painful, not more painful. <|eor|><|eols|><|endoftext|> | 9 |
lolphp | berkes | cmdefvj | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>So you're posting an article from 5 years ago? About a feature that's well known? About a use case that is easy to understand? And easy to avoid? And explained thoroughl... | 9 |
lolphp | implicit_cast | cmdamcu | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>It seems dumb, it's not really. By default, you're in the global/root namespace (i.e. `\`), so namespace-relative class names, constant names and function names work. Yo... | 7 |
lolphp | himdel | cmdvx3j | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>It feels weird only when you use Exception because that feels like it should be available everywhere. Try substituting MyException and suddenly it feels *very* right and... | 6 |
lolphp | OneWingedShark | cmem0fn | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>Jesus effin Christ, high level languages are supposed to make the programmer's job less painful, not more painful. <|eor|><|sor|>Ohhh, thank you for the new bacronym for... | 6 |
lolphp | phoshi | cmdhjgk | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>It seems dumb, it's not really. By default, you're in the global/root namespace (i.e. `\`), so namespace-relative class names, constant names and function names work. Yo... | 6 |
lolphp | duhruh | cmd62ww | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>It seems dumb, it's not really. By default, you're in the global/root namespace (i.e. `\`), so namespace-relative class names, constant names and function names work. Yo... | 5 |
lolphp | phoshi | cmdgzmx | <|sols|><|sot|>Exception in a namespace is not defined -_-<|eot|><|sol|>http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/<|eol|><|sor|>It seems dumb, it's not really. By default, you're in the global/root namespace (i.e. `\`), so namespace-relative class names, constant names and function names work. Yo... | 5 |
lolphp | catcradle5 | 26ngjt | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|eols|><|endoftext|> | 24 |
lolphp | phoshi | chsy4nu | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>[deleted]<|eor|><|sor|>I don't know about that,
Part of what makes PHP lovely is that it's a C-like language that doesn't need to be compiled... | 24 |
lolphp | alx5000 | chsr6hr | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|soopr|>I just find it humorous that they seem to value spending so much effort on optimizing Zend and making internal, private API changes a lot mo... | 21 |
lolphp | _vec_ | chsx8ev | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>[deleted]<|eor|><|sor|>I don't know about that,
Part of what makes PHP lovely is that it's a C-like language that doesn't need to be compiled... | 13 |
lolphp | merreborn | chtidiu | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>> 20% more throughput
20% more of a small number is still a small number :D<|eor|><|sor|>Sure. But when you're already married to a PHP appl... | 9 |
lolphp | Turtlecupcakes | chsxc72 | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>[deleted]<|eor|><|sor|>I don't know about that,
Part of what makes PHP lovely is that it's a C-like language that doesn't need to be compiled... | 9 |
lolphp | phoshi | chszfqa | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>[deleted]<|eor|><|sor|>I don't know about that,
Part of what makes PHP lovely is that it's a C-like language that doesn't need to be compiled... | 9 |
lolphp | rbnc | chszrni | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>[deleted]<|eor|><|sor|>I don't know about that,
Part of what makes PHP lovely is that it's a C-like language that doesn't need to be compiled... | 9 |
lolphp | phoshi | chtwhe3 | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>I don't know about that,
Part of what makes PHP lovely is that it's a C-like language that doesn't need to be compiled.
Python is heavy on i... | 9 |
lolphp | catcradle5 | chsntjh | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|soopr|>I just find it humorous that they seem to value spending so much effort on optimizing Zend and making internal, private API changes a lot mo... | 8 |
lolphp | Turtlecupcakes | chswpem | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>[deleted]<|eor|><|sor|>I don't know about that,
Part of what makes PHP lovely is that it's a C-like language that doesn't need to be compiled... | 8 |
lolphp | cbraga | chtgqy3 | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|soopr|>I just find it humorous that they seem to value spending so much effort on optimizing Zend and making internal, private API changes a lot mo... | 7 |
lolphp | phoshi | chttw01 | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>[deleted]<|eor|><|sor|>I don't know about that,
Part of what makes PHP lovely is that it's a C-like language that doesn't need to be compiled... | 6 |
lolphp | Banane9 | chsv16f | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>> 20% more throughput
20% more of a small number is still a small number :D<|eor|><|eols|><|endoftext|> | 5 |
lolphp | Psychocist | chwauqu | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>[deleted]<|eor|><|sor|>I cannot believe people actually stand up to defend PHP. Seeing these comments worries me. It reminds me of fundamental... | 5 |
lolphp | terrorobe | chsyaj5 | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>[deleted]<|eor|><|sor|>I don't know about that,
Part of what makes PHP lovely is that it's a C-like language that doesn't need to be compiled... | 5 |
lolphp | rbnc | chszidf | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>[deleted]<|eor|><|sor|>I don't know about that,
Part of what makes PHP lovely is that it's a C-like language that doesn't need to be compiled... | 5 |
lolphp | rbnc | cht0mqs | <|sols|><|sot|>PHP Next Generation: Performance gains and internal API changes will finally fix PHP!<|eot|><|sol|>http://www.php.net/archive/2014.php#id2014-05-27-1<|eol|><|sor|>I don't know about that,
Part of what makes PHP lovely is that it's a C-like language that doesn't need to be compiled.
Python is heavy on i... | 5 |
lolphp | siroki | 2510dy | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|eols|><|endoftext|> | 27 |
lolphp | Rhomboid | chcqg4o | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|sor|>This is hilarious. On POSIX systems, there is a [`gettimeofday()`](http://pubs.opengroup.org/onlinepubs/009695399/functions/gettimeo... | 25 |
lolphp | Pixa | chclqw3 | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|sor|>Dat string return value. Lolphp Gold.
Why would anyone ever favour returning "0.1234 567" instead of 567.1234?<|eor|><|eols|><|endo... | 19 |
lolphp | ChoHag | chcmis4 | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|sor|>Dat string return value. Lolphp Gold.
Why would anyone ever favour returning "0.1234 567" instead of 567.1234?<|eor|><|sor|>I ... i... | 13 |
lolphp | bart2019 | chd10cq | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|sor|>This is hilarious. On POSIX systems, there is a [`gettimeofday()`](http://pubs.opengroup.org/onlinepubs/009695399/functions/gettimeo... | 11 |
lolphp | barubary | chd3vup | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|sor|>Dat string return value. Lolphp Gold.
Why would anyone ever favour returning "0.1234 567" instead of 567.1234?<|eor|><|sor|>Well, b... | 9 |
lolphp | siroki | chcl522 | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|soopr|>> returns a string in the form "msec sec", [], and msec measures microseconds that have elapsed since sec and is also expressed in ... | 8 |
lolphp | OneWingedShark | chexglg | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|sor|>This is hilarious. On POSIX systems, there is a [`gettimeofday()`](http://pubs.opengroup.org/onlinepubs/009695399/functions/gettimeo... | 8 |
lolphp | siroki | chf9w8b | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|sor|>"Unequivocally useless" is a bit harsh. You can calculate what you need to know from the return value of microtime(), string version.... | 7 |
lolphp | bart2019 | chd13fe | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|sor|>someone doesn't understand floating point precision and how mantissas work<|eor|><|sor|>Yeah. Except floating point in PHP is "double... | 6 |
lolphp | Rhomboid | chd2j45 | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|sor|>Dat string return value. Lolphp Gold.
Why would anyone ever favour returning "0.1234 567" instead of 567.1234?<|eor|><|sor|>Well, b... | 6 |
lolphp | _vec_ | chd1pl6 | <|sols|><|sot|>microtime: stupid specification, terrible documentation, optional fix came at a later version<|eot|><|sol|>http://www.php.net/manual/en/function.microtime.php<|eol|><|sor|>Dat string return value. Lolphp Gold.
Why would anyone ever favour returning "0.1234 567" instead of 567.1234?<|eor|><|sor|>Well, b... | 5 |
lolphp | n1c0_ds | 20x95z | <|sols|><|sot|>PDO conveniently convert nulls to 0<|eot|><|sol|>https://bugs.php.net/bug.php?id=44835<|eol|><|eols|><|endoftext|> | 30 |
lolphp | tdammers | cg7n1cs | <|sols|><|sot|>PDO conveniently convert nulls to 0<|eot|><|sol|>https://bugs.php.net/bug.php?id=44835<|eol|><|sor|>Other related fuck-ups:
* Values from numeric columns (INT, FLOAT, ...) are returned as *strings*
* Data to and from the database is generally assumed to be raw bytestrings; making sure the PHP side and t... | 15 |
lolphp | tdammers | cg7rbwp | <|sols|><|sot|>PDO conveniently convert nulls to 0<|eot|><|sol|>https://bugs.php.net/bug.php?id=44835<|eol|><|sor|>Other related fuck-ups:
* Values from numeric columns (INT, FLOAT, ...) are returned as *strings*
* Data to and from the database is generally assumed to be raw bytestrings; making sure the PHP side and t... | 13 |
lolphp | n1c0_ds | cg7o35g | <|sols|><|sot|>PDO conveniently convert nulls to 0<|eot|><|sol|>https://bugs.php.net/bug.php?id=44835<|eol|><|sor|>Other related fuck-ups:
* Values from numeric columns (INT, FLOAT, ...) are returned as *strings*
* Data to and from the database is generally assumed to be raw bytestrings; making sure the PHP side and t... | 11 |
lolphp | ajmarks | cg7ot00 | <|sols|><|sot|>PDO conveniently convert nulls to 0<|eot|><|sol|>https://bugs.php.net/bug.php?id=44835<|eol|><|sor|>Other related fuck-ups:
* Values from numeric columns (INT, FLOAT, ...) are returned as *strings*
* Data to and from the database is generally assumed to be raw bytestrings; making sure the PHP side and t... | 10 |
lolphp | tdammers | cg7ra4p | <|sols|><|sot|>PDO conveniently convert nulls to 0<|eot|><|sol|>https://bugs.php.net/bug.php?id=44835<|eol|><|sor|>Other related fuck-ups:
* Values from numeric columns (INT, FLOAT, ...) are returned as *strings*
* Data to and from the database is generally assumed to be raw bytestrings; making sure the PHP side and t... | 7 |
lolphp | catcradle5 | cg7t8t5 | <|sols|><|sot|>PDO conveniently convert nulls to 0<|eot|><|sol|>https://bugs.php.net/bug.php?id=44835<|eol|><|sor|>Other related fuck-ups:
* Values from numeric columns (INT, FLOAT, ...) are returned as *strings*
* Data to and from the database is generally assumed to be raw bytestrings; making sure the PHP side and t... | 6 |
lolphp | TJ09 | cg7r7f9 | <|sols|><|sot|>PDO conveniently convert nulls to 0<|eot|><|sol|>https://bugs.php.net/bug.php?id=44835<|eol|><|sor|>Other related fuck-ups:
* Values from numeric columns (INT, FLOAT, ...) are returned as *strings*
* Data to and from the database is generally assumed to be raw bytestrings; making sure the PHP side and t... | 6 |
lolphp | n1c0_ds | cg7rfec | <|sols|><|sot|>PDO conveniently convert nulls to 0<|eot|><|sol|>https://bugs.php.net/bug.php?id=44835<|eol|><|sor|>Other related fuck-ups:
* Values from numeric columns (INT, FLOAT, ...) are returned as *strings*
* Data to and from the database is generally assumed to be raw bytestrings; making sure the PHP side and t... | 6 |
lolphp | skillet-thief | cg7rof8 | <|sols|><|sot|>PDO conveniently convert nulls to 0<|eot|><|sol|>https://bugs.php.net/bug.php?id=44835<|eol|><|sor|>Other related fuck-ups:
* Values from numeric columns (INT, FLOAT, ...) are returned as *strings*
* Data to and from the database is generally assumed to be raw bytestrings; making sure the PHP side and t... | 5 |
lolphp | tdammers | cg9oljg | <|sols|><|sot|>PDO conveniently convert nulls to 0<|eot|><|sol|>https://bugs.php.net/bug.php?id=44835<|eol|><|sor|>Other related fuck-ups:
* Values from numeric columns (INT, FLOAT, ...) are returned as *strings*
* Data to and from the database is generally assumed to be raw bytestrings; making sure the PHP side and t... | 5 |
lolphp | jamwaffles | 1ih52d | <|sols|><|sot|>Casting an object to an array yields binary keys that look like strings<|eot|><|sol|>http://stackoverflow.com/questions/17695490/php-cast-object-to-array-strange-behaviour<|eol|><|eols|><|endoftext|> | 28 |
lolphp | steamruler | cb4f58e | <|sols|><|sot|>Casting an object to an array yields binary keys that look like strings<|eot|><|sol|>http://stackoverflow.com/questions/17695490/php-cast-object-to-array-strange-behaviour<|eol|><|sor|>Looks like they're trying to get private variables from an object. There's a reason you can't do that easily.<|eor|><|s... | 10 |
lolphp | PhantomRacer | cb4eis5 | <|sols|><|sot|>Casting an object to an array yields binary keys that look like strings<|eot|><|sol|>http://stackoverflow.com/questions/17695490/php-cast-object-to-array-strange-behaviour<|eol|><|sor|>Looks like they're trying to get private variables from an object. There's a reason you can't do that easily.<|eor|><|e... | 9 |
lolphp | Fitzsimmons | cb4hgp6 | <|sols|><|sot|>Casting an object to an array yields binary keys that look like strings<|eot|><|sol|>http://stackoverflow.com/questions/17695490/php-cast-object-to-array-strange-behaviour<|eol|><|sor|>Looks like they're trying to get private variables from an object. There's a reason you can't do that easily.<|eor|><|s... | 8 |
lolphp | nikic | cb55xaq | <|sols|><|sot|>Casting an object to an array yields binary keys that look like strings<|eot|><|sol|>http://stackoverflow.com/questions/17695490/php-cast-object-to-array-strange-behaviour<|eol|><|sor|>What you see here is called "property name mangling". You can find an explanation for why this is internally necessary h... | 7 |
lolphp | nikic | 1choxy | <|sols|><|sot|>PHP's comparison operators are weird...<|eot|><|sol|>http://stackoverflow.com/q/15813490/385378<|eol|><|eols|><|endoftext|> | 28 |
lolphp | subWoofer_0870 | m8ud8s | <|sols|><|sot|>Time zones r us<|eot|><|sol|>/r/talesfromtechsupport/comments/m8ep6m/the_clocks_wrong/<|eol|><|eols|><|endoftext|> | 27 |
lolphp | Takeoded | hy5rsv | <|soss|><|sot|>file_put_contents() supports LOCK_EX, but file_get_contents() does not support LOCK_SH<|eot|><|sost|><|eost|><|eoss|><|endoftext|> | 26 |
lolphp | pilif | fzamgs0 | <|soss|><|sot|>file_put_contents() supports LOCK_EX, but file_get_contents() does not support LOCK_SH<|eot|><|sost|><|eost|><|sor|>The real WTF is the note in the manual about the use_include_path parameter and strict typing<|eor|><|eoss|><|endoftext|> | 17 |
lolphp | Takeoded | fzascgd | <|soss|><|sot|>file_put_contents() supports LOCK_EX, but file_get_contents() does not support LOCK_SH<|eot|><|sost|><|eost|><|sor|>The real WTF is the note in the manual about the use_include_path parameter and strict typing<|eor|><|soopr|>speaking of, bool $use_include_path should be changed to int $flags anyway, then... | 6 |
lolphp | SeriTools | fzb6u1s | <|soss|><|sot|>file_put_contents() supports LOCK_EX, but file_get_contents() does not support LOCK_SH<|eot|><|sost|><|eost|><|sor|>The real WTF is the note in the manual about the use_include_path parameter and strict typing<|eor|><|soopr|>speaking of, bool $use_include_path should be changed to int $flags anyway, then... | 5 |
lolphp | fotcorn | b0ondc | <|sols|><|sot|>Let's make the first parameter optional completely changing the meaning of argument names<|eot|><|sol|>https://i.redd.it/xbtn1recfwl21.png<|eol|><|eols|><|endoftext|> | 26 |
lolphp | vita10gy | eig6pu1 | <|sols|><|sot|>Let's make the first parameter optional completely changing the meaning of argument names<|eot|><|sol|>https://i.redd.it/xbtn1recfwl21.png<|eol|><|sor|>This isn't /r/loldevsdodumbthings<|eor|><|eols|><|endoftext|> | 17 |
lolphp | dotancohen | eihtrt5 | <|sols|><|sot|>Let's make the first parameter optional completely changing the meaning of argument names<|eot|><|sol|>https://i.redd.it/xbtn1recfwl21.png<|eol|><|sor|>Not sure if you've seen the pgSQL API but... yeah.
http://php.net/manual/en/function.pg-query.php<|eor|><|sor|>The mods should replace the submission, w... | 10 |
lolphp | SaraMG | eih8ajj | <|sols|><|sot|>Let's make the first parameter optional completely changing the meaning of argument names<|eot|><|sol|>https://i.redd.it/xbtn1recfwl21.png<|eol|><|sor|>Not sure if you've seen the pgSQL API but... yeah.
http://php.net/manual/en/function.pg-query.php<|eor|><|eols|><|endoftext|> | 8 |
lolphp | ImNewHereBoys | eis0h1h | <|sols|><|sot|>Let's make the first parameter optional completely changing the meaning of argument names<|eot|><|sol|>https://i.redd.it/xbtn1recfwl21.png<|eol|><|sor|>This has nothing to do with php i guess except that the developer wrote it in php.<|eor|><|eols|><|endoftext|> | 7 |
lolphp | fotcorn | eig05f6 | <|sols|><|sot|>Let's make the first parameter optional completely changing the meaning of argument names<|eot|><|sol|>https://i.redd.it/xbtn1recfwl21.png<|eol|><|soopr|>At least the framework developers agree and deprecated the $code argument: https://github.com/nette/application/blob/master/src/Application/UI/Componen... | 5 |
lolphp | Perdouille | eigloyp | <|sols|><|sot|>Let's make the first parameter optional completely changing the meaning of argument names<|eot|><|sol|>https://i.redd.it/xbtn1recfwl21.png<|eol|><|sor|>How is this different from overloading from the callers perspective?<|eor|><|sor|>Your IDE will show you the function arguments as $code, $destination an... | 5 |
lolphp | shaql | 9un2lo | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|eols|><|endoftext|> | 28 |
lolphp | DCoder1337 | e95hvj1 | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|soopr|>Can someone please explain to me, just, *why*? (Preferably ELI5, I don't really know what is TSRM, Zend, etc., or what t... | 17 |
lolphp | shaql | e95g5ac | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|soopr|>Can someone please explain to me, just, *why*? (Preferably ELI5, I don't really know what is TSRM, Zend, etc., or what t... | 11 |
lolphp | sproingie | e97g2wy | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|soopr|>Can someone please explain to me, just, *why*? (Preferably ELI5, I don't really know what is TSRM, Zend, etc., or what t... | 11 |
lolphp | DCoder1337 | e95jxh8 | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|soopr|>Can someone please explain to me, just, *why*? (Preferably ELI5, I don't really know what is TSRM, Zend, etc., or what t... | 9 |
lolphp | barubary | e9666qt | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|soopr|>Can someone please explain to me, just, *why*? (Preferably ELI5, I don't really know what is TSRM, Zend, etc., or what t... | 8 |
lolphp | shaql | e95j91o | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|soopr|>Can someone please explain to me, just, *why*? (Preferably ELI5, I don't really know what is TSRM, Zend, etc., or what t... | 7 |
lolphp | AyrA_ch | e95vynp | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|soopr|>Can someone please explain to me, just, *why*? (Preferably ELI5, I don't really know what is TSRM, Zend, etc., or what t... | 7 |
lolphp | shaql | e97qci2 | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|soopr|>Ok, I did some more research...
That file I linked to was previously known as TSRM/tsrm_virtual_cwd.c
The weird defin... | 6 |
lolphp | shaql | e98qh14 | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|sor|>What's up with those `do { x } while(0);`?<|eor|><|soopr|>https://stackoverflow.com/questions/257418/do-while-0-what-is-it... | 6 |
lolphp | squiggleslash | e95wtu2 | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|soopr|>Can someone please explain to me, just, *why*? (Preferably ELI5, I don't really know what is TSRM, Zend, etc., or what t... | 6 |
lolphp | Takeoded | e9r8lpe | <|sols|><|sot|>#define realpath(x,y) strcpy(y,x)<|eot|><|sol|>https://git.php.net/?p=php-src.git;a=blob;f=Zend/zend_virtual_cwd.c;h=8a90f25bf7f442aa3f6978247659c9eb575116c1;hb=HEAD#l70<|eol|><|sor|>What's up with those `do { x } while(0);`?<|eor|><|soopr|>https://stackoverflow.com/questions/257418/do-while-0-what-is-it... | 5 |
lolphp | eth4n_ | 85bj7b | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 26 |
lolphp | chateau86 | dvw7mc1 | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 54 |
lolphp | calligraphic-io | dvwxotn | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 27 |
lolphp | calligraphic-io | dvwctxn | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 20 |
lolphp | calligraphic-io | dvwh4as | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 17 |
lolphp | AyrA_ch | dvx1dic | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 17 |
lolphp | commitpushdrink | dvx0232 | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 12 |
lolphp | mikeputerbaugh | dvw9jee | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 7 |
lolphp | eth4n_ | dvwjpmh | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 7 |
lolphp | ZiggyTheHamster | dvxft8e | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 7 |
lolphp | WikiTextBot | dvwxoyl | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 7 |
lolphp | commitpushdrink | dvwx572 | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 6 |
lolphp | calligraphic-io | dvwy5ut | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 6 |
lolphp | calligraphic-io | dvx1pr8 | <|soss|><|sot|>looking for story: employee creates own php syntax<|eot|><|sost|>Hi folks,
I am looking for a post/story (here in reddit or internet) about a php dev telling about a new job where he found that a former employee of the company created his own php syntax to code.
The companies webpage (or shop system) i... | 5 |
lolphp | Takeoded | 6akjgv | <|sols|><|sot|>numeric keys can be confusing<|eot|><|sol|>https://3v4l.org/vQCck<|eol|><|eols|><|endoftext|> | 28 |
lolphp | Takeoded | 4mkj7w | <|soss|><|sot|>str_repeat returns NULL on failure<|eot|><|sost|>unlike pretty much everything else in PHP, which returns FALSE for failure, str_repeat returns NULL. also it's undocumented.
<?php var_dump(str_repeat('fo',-1));?>
>Warning: str_repeat(): Second argument has to be greater than or equal to 0 in /in/Iu... | 27 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.