subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | phoshi | cuxsygq | <|sols|><|sot|>Oh god. It's leaking in to the desktop realm.<|eot|><|sol|>https://github.com/mwgg/i3phtatus<|eol|><|sor|>I honestly think this is not much worse than using bash or Python. It's a simple and not too obscure language, you can do things quickly with it. And it works fine for that, I like to use PHP as a sm... | 5 |
lolphp | Crashmatusow | cuzbmck | <|sols|><|sot|>Oh god. It's leaking in to the desktop realm.<|eot|><|sol|>https://github.com/mwgg/i3phtatus<|eol|><|sor|>I honestly think this is not much worse than using bash or Python. It's a simple and not too obscure language, you can do things quickly with it. And it works fine for that, I like to use PHP as a sm... | 5 |
lolphp | nic0nic | 37c64u | <|sols|><|sot|>Loving "Exception::getTraceAsString() simply sucks..."<|eot|><|sol|>http://php.net/manual/en/exception.gettraceasstring.php#114980<|eol|><|eols|><|endoftext|> | 33 |
lolphp | cjwelborn | crltopj | <|sols|><|sot|>Loving "Exception::getTraceAsString() simply sucks..."<|eot|><|sol|>http://php.net/manual/en/exception.gettraceasstring.php#114980<|eol|><|sor|>I like the comment from 'cotton' at the bottom:
>"this method uses \n for new line (i expected PHP_EOL but well ...)"
I don't know if there's any truth to that ... | 9 |
lolphp | pacotes | 2kmjfm | <|sols|><|sot|>Go Home, WP-API, You're Drunk...<|eot|><|sol|>https://gist.github.com/sarciszewski/41dff863601ea7f45d51<|eol|><|eols|><|endoftext|> | 34 |
lolphp | bart2019 | clnnl0y | <|sols|><|sot|>Go Home, WP-API, You're Drunk...<|eot|><|sol|>https://gist.github.com/sarciszewski/41dff863601ea7f45d51<|eol|><|sor|>>WP-API, however, still has yet to even acknowledge the bug report sitting in the issue tracker for 17 days (and counting).
So people are not allowed to go on a vacation? They have to do... | 7 |
lolphp | Vogtinator | 2gyaph | <|sols|><|sot|>Functions registered with register_shutdown_function are immune to execution time limit<|eot|><|sol|>http://php.net/manual/en/function.register-shutdown-function.php#113585<|eol|><|eols|><|endoftext|> | 32 |
lolphp | morphotomy | ckntkqu | <|sols|><|sot|>Functions registered with register_shutdown_function are immune to execution time limit<|eot|><|sol|>http://php.net/manual/en/function.register-shutdown-function.php#113585<|eol|><|sor|>sleep() and the like do not contribute to the time limit.
http://stackoverflow.com/questions/740954/does-sleep-time-co... | 13 |
lolphp | DoctorWaluigiTime | cknpxwf | <|sols|><|sot|>Functions registered with register_shutdown_function are immune to execution time limit<|eot|><|sol|>http://php.net/manual/en/function.register-shutdown-function.php#113585<|eol|><|sor|>The real lol is the ordering of those user contributed notes.
Is it by score? Nope: 8, 7, 3, 7, 7...
By date! Nu-uh: ... | 12 |
lolphp | olemartinorg | cknpv83 | <|sols|><|sot|>Functions registered with register_shutdown_function are immune to execution time limit<|eot|><|sol|>http://php.net/manual/en/function.register-shutdown-function.php#113585<|eol|><|sor|>Ahh, yeah. I found that out the *strange* way recently. A good thing though, in my case, because the error handler can ... | 7 |
lolphp | nikic | cknvwlm | <|sols|><|sot|>Functions registered with register_shutdown_function are immune to execution time limit<|eot|><|sol|>http://php.net/manual/en/function.register-shutdown-function.php#113585<|eol|><|sor|>There is a timeout reset before shutdown function are run, but the timeout is still there. What this snippet actually s... | 6 |
lolphp | doodle77 | 24vq5p | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|eols|><|endoftext|> | 31 |
lolphp | dochoncho | chb7kal | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>This isn't lol, 0 is considered empty/falsey, regardless if it's an integer or a string.<|eor|><|sor|>The fact that it does so is the Lol. Automatic type coersion of string to int to bool is a sick joke. I'd argu... | 22 |
lolphp | h2ooooooo | chb6cyp | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>Did you read the [manual](http://www.php.net/empty)? Sure it might be confusing, but it's obviously by design.
> The following things are considered to be empty:
> `""` (an empty string)
> `0` (0 as an intege... | 17 |
lolphp | vytah | chbqx4g | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>Clearly PHP nees a `real_empty` function.<|eor|><|eols|><|endoftext|> | 15 |
lolphp | andsens | chbas8o | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>Did you read the [manual](http://www.php.net/empty)? Sure it might be confusing, but it's obviously by design.
> The following things are considered to be empty:
> `""` (an empty string)
> `0` (0 as an intege... | 13 |
lolphp | HaMMeReD | chbfsby | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>This isn't lol, 0 is considered empty/falsey, regardless if it's an integer or a string.<|eor|><|sor|>The fact that it does so is the Lol. Automatic type coersion of string to int to bool is a sick joke. I'd argu... | 12 |
lolphp | doodle77 | chb6jy7 | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>Did you read the [manual](http://www.php.net/empty)? Sure it might be confusing, but it's obviously by design.
> The following things are considered to be empty:
> `""` (an empty string)
> `0` (0 as an intege... | 11 |
lolphp | h0rst_ | chb4ama | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>[deleted]<|eor|><|sor|>http://codepad.viper-7.com/gugBKS
I don't really think that's the problem.<|eor|><|eols|><|endoftext|> | 10 |
lolphp | DoctorWaluigiTime | chbcvmd | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>This isn't lol, 0 is considered empty/falsey, regardless if it's an integer or a string.<|eor|><|sor|>The fact that it does so is the Lol. Automatic type coersion of string to int to bool is a sick joke. I'd argu... | 9 |
lolphp | HelloAnnyong | chbl3fy | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>This isn't lol, 0 is considered empty/falsey, regardless if it's an integer or a string.<|eor|><|sor|>Putting a slash between empty and falsy doesn't make them equivalent concepts. I buy that 0 or even "0" is falsy... | 8 |
lolphp | ajmarks | chb9ckk | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>This isn't lol, 0 is considered empty/falsey, regardless if it's an integer or a string.<|eor|><|sor|>The fact that it does so is the Lol. Automatic type coersion of string to int to bool is a sick joke. I'd argu... | 8 |
lolphp | HaMMeReD | chbfq3q | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>Did you read the [manual](http://www.php.net/empty)? Sure it might be confusing, but it's obviously by design.
> The following things are considered to be empty:
> `""` (an empty string)
> `0` (0 as an intege... | 7 |
lolphp | Sarcastinator | chbpxro | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>[deleted]<|eor|><|sor|>http://codepad.viper-7.com/gugBKS
I don't really think that's the problem.<|eor|><|sor|>[deleted]<|eor|><|sor|>It's still ridiculous and unintuitive behavior.<|eor|><|eols|><|endoftext|> | 6 |
lolphp | captainramen | chbez98 | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>Did you read the [manual](http://www.php.net/empty)? Sure it might be confusing, but it's obviously by design.
> The following things are considered to be empty:
> `""` (an empty string)
> `0` (0 as an intege... | 5 |
lolphp | HaMMeReD | chbgxlj | <|sols|><|sot|>That's an empty string, right?<|eot|><|sol|>http://codepad.viper-7.com/lg3Sk4<|eol|><|sor|>This isn't lol, 0 is considered empty/falsey, regardless if it's an integer or a string.<|eor|><|sor|>The fact that it does so is the Lol. Automatic type coersion of string to int to bool is a sick joke. I'd argu... | 5 |
lolphp | Arsene_Lupin | 1aordw | <|sols|><|sot|>file_put_contents return false but still write a file with size 0 when the directory is full<|eot|><|sol|>http://stackoverflow.com/questions/14165404/when-file-put-contents-fails-if-the-directory-is-full-a-file-with-size-0-is-cre<|eol|><|eols|><|endoftext|> | 34 |
lolphp | MrDOS | c8ze9qg | <|sols|><|sot|>file_put_contents return false but still write a file with size 0 when the directory is full<|eot|><|sol|>http://stackoverflow.com/questions/14165404/when-file-put-contents-fails-if-the-directory-is-full-a-file-with-size-0-is-cre<|eol|><|sor|>"You should not compare $success to FALSE because This functio... | 10 |
lolphp | jdiez17 | c8zdrfn | <|sols|><|sot|>file_put_contents return false but still write a file with size 0 when the directory is full<|eot|><|sol|>http://stackoverflow.com/questions/14165404/when-file-put-contents-fails-if-the-directory-is-full-a-file-with-size-0-is-cre<|eol|><|sor|>"You should not compare $success to FALSE because This functio... | 6 |
lolphp | kaaskop42 | 16of2r | <|sols|><|sot|>PHP 5.4 hasn't register_globals anymore - That's my workaround for this.<|eot|><|sol|>http://www.reddit.com/r/linuxadmin/comments/16npyi/php_54_hasnt_register_globals_anymore_thats_my/<|eol|><|eols|><|endoftext|> | 35 |
lolphp | nikomo | c7xyynd | <|sols|><|sot|>PHP 5.4 hasn't register_globals anymore - That's my workaround for this.<|eot|><|sol|>http://www.reddit.com/r/linuxadmin/comments/16npyi/php_54_hasnt_register_globals_anymore_thats_my/<|eol|><|sor|>This is Facepalm Level 5 failure right here.
I certainly understand "oh crap, production's busted, fix thi... | 13 |
lolphp | svens_ | c7yhies | <|sols|><|sot|>PHP 5.4 hasn't register_globals anymore - That's my workaround for this.<|eot|><|sol|>http://www.reddit.com/r/linuxadmin/comments/16npyi/php_54_hasnt_register_globals_anymore_thats_my/<|eol|><|sor|>This is Facepalm Level 5 failure right here.
I certainly understand "oh crap, production's busted, fix thi... | 13 |
lolphp | willfe42 | c7xuph5 | <|sols|><|sot|>PHP 5.4 hasn't register_globals anymore - That's my workaround for this.<|eot|><|sol|>http://www.reddit.com/r/linuxadmin/comments/16npyi/php_54_hasnt_register_globals_anymore_thats_my/<|eol|><|sor|>This is Facepalm Level 5 failure right here.
I certainly understand "oh crap, production's busted, fix thi... | 11 |
lolphp | MrDOS | c8jdfte | <|sols|><|sot|>PHP 5.4 hasn't register_globals anymore - That's my workaround for this.<|eot|><|sol|>http://www.reddit.com/r/linuxadmin/comments/16npyi/php_54_hasnt_register_globals_anymore_thats_my/<|eol|><|sor|>I don't see how the [`extract`](http://prototype.php.net/extract) function escaped the author of the [other... | 9 |
lolphp | esquilax | c7y3bjj | <|sols|><|sot|>PHP 5.4 hasn't register_globals anymore - That's my workaround for this.<|eot|><|sol|>http://www.reddit.com/r/linuxadmin/comments/16npyi/php_54_hasnt_register_globals_anymore_thats_my/<|eol|><|sor|>This is Facepalm Level 5 failure right here.
I certainly understand "oh crap, production's busted, fix thi... | 5 |
lolphp | ealf | kmbpo | <|sols|><|sot|>Method names are case insensitive, unless you're calling a forwarded method on a FilterIterator, in which case you must include at least one uppercase letter in the method name for it to work. Even if the name of the actual method you're calling does not have one.<|eot|><|sol|>http://codepad.org/c7ewg1yc... | 35 |
lolphp | ealf | c2mw6zi | <|sols|><|sot|>Method names are case insensitive, unless you're calling a forwarded method on a FilterIterator, in which case you must include at least one uppercase letter in the method name for it to work. Even if the name of the actual method you're calling does not have one.<|eot|><|sol|>http://codepad.org/c7ewg1yc... | 13 |
lolphp | Rhomboid | c2lixhc | <|sols|><|sot|>Method names are case insensitive, unless you're calling a forwarded method on a FilterIterator, in which case you must include at least one uppercase letter in the method name for it to work. Even if the name of the actual method you're calling does not have one.<|eot|><|sol|>http://codepad.org/c7ewg1yc... | 9 |
lolphp | ealf | c2of49d | <|sols|><|sot|>Method names are case insensitive, unless you're calling a forwarded method on a FilterIterator, in which case you must include at least one uppercase letter in the method name for it to work. Even if the name of the actual method you're calling does not have one.<|eot|><|sol|>http://codepad.org/c7ewg1yc... | 7 |
lolphp | wvenable | c2mhdyg | <|sols|><|sot|>Method names are case insensitive, unless you're calling a forwarded method on a FilterIterator, in which case you must include at least one uppercase letter in the method name for it to work. Even if the name of the actual method you're calling does not have one.<|eot|><|sol|>http://codepad.org/c7ewg1yc... | 6 |
lolphp | phplovesong | gvo1ky | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 31 |
lolphp | elcapitanoooo | fspxmax | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 27 |
lolphp | jtbrinkmann | fspybb4 | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 15 |
lolphp | rivendell_elf | fsq3g93 | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 13 |
lolphp | spilk | fsr0xxd | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 12 |
lolphp | Luvax | fss5l0w | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 10 |
lolphp | Takeoded | fsqppkq | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 10 |
lolphp | elcapitanoooo | fsq0ysm | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 9 |
lolphp | duskwuff | fsrvvu6 | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 9 |
lolphp | dubl0dude | fsro0x3 | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 8 |
lolphp | scatters | fsqzz4m | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 8 |
lolphp | Takeoded | fsr0cbl | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 8 |
lolphp | elcapitanoooo | fsrljzu | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 7 |
lolphp | phplovesong | fsq5rpw | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 7 |
lolphp | the_alias_of_andrea | fsq6v9c | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 6 |
lolphp | elcapitanoooo | fsqxutv | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 5 |
lolphp | elcapitanoooo | fsr44xy | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 5 |
lolphp | jtbrinkmann | fsqd6cf | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 5 |
lolphp | intuxikated | fsrx0e9 | <|soss|><|sot|>PHP datetime accepts almost anything<|eot|><|sost|>When working with php datetime class, you constantly run into weird cases, heres another one that caused bugs.
[https://repl.it/repls/PertinentAggressiveBoolean](https://repl.it/repls/PertinentAggressiveBoolean)
Basically you can init the class with an... | 5 |
lolphp | SaraMG | 8ls8a0 | <|sols|><|sot|>PHP needs mutable constants, and immutable variables, and functions with properties!<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/8lrrac/why_does_php_not_have_mutable_constants_we_had/?st=JHKIECIJ&sh=e677fc57<|eol|><|eols|><|endoftext|> | 32 |
lolphp | SaraMG | dzj5aol | <|sols|><|sot|>PHP needs mutable constants, and immutable variables, and functions with properties!<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/8lrrac/why_does_php_not_have_mutable_constants_we_had/?st=JHKIECIJ&sh=e677fc57<|eol|><|sor|>The real lolphp is that you can change a constant ... wtf.<|eor|><|sor|>You c... | 16 |
lolphp | tttbbbnnn | dzian46 | <|sols|><|sot|>PHP needs mutable constants, and immutable variables, and functions with properties!<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/8lrrac/why_does_php_not_have_mutable_constants_we_had/?st=JHKIECIJ&sh=e677fc57<|eol|><|sor|>The real lolphp is that you can change a constant ... wtf.<|eor|><|sor|>You c... | 14 |
lolphp | danabrey | dziuigw | <|sols|><|sot|>PHP needs mutable constants, and immutable variables, and functions with properties!<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/8lrrac/why_does_php_not_have_mutable_constants_we_had/?st=JHKIECIJ&sh=e677fc57<|eol|><|sor|>Yet more lolbaddeveloper<|eor|><|eols|><|endoftext|> | 13 |
lolphp | _anbuc_ | dzi9ii8 | <|sols|><|sot|>PHP needs mutable constants, and immutable variables, and functions with properties!<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/8lrrac/why_does_php_not_have_mutable_constants_we_had/?st=JHKIECIJ&sh=e677fc57<|eol|><|sor|>PHP has a class called ImmutableDate (or something similar) there is a featur... | 12 |
lolphp | tttbbbnnn | dziht0p | <|sols|><|sot|>PHP needs mutable constants, and immutable variables, and functions with properties!<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/8lrrac/why_does_php_not_have_mutable_constants_we_had/?st=JHKIECIJ&sh=e677fc57<|eol|><|sor|>The real lolphp is that you can change a constant ... wtf.<|eor|><|sor|>You c... | 10 |
lolphp | implicit_cast | dzif48u | <|sols|><|sot|>PHP needs mutable constants, and immutable variables, and functions with properties!<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/8lrrac/why_does_php_not_have_mutable_constants_we_had/?st=JHKIECIJ&sh=e677fc57<|eol|><|sor|>What is lolphp about immutable variables? I'd kill for that feature in any la... | 7 |
lolphp | SaraMG | dzi11qe | <|sols|><|sot|>PHP needs mutable constants, and immutable variables, and functions with properties!<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/8lrrac/why_does_php_not_have_mutable_constants_we_had/?st=JHKIECIJ&sh=e677fc57<|eol|><|sor|>What is lolphp about immutable variables? I'd kill for that feature in any la... | 6 |
lolphp | SaraMG | dzi355s | <|sols|><|sot|>PHP needs mutable constants, and immutable variables, and functions with properties!<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/8lrrac/why_does_php_not_have_mutable_constants_we_had/?st=JHKIECIJ&sh=e677fc57<|eol|><|sor|>What is lolphp about immutable variables? I'd kill for that feature in any la... | 6 |
lolphp | nyamsprod | 7dbdck | <|sols|><|sot|>parse_str is badass ... until you start using it<|eot|><|sol|>https://3v4l.org/dI7KT<|eol|><|eols|><|endoftext|> | 31 |
lolphp | carlos_vini | dpwkupb | <|sols|><|sot|>parse_str is badass ... until you start using it<|eot|><|sol|>https://3v4l.org/dI7KT<|eol|><|sor|>parse_str lacks a good documentation (and a good name...and a good design...). The fact is that it parses the query string just like PHP parses them to turn them into variables. So `.` becomes `_` because do... | 19 |
lolphp | Sarcastinator | dpx32n2 | <|sols|><|sot|>parse_str is badass ... until you start using it<|eot|><|sol|>https://3v4l.org/dI7KT<|eol|><|sor|>A parser function isn't working when you input bogus strings?
What a suprise. /s<|eor|><|sor|>> A parser function isn't working when you input bogus strings?
It does work though. It just soils itself rathe... | 15 |
lolphp | sloat | dpwyreo | <|sols|><|sot|>parse_str is badass ... until you start using it<|eot|><|sol|>https://3v4l.org/dI7KT<|eol|><|sor|>As others have mentioned, it's consistent with what happens with $_REQUEST, $_GET and $_POST because, according to the docs, this function is used to populate those.
The reason why it mangles the names is m... | 11 |
lolphp | Various_Pickles | dq0yr25 | <|sols|><|sot|>parse_str is badass ... until you start using it<|eot|><|sol|>https://3v4l.org/dI7KT<|eol|><|sor|>A parser function isn't working when you input bogus strings?
What a suprise. /s<|eor|><|sor|>> A parser function isn't working when you input bogus strings?
It does work though. It just soils itself rathe... | 11 |
lolphp | nyamsprod | dpwhn0z | <|sols|><|sot|>parse_str is badass ... until you start using it<|eot|><|sol|>https://3v4l.org/dI7KT<|eol|><|sor|>A parser function isn't working when you input bogus strings?
What a suprise. /s<|eor|><|soopr|>What part is bogus ?
- Converting `.` on `_` is bogus
- Striping part of the pair key is bogus
- merging key... | 9 |
lolphp | muffe2k | dpwhi6b | <|sols|><|sot|>parse_str is badass ... until you start using it<|eot|><|sol|>https://3v4l.org/dI7KT<|eol|><|sor|>A parser function isn't working when you input bogus strings?
What a suprise. /s<|eor|><|eols|><|endoftext|> | 6 |
lolphp | DummySarlac | 5p6uw9 | <|sols|><|sot|>Types ? Where we're going, we don't need types.<|eot|><|sol|>https://wiki.php.net/rfc/parameter-no-type-variance<|eol|><|eols|><|endoftext|> | 31 |
lolphp | the_biz | dcowxkd | <|sols|><|sot|>Types ? Where we're going, we don't need types.<|eot|><|sol|>https://wiki.php.net/rfc/parameter-no-type-variance<|eol|><|sor|>this proposal aims to increase the usage of static typing constraints (a good thing!) by eliminating the restriction of adhering to typing constraints (a non sequitor)
the fa... | 27 |
lolphp | kovensky | dcpomsi | <|sols|><|sot|>Types ? Where we're going, we don't need types.<|eot|><|sol|>https://wiki.php.net/rfc/parameter-no-type-variance<|eol|><|sor|>this proposal aims to increase the usage of static typing constraints (a good thing!) by eliminating the restriction of adhering to typing constraints (a non sequitor)
the fa... | 10 |
lolphp | cleeder | dcpfdng | <|sols|><|sot|>Types ? Where we're going, we don't need types.<|eot|><|sol|>https://wiki.php.net/rfc/parameter-no-type-variance<|eol|><|sor|>While this solves the problem it sets out to solve, it doesn't feel like a very good idea in the end.<|eor|><|eols|><|endoftext|> | 7 |
lolphp | emilvikstrom | dcq7ns9 | <|sols|><|sot|>Types ? Where we're going, we don't need types.<|eot|><|sol|>https://wiki.php.net/rfc/parameter-no-type-variance<|eol|><|sor|>this proposal aims to increase the usage of static typing constraints (a good thing!) by eliminating the restriction of adhering to typing constraints (a non sequitor)
the fa... | 5 |
lolphp | Takeoded | 4bvou9 | <|sols|><|sot|>in password_ api we can trust...<|eot|><|sol|>https://3v4l.org/7682L<|eol|><|eols|><|endoftext|> | 32 |
lolphp | nikic | d1cyvfk | <|sols|><|sot|>in password_ api we can trust...<|eot|><|sol|>https://3v4l.org/7682L<|eol|><|sor|>[deleted]<|eor|><|sor|>> Perfectly valid bug, but I don't suspect someone is going to use a null byte in their password very often. It's possible though, depending on how the function is being used.
It's a perfectly valid ... | 47 |
lolphp | BilgeXA | d1cz2nz | <|sols|><|sot|>in password_ api we can trust...<|eot|><|sol|>https://3v4l.org/7682L<|eol|><|sor|>[deleted]<|eor|><|sor|>> Perfectly valid bug, but I don't suspect someone is going to use a null byte in their password very often. It's possible though, depending on how the function is being used.
It's a perfectly valid ... | 13 |
lolphp | SituationSoap | d1cxhw1 | <|sols|><|sot|>in password_ api we can trust...<|eot|><|sol|>https://3v4l.org/7682L<|eol|><|sor|>[deleted]<|eor|><|soopr|>If I make a user for a script, I might very well have the password be random_bytes(12);
And as for the the "binary safe" thing, I thought that was a relic from the php4 days?<|eoopr|><|sor|>You're... | 13 |
lolphp | RenaKunisaki | d1dbzdr | <|sols|><|sot|>in password_ api we can trust...<|eot|><|sol|>https://3v4l.org/7682L<|eol|><|sor|>[deleted]<|eor|><|soopr|>If I make a user for a script, I might very well have the password be random_bytes(12);
And as for the the "binary safe" thing, I thought that was a relic from the php4 days?<|eoopr|><|sor|>How do... | 12 |
lolphp | IlikeSalmiakki | d1cv5n6 | <|sols|><|sot|>in password_ api we can trust...<|eot|><|sol|>https://3v4l.org/7682L<|eol|><|sor|>[deleted]<|eor|><|soopr|>If I make a user for a script, I might very well have the password be random_bytes(12);
And as for the the "binary safe" thing, I thought that was a relic from the php4 days?<|eoopr|><|sor|>You're... | 9 |
lolphp | the_alias_of_andrea | d1dkzkd | <|sols|><|sot|>in password_ api we can trust...<|eot|><|sol|>https://3v4l.org/7682L<|eol|><|sor|>[deleted]<|eor|><|soopr|>If I make a user for a script, I might very well have the password be random_bytes(12);
And as for the the "binary safe" thing, I thought that was a relic from the php4 days?<|eoopr|><|sor|>You're... | 7 |
lolphp | Takeoded | d1cup4p | <|sols|><|sot|>in password_ api we can trust...<|eot|><|sol|>https://3v4l.org/7682L<|eol|><|sor|>[deleted]<|eor|><|soopr|>If I make a user for a script, I might very well have the password be random_bytes(12);
And as for the the "binary safe" thing, I thought that was a relic from the php4 days?<|eoopr|><|eols|><|end... | 6 |
lolphp | Takeoded | d1cvkds | <|sols|><|sot|>in password_ api we can trust...<|eot|><|sol|>https://3v4l.org/7682L<|eol|><|sor|>[deleted]<|eor|><|soopr|>If I make a user for a script, I might very well have the password be random_bytes(12);
And as for the the "binary safe" thing, I thought that was a relic from the php4 days?<|eoopr|><|sor|>How do... | 6 |
lolphp | big_trike | d1fapv6 | <|sols|><|sot|>in password_ api we can trust...<|eot|><|sol|>https://3v4l.org/7682L<|eol|><|sor|>[deleted]<|eor|><|soopr|>If I make a user for a script, I might very well have the password be random_bytes(12);
And as for the the "binary safe" thing, I thought that was a relic from the php4 days?<|eoopr|><|sor|>How do... | 6 |
lolphp | Sarcastinator | d1iuh0l | <|sols|><|sot|>in password_ api we can trust...<|eot|><|sol|>https://3v4l.org/7682L<|eol|><|sor|>[deleted]<|eor|><|sor|>> Perfectly valid bug, but I don't suspect someone is going to use a null byte in their password very often. It's possible though, depending on how the function is being used.
It's a perfectly valid ... | 5 |
lolphp | Rican7 | 4azwzm | <|sols|><|sot|>PHP DateTimeZone offsets work, until they don't<|eot|><|sol|>https://3v4l.org/bEGmb#v5514<|eol|><|eols|><|endoftext|> | 32 |
lolphp | Matt3k | d14yim6 | <|sols|><|sot|>PHP DateTimeZone offsets work, until they don't<|eot|><|sol|>https://3v4l.org/bEGmb#v5514<|eol|><|sor|>I give up. What's the cause? You can only set the timezone once?
EDIT: No, that's not it. I tried many different values, and came back with inconsistent results. One of the more interesting was setting... | 17 |
lolphp | DCoder1337 | d15o0sg | <|sols|><|sot|>PHP DateTimeZone offsets work, until they don't<|eot|><|sol|>https://3v4l.org/bEGmb#v5514<|eol|><|sor|>To fix this, call `getTimestamp()` after setting any timezone that is based on a time offset or abbreviation like CEST (UTC and full names are not affected): https://3v4l.org/KnYdW
----
I would guess... | 11 |
lolphp | shitbangs | 2io1gl | <|sols|><|sot|>Strange behavior DateInterval in PHP [X-post r/PHP]<|eot|><|sol|>http://stackoverflow.com/q/26258550/250259<|eol|><|eols|><|endoftext|> | 36 |
lolphp | vytah | cl3vfdz | <|sols|><|sot|>Strange behavior DateInterval in PHP [X-post r/PHP]<|eot|><|sol|>http://stackoverflow.com/q/26258550/250259<|eol|><|sor|>>doing a var dump changes the outcome
Wat.
I can't even.
I've lost my ability to can.<|eor|><|eols|><|endoftext|> | 33 |
lolphp | myaut | cl4kydp | <|sols|><|sot|>Strange behavior DateInterval in PHP [X-post r/PHP]<|eot|><|sol|>http://stackoverflow.com/q/26258550/250259<|eol|><|sor|>>doing a var dump changes the outcome
Wat.
I can't even.
I've lost my ability to can.<|eor|><|sor|>> doing a var dump changes the outcome
It's like Schrodinger cat - measurement is... | 15 |
lolphp | merreborn | cl415od | <|sols|><|sot|>Strange behavior DateInterval in PHP [X-post r/PHP]<|eot|><|sol|>http://stackoverflow.com/q/26258550/250259<|eol|><|sor|>What the fuck.
...However, using `>` to compare two objects in a language without operator overloading seems like a bad idea.
At first I thought maybe the object was implicitly being... | 7 |
lolphp | shitbangs | cl4li9h | <|sols|><|sot|>Strange behavior DateInterval in PHP [X-post r/PHP]<|eot|><|sol|>http://stackoverflow.com/q/26258550/250259<|eol|><|sor|>>doing a var dump changes the outcome
Wat.
I can't even.
I've lost my ability to can.<|eor|><|sor|>> doing a var dump changes the outcome
It's like Schrodinger cat - measurement is... | 6 |
lolphp | eviljames | 2eavr4 | <|soss|><|sot|>Something snarky for you folks to post.<|eot|><|sost|>http://www.reddit.com/r/awesomephp is a thing. As long as I moderate it, it will not change from its state today :)<|eost|><|eoss|><|endoftext|> | 32 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.