subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | dtfinch | d5gygsc | <|sols|><|sot|>In retrospect having the function return an integer maybe wasn't the best idea<|eot|><|sol|>https://secure.php.net/manual/en/function.crc32.php<|eol|><|sor|>Or they could have just had it return signed on both 32 and 64 bit.<|eor|><|eols|><|endoftext|> | 5 |
lolphp | losingthefight | d5ht2bu | <|sols|><|sot|>In retrospect having the function return an integer maybe wasn't the best idea<|eot|><|sol|>https://secure.php.net/manual/en/function.crc32.php<|eol|><|sor|>At least someone had the courtesy of making a big **BASICALLY, DON'T USE THIS** disclaimer in the API. And even if you must use it, there's a detail... | 5 |
lolphp | phaeilo | 1yseqm | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|eols|><|endoftext|> | 86 |
lolphp | cfreak2399 | cfnf9c8 | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>The good news is the author commented after they showed him the error of his ways and is working to fix the problem.<|eor|><|eols|><|endoftext|> | 51 |
lolphp | InconsiderateBastard | cfnlnpo | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>The good news is the author commented after they showed him the error of his ways and is working to fix the problem.<|eor|><|sor|>I expected drama, but instead found someone ... | 34 |
lolphp | dafragsta | cfnp3ta | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>PHP has a way of shutting that kind of thing down.<|eor|><|eols|><|endoftext|> | 28 |
lolphp | dehrmann | cfni02r | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>He's probably thinking of ["magic quotes"](http://www.php.net/magic_quotes), that used to put a backslash in front of every dangerous character in script parameters, with the... | 24 |
lolphp | bart2019 | cfnc5op | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>He's probably thinking of ["magic quotes"](http://www.php.net/magic_quotes), that used to put a backslash in front of every dangerous character in script parameters, with the... | 17 |
lolphp | mort96 | cfncd8z | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>He's probably thinking of ["magic quotes"](http://www.php.net/magic_quotes), that used to put a backslash in front of every dangerous character in script parameters, with the... | 17 |
lolphp | epsy | cfnqgnk | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>The good news is the author commented after they showed him the error of his ways and is working to fix the problem.<|eor|><|sor|>I expected drama, but instead found someone ... | 16 |
lolphp | bgeron | cfno1j8 | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>Oh noes, if they keep improving like this, we'll run out of jokes in no time!
/s<|eor|><|eols|><|endoftext|> | 11 |
lolphp | MonadicTraversal | cfo6h5x | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>The good news is the author commented after they showed him the error of his ways and is working to fix the problem.<|eor|><|sor|>I expected drama, but instead found someone ... | 11 |
lolphp | fphhotchips | cfo2lz7 | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>This is mostly the original developer's noobishness rather than a PHP problem, but "only mostly." You gotta love that false sense of security!<|eor|><|sor|>Current doc pages ... | 10 |
lolphp | pcopley | cfnbqfr | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>Holy shit<|eor|><|eols|><|endoftext|> | 9 |
lolphp | EvilTerran | cfnff4i | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>I thought only ~~PDO~~ prepared statements prevent (first-level) SQL injection automatically.<|eor|><|sor|>Parametrised queries are the thing. You don't necessarily have to p... | 9 |
lolphp | Rainfly_X | cfnjxmq | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>This is mostly the original developer's noobishness rather than a PHP problem, but "only mostly." You gotta love that false sense of security!<|eor|><|eols|><|endoftext|> | 8 |
lolphp | berkes | cfo4t73 | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>I'm answering some PHP-questions on stacoverflow now and then. It's absolutely astonishing how many SQL- injections, people post there. In questions having nothing to do with... | 7 |
lolphp | Jonno_FTW | cfnfvov | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>It's shit like this, PHP...<|eor|><|sor|>I think you mean beginner programmers.<|eor|><|eols|><|endoftext|> | 6 |
lolphp | djsumdog | cfok0tz | <|sols|><|sot|>No need to worry: PHP stops SQL injection by default!<|eot|><|sol|>https://github.com/BarrensZeppelin/ltglan/issues/1<|eol|><|sor|>The good news is the author commented after they showed him the error of his ways and is working to fix the problem.<|eor|><|sor|>I expected drama, but instead found someone ... | 6 |
lolphp | Cameron_D | 1pnqbk | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|eols|><|endoftext|> | 87 |
lolphp | infinull | cd45w5b | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|sor|>Are there any other languages that have a "parse this date for me, no I won't give you any idea about how it's formatted," function?
Maybe that's because it's *really* hard to get it to work right?
Maybe it isn't a thing you should d... | 38 |
lolphp | edwardly | cd46s7q | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|sor|>Are there any other languages that have a "parse this date for me, no I won't give you any idea about how it's formatted," function?
Maybe that's because it's *really* hard to get it to work right?
Maybe it isn't a thing you should d... | 18 |
lolphp | merreborn | cd47tfz | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|sor|>It's a little more clear what's happening here: http://3v4l.org/bvfOF<|eor|><|eols|><|endoftext|> | 17 |
lolphp | merreborn | cd47xfz | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|sor|>Are there any other languages that have a "parse this date for me, no I won't give you any idea about how it's formatted," function?
Maybe that's because it's *really* hard to get it to work right?
Maybe it isn't a thing you should d... | 14 |
lolphp | PhantomRacer | cd4dgmi | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|sor|>It's a little more clear what's happening here: http://3v4l.org/bvfOF<|eor|><|sor|>Even more clear here: http://3v4l.org/7Ho9K<|eor|><|eols|><|endoftext|> | 13 |
lolphp | Daniel15 | cd4hsln | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|sor|>Not really shown well here, strtotime("February") returns a timestamp in March if you run it past the 28th of the month. Seems it uses the current day, not 1st February. <|eor|><|eols|><|endoftext|> | 10 |
lolphp | Cameron_D | cd478si | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|sor|>Are there any other languages that have a "parse this date for me, no I won't give you any idea about how it's formatted," function?
Maybe that's because it's *really* hard to get it to work right?
Maybe it isn't a thing you should d... | 10 |
lolphp | Cameron_D | cd496n9 | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|sor|>Are there any other languages that have a "parse this date for me, no I won't give you any idea about how it's formatted," function?
Maybe that's because it's *really* hard to get it to work right?
Maybe it isn't a thing you should d... | 8 |
lolphp | Grinnz | cdfb0s8 | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|sor|>Are there any other languages that have a "parse this date for me, no I won't give you any idea about how it's formatted," function?
Maybe that's because it's *really* hard to get it to work right?
Maybe it isn't a thing you should d... | 7 |
lolphp | Daniel15 | cd4hrjj | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|sor|>[deleted]<|eor|><|sor|>strtotime("February") returns a timestamp in March if you run it past the 28th of the month. It uses the current day, not 1st February. <|eor|><|eols|><|endoftext|> | 6 |
lolphp | edwardly | cd4imjy | <|sols|><|sot|>strtotime("February")<|eot|><|sol|>http://3v4l.org/XXbtf<|eol|><|sor|>Are there any other languages that have a "parse this date for me, no I won't give you any idea about how it's formatted," function?
Maybe that's because it's *really* hard to get it to work right?
Maybe it isn't a thing you should d... | 5 |
lolphp | captainramen | 5sotbs | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|eols|><|endoftext|> | 86 |
lolphp | stumpychubbins | ddhbg8l | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>The 3 values of logical computation: `true`, `false` and `bad_alloc`<|eor|><|eols|><|endoftext|> | 54 |
lolphp | Cuddlefluff_Grim | ddhaqmq | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>`tralse`<|eor|><|eols|><|endoftext|> | 35 |
lolphp | emilvikstrom | ddi4j5h | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>The 3 values of logical computation: `true`, `false` and `bad_alloc`<|eor|><|sor|>`True`, `False` [and](http://thedailywtf.com/articles/What_Is_Truth_0x3f_) `FileNotFound`<|eor|><|eols|><|endoftext|> | 18 |
lolphp | vytah | ddgvwzt | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>[deleted]<|eor|><|sor|>4.3.10 is from 14 Dec 2004.
5.0.3 is from 15 Dec 2004.
7.0.13 is from 10 Nov 2016.
So it was patched twice, 12 years apart.<|eor|><|eols|><|endoftext|> | 18 |
lolphp | bart2019 | ddheqxi | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>I don't get it.
So the team patched it, and decided that `is_nan((float)'NAN')` should be **false**?
Oh, wait... :
var_dump((float)"NAN");
yields
double(0)
Uh... Okay... I guess...
So how do you enter ... | 17 |
lolphp | stumpychubbins | ddi5be6 | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>JS classic: `typeof NaN`<|eor|><|sor|>This one makes a twisted sense though, it's just linguistically funny <|eor|><|eols|><|endoftext|> | 17 |
lolphp | prewk | ddhys8m | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>JS classic: `typeof NaN`<|eor|><|eols|><|endoftext|> | 13 |
lolphp | the_alias_of_andrea | ddhmzyx | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>I don't get it.
So the team patched it, and decided that `is_nan((float)'NAN')` should be **false**?
Oh, wait... :
var_dump((float)"NAN");
yields
double(0)
Uh... Okay... I guess...
So how do you enter ... | 9 |
lolphp | nikic | ddl4svp | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>For context, for PHP 7.0.0 the strtod implementation was updated and during that update a macro was incorrectly configured, leading to strings starting with `INF` or `NAN` being parsed into the INF and NAN floating-po... | 7 |
lolphp | stumpychubbins | ddi58q1 | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>The 3 values of logical computation: `true`, `false` and `bad_alloc`<|eor|><|sor|>`True`, `False` [and](http://thedailywtf.com/articles/What_Is_Truth_0x3f_) `FileNotFound`<|eor|><|sor|>That was exactly what I was refe... | 7 |
lolphp | captainramen | ddiu9f4 | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>I don't get it.
So the team patched it, and decided that `is_nan((float)'NAN')` should be **false**?
Oh, wait... :
var_dump((float)"NAN");
yields
double(0)
Uh... Okay... I guess...
So how do you enter ... | 6 |
lolphp | prewk | ddi8qqu | <|sols|><|sot|>is_nan((float)'NAN')? PHP Can't Decide<|eot|><|sol|>https://3v4l.org/0Jeva<|eol|><|sor|>JS classic: `typeof NaN`<|eor|><|sor|>This one makes a twisted sense though, it's just linguistically funny <|eor|><|sor|>Hehe yeah, it's still funny though.<|eor|><|eols|><|endoftext|> | 5 |
lolphp | captainramen | lwbudo | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|eols|><|endoftext|> | 83 |
lolphp | AyrA_ch | gpghhzd | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>*Me on Windows*
Your OS comes with PHP integrated?<|eor|><|eols|><|endoftext|> | 55 |
lolphp | BitcoinCitadel | gpgt5yx | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>*Me on Windows*
Your OS comes with PHP integrated?<|eor|><|sor|>Yeah wtf, linux doesn't even come with PHP. What the hell uses PHP o... | 42 |
lolphp | mort96 | gpgkh24 | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>The actual linked tweet is ok. It's not complaining that the OS PHP deprecated, but that Apple seems to be saying that PHP _in genera... | 34 |
lolphp | feketegy | gpglp6o | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>The actual linked tweet is ok. It's not complaining that the OS PHP deprecated, but that Apple seems to be saying that PHP _in genera... | 23 |
lolphp | mort96 | gpgnjku | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>The actual linked tweet is ok. It's not complaining that the OS PHP deprecated, but that Apple seems to be saying that PHP _in genera... | 22 |
lolphp | commitpushdrink | gpix4xc | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>The actual linked tweet is ok. It's not complaining that the OS PHP deprecated, but that Apple seems to be saying that PHP _in genera... | 22 |
lolphp | prewk | gpgmu0o | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>The actual linked tweet is ok. It's not complaining that the OS PHP deprecated, but that Apple seems to be saying that PHP _in genera... | 18 |
lolphp | Miserable_Fuck | gpgvzsz | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>The actual linked tweet is ok. It's not complaining that the OS PHP deprecated, but that Apple seems to be saying that PHP _in genera... | 17 |
lolphp | captainramen | gpgf2mf | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|soopr|>More of a lolphpengineer but still<|eoopr|><|eols|><|endoftext|> | 15 |
lolphp | captainramen | gpigoh2 | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>*Me on Windows*
Your OS comes with PHP integrated?<|eor|><|soopr|>Windows doesn't even come with the dotnet sdk integrated<|eoopr|><... | 14 |
lolphp | jeankev | gpijxg4 | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>*Me on Windows*
Your OS comes with PHP integrated?<|eor|><|sor|>Yeah wtf, linux doesn't even come with PHP. What the hell uses PHP o... | 14 |
lolphp | AyrA_ch | gpiikw7 | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>*Me on Windows*
Your OS comes with PHP integrated?<|eor|><|soopr|>Windows doesn't even come with the dotnet sdk integrated<|eoopr|><... | 14 |
lolphp | Fitzsimmons | gpj5xrw | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>People do development against the system version of a programming language? There's no way that environment can match what's running ... | 12 |
lolphp | captainramen | gpj7hkk | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>People do development against the system version of a programming language? There's no way that environment can match what's running ... | 12 |
lolphp | djxfade | gpkezj7 | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>*Me on Windows*
Your OS comes with PHP integrated?<|eor|><|sor|>Yeah wtf, linux doesn't even come with PHP. What the hell uses PHP o... | 12 |
lolphp | ZiggyTheHamster | gpiipv1 | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>The actual linked tweet is ok. It's not complaining that the OS PHP deprecated, but that Apple seems to be saying that PHP _in genera... | 11 |
lolphp | mort96 | gpirfrt | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>The actual linked tweet is ok. It's not complaining that the OS PHP deprecated, but that Apple seems to be saying that PHP _in genera... | 9 |
lolphp | treerabbit23 | gpgit74 | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>*Me on Windows*
Your OS comes with PHP integrated?<|eor|><|sor|>Lol, yes but dont try to use Python.<|eor|><|eols|><|endoftext|> | 8 |
lolphp | ryancerium | gphw33l | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>And its not just cause he's using php 7.3 which will be EOL in the not too distant future?<|eor|><|sor|>The tweet author is a woman.<... | 8 |
lolphp | EmperorArthur | gpidc3n | <|sols|><|sot|>PHP 'Engineers' Using MacOS Lose Their Shit Because They Might Have to brew install PHP<|eot|><|sol|>https://twitter.com/snipeyhead/status/1366834425963696130<|eol|><|sor|>I've never used the builtin PHP. lrn2docker, noob.<|eor|><|sor|>Seriously. Rebuilding your infra on osx is a waste of time. I do a... | 8 |
lolphp | msiemens | 2omtz9 | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|eols|><|endoftext|> | 82 |
lolphp | DCoder1337 | cmom67u | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>> *`var_export()` detect cycles in data structures (by crashing)*
That's genius.<|eor|><|eols|><|endoftext|> | 63 |
lolphp | maxufimo | cmonugg | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>Ah, Evan Priestley of the [Phabricator](http://phabricator.org/) fame, gotta love this guy.
> Written in PHP so literally anyon... | 40 |
lolphp | satan-repents | cmosh2n | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>Are we thinking of specific named functions, or overall functionality?
Because the most useful, commonly used function of PHP, ... | 29 |
lolphp | Jew_Fucker_69 | cmorwye | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>Wow, I thought Forbes was better than to use full-page ads.<|eor|><|sor|>So you haven't been to forbes.com in several years?<|eo... | 29 |
lolphp | shvelo | cmomd1b | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>die() is the most useful PHP function<|eor|><|eols|><|endoftext|> | 25 |
lolphp | mayupvoterandomly | cmosjdg | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|> phpinfo();
is actually very useful, especially if you're trying to match dev environments between servers and you only have... | 21 |
lolphp | more_exercise | cmrkdyb | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>die() is the most useful PHP function<|eor|><|sor|>I use exit();<|eor|><|sor|>But die(); looks a lot cooler!! <|eor|><|sor|>It r... | 21 |
lolphp | OneWingedShark | cmpsyyt | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>Ah, Evan Priestley of the [Phabricator](http://phabricator.org/) fame, gotta love this guy.
> Written in PHP so literally anyon... | 15 |
lolphp | simon99ctg | cmqmxr6 | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>gzgetss() - programming heuristic no. 232: never trust a function you're not sure how to pronounce<|eor|><|eols|><|endoftext|> | 12 |
lolphp | thelordofcheese | cmos6fq | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>Wow, I thought Forbes was better than to use full-page ads.<|eor|><|sor|>I thought people on a programming forum were better tha... | 11 |
lolphp | papers_ | cmoqsg3 | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>die() is the most useful PHP function<|eor|><|sor|>I use exit();<|eor|><|sor|>But die(); looks a lot cooler!! <|eor|><|eols|><|e... | 11 |
lolphp | jonnywoh | cmovhbs | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>Ah, Evan Priestley of the [Phabricator](http://phabricator.org/) fame, gotta love this guy.
> Written in PHP so literally anyon... | 10 |
lolphp | OneWingedShark | cmpt71x | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>Ah, Evan Priestley of the [Phabricator](http://phabricator.org/) fame, gotta love this guy.
> Written in PHP so literally anyon... | 10 |
lolphp | jb2386 | cmpiquy | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>die;
die();
<|eor|><|sor|>That's because it's a language construct, like echo or print etc.
You can use:
echo "My string";... | 8 |
lolphp | jb2386 | cmpinx5 | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>Ah, Evan Priestley of the [Phabricator](http://phabricator.org/) fame, gotta love this guy.
> Written in PHP so literally anyon... | 8 |
lolphp | OneWingedShark | cmrey38 | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>Look, that was kinda the point of PHP. It started as just a framework extension to Perl. It's just... they had a shitty dev team... | 8 |
lolphp | Jew_Fucker_69 | cmoo0yd | <|sols|><|sot|>What Are The Most Surprisingly Useful PHP Functions?<|eot|><|sol|>http://www.forbes.com/sites/quora/2012/08/31/what-are-the-most-surprisingly-useful-php-functions/<|eol|><|sor|>die() is the most useful PHP function<|eor|><|sor|>I use exit();<|eor|><|eols|><|endoftext|> | 7 |
lolphp | Porges | 24cdsd | <|sols|><|sot|>"Note that ..."<|eot|><|sol|>https://www.google.com/search?q="note+that"+site%3Awww.php.net%2Fmanual%2Fen<|eol|><|eols|><|endoftext|> | 88 |
lolphp | suspiciously_calm | ch5w8wm | <|sols|><|sot|>"Note that ..."<|eot|><|sol|>https://www.google.com/search?q="note+that"+site%3Awww.php.net%2Fmanual%2Fen<|eol|><|sor|>> Note that a function that calls a variable by reference CANNOT be used recursively, it will generate a CGI error
-___-
> Instead, you should just use global variables.
O______O<|eor... | 41 |
lolphp | Porges | ch5ux67 | <|sols|><|sot|>"Note that ..."<|eot|><|sol|>https://www.google.com/search?q="note+that"+site%3Awww.php.net%2Fmanual%2Fen<|eol|><|sor|>[deleted]<|eor|><|soopr|>In and of itself it isn't lol, but in PHP's case it serves as a nice index to the mini-gotchas<|eoopr|><|eols|><|endoftext|> | 40 |
lolphp | captainramen | ch5uchj | <|sols|><|sot|>"Note that ..."<|eot|><|sol|>https://www.google.com/search?q="note+that"+site%3Awww.php.net%2Fmanual%2Fen<|eol|><|sor|>> Note: Note that<|eor|><|eols|><|endoftext|> | 16 |
lolphp | nikic | ch60w3i | <|sols|><|sot|>"Note that ..."<|eot|><|sol|>https://www.google.com/search?q="note+that"+site%3Awww.php.net%2Fmanual%2Fen<|eol|><|sor|>> Note that a function that calls a variable by reference CANNOT be used recursively, it will generate a CGI error
-___-
> Instead, you should just use global variables.
O______O<|eor... | 14 |
lolphp | TortoiseWrath | ch9awqf | <|sols|><|sot|>"Note that ..."<|eot|><|sol|>https://www.google.com/search?q="note+that"+site%3Awww.php.net%2Fmanual%2Fen<|eol|><|sor|>> Note that all values specifying length, distance, size, etc. are in "twips", twenty units per pixel. That's pretty much arbitrary, though, since the player scales the movie to whatever... | 13 |
lolphp | BilgeXA | chbdbr6 | <|sols|><|sot|>"Note that ..."<|eot|><|sol|>https://www.google.com/search?q="note+that"+site%3Awww.php.net%2Fmanual%2Fen<|eol|><|sor|>[deleted]<|eor|><|soopr|>In and of itself it isn't lol, but in PHP's case it serves as a nice index to the mini-gotchas<|eoopr|><|sor|>Not really since most of the real gotchas *aren't* ... | 5 |
lolphp | jamwaffles | 1i2pa1 | <|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|eols|><|endoftext|> | 80 |
lolphp | InconsiderateBastard | cb0hm57 | <|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>Null is amazing.
* NULL == 0
* NULL < -INF
* NULL == an empty array
* (NULL++) == 1
* (NU... | 30 |
lolphp | RealModeX86 | cb0ids7 | <|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>Null is amazing.
* NULL == 0
* NULL < -INF
* NULL == an empty array
* (NULL++) == 1
* (NU... | 28 |
lolphp | jamwaffles | cb0hlf6 | <|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>As someone accustomed to php's quirks, I don't really see anything wrong here<|eor|><|soopr|>> As some... | 21 |
lolphp | midir | cb0ix3s | <|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>As someone accustomed to php's quirks, I don't really see anything wrong here<|eor|><|soopr|>> As some... | 17 |
lolphp | _vec_ | cb0iod7 | <|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>Most of these kind of thing generally devolve to the foundational WTF that is PHP's implicit type coer... | 16 |
lolphp | polish_niceguy | cb0rns4 | <|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>[deleted]<|eor|><|sor|>Because PHP.<|eor|><|eols|><|endoftext|> | 14 |
lolphp | Porges | cb13663 | <|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>Most of these kind of thing generally devolve to the foundational WTF that is PHP's implicit type coer... | 9 |
lolphp | davvblack | cb4h852 | <|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>Null is amazing.
* NULL == 0
* NULL < -INF
* NULL == an empty array
* (NULL++) == 1
* (NU... | 9 |
lolphp | InconsiderateBastard | cb0hvpu | <|sols|><|sot|>NULL can't be decremented... but incrementing it is fine<|eot|><|sol|>http://stackoverflow.com/questions/17592559/why-decremented-of-null-not-negative-in-this-array#comment25601676_17592559<|eol|><|sor|>take one out of the empty set, get the empty set
put one in the empty set, get one
<|eor|><|sor|>fea... | 9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.