subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | FurriesRuinEverythin | dnk0vzt | <|sols|><|sot|>PHP's DateTime inconsistent behaviour regarding timezones fucked my day and I spent more time than I care to admit testing until I could consistently reproduce its behaviours.<|eot|><|sol|>https://www.dropbox.com/s/2ah1nomu1i3l5ac/how%20not%20to%20get%20bitten%20by%20fucking%20shitty%20php%20dates.pdf?dl... | 9 |
lolphp | Bl00dsoul | dnewpnw | <|sols|><|sot|>PHP's DateTime inconsistent behaviour regarding timezones fucked my day and I spent more time than I care to admit testing until I could consistently reproduce its behaviours.<|eot|><|sol|>https://www.dropbox.com/s/2ah1nomu1i3l5ac/how%20not%20to%20get%20bitten%20by%20fucking%20shitty%20php%20dates.pdf?dl... | 7 |
lolphp | Xymanek | dnflaib | <|sols|><|sot|>PHP's DateTime inconsistent behaviour regarding timezones fucked my day and I spent more time than I care to admit testing until I could consistently reproduce its behaviours.<|eot|><|sol|>https://www.dropbox.com/s/2ah1nomu1i3l5ac/how%20not%20to%20get%20bitten%20by%20fucking%20shitty%20php%20dates.pdf?dl... | 6 |
lolphp | 6f944ee6 | 6fwu28 | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|eoss|><|endoftext|> | 54 |
lolphp | Schmittfried | dimgrsi | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>1. Write a library that exclusively relies on ::class for storing its string constants. For example: $query = SELECT::class . " * " . FROM::class . " " . MyTa... | 19 |
lolphp | Hauleth | dilme2o | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>Proof https://3v4l.org/sDiK5<|eor|><|eoss|><|endoftext|> | 13 |
lolphp | Holkr | dim8g7f | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>Not really a lol.
Would you really want it to autoload the target class here? Not doing that is a neat performance optimization that allows turning these con... | 13 |
lolphp | eMZi0767 | dilorr5 | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>Proof https://3v4l.org/sDiK5<|eor|><|sor|>Should've added `KURWA::class`<|eor|><|eoss|><|endoftext|> | 9 |
lolphp | cosmicsans | dimx4sa | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>Proof https://3v4l.org/sDiK5<|eor|><|sor|>Should've added `KURWA::class`<|eor|><|sor|>`COVFEFE::class`<|eor|><|eoss|><|endoftext|> | 9 |
lolphp | bj_christianson | dimis0x | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>Yeah, but try it combined with "use" and namespaces. :)<|eor|><|sor|>Still works<|eor|><|sor|>[Yep, it does.](https://3v4l.org/FgOhN)<|eor|><|eoss|><|endoftex... | 9 |
lolphp | the_alias_of_andrea | dimi5es | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>That's intentional behaviour, and it wouldn't be as useful otherwise, because of autoloading.
The point of `::class` isn't to validate that a class exists, i... | 8 |
lolphp | atomheartother | dim8w65 | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>Not really a lol.
Would you really want it to autoload the target class here? Not doing that is a neat performance optimization that allows turning these con... | 8 |
lolphp | vatzec | dilnj9u | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>Yeah, but try it combined with "use" and namespaces. :)<|eor|><|eoss|><|endoftext|> | 6 |
lolphp | the_alias_of_andrea | dimi8yz | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>Not really a lol.
Would you really want it to autoload the target class here? Not doing that is a neat performance optimization that allows turning these con... | 6 |
lolphp | Schmittfried | diwel9a | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>1. Write a library that exclusively relies on ::class for storing its string constants. For example: $query = SELECT::class . " * " . FROM::class . " " . MyTa... | 6 |
lolphp | oktupol | dim4q0r | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>Yeah, but try it combined with "use" and namespaces. :)<|eor|><|sor|>Still works<|eor|><|eoss|><|endoftext|> | 5 |
lolphp | tfidry | diw125p | <|soss|><|sot|><CLASSNAME>::class, is valid for any identifier<|eot|><|sost|>A::class // "A"
THIS_DOES_NOT_EXIST::class // "THIS_DOES_NOT_EXIST"<|eost|><|sor|>1. Write a library that exclusively relies on ::class for storing its string constants. For example: $query = SELECT::class . " * " . FROM::class . " " . MyTa... | 5 |
lolphp | jesseschalken | 5zvkcz | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|eols|><|endoftext|> | 52 |
lolphp | Alexbrainbox | df1q7gm | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is really a lolIEEE754, because NAN comparison semantics are just plain stupid. An irreflexive equality relation is a contradiction in terms.
Also [lolpython](https://eval.in/756164), if you so insist.<|eor|><|... | 26 |
lolphp | nikic | df1ow2s | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is really a lolIEEE754, because NAN comparison semantics are just plain stupid. An irreflexive equality relation is a contradiction in terms.
Also [lolpython](https://eval.in/756164), if you so insist.<|eor|><|... | 25 |
lolphp | nikic | df1t36i | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is really a lolIEEE754, because NAN comparison semantics are just plain stupid. An irreflexive equality relation is a contradiction in terms.
Also [lolpython](https://eval.in/756164), if you so insist.<|eor|><|... | 11 |
lolphp | jesseschalken | df1jv2z | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is just a bug in hhvm, right?<|eor|><|soopr|>No, they should all be `false` since `===` on arrays supposedly recurses through the contents, and `NAN !== NAN`.<|eoopr|><|sor|>You're telling me that this..
$... | 11 |
lolphp | jesseschalken | df1h4y9 | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is just a bug in hhvm, right?<|eor|><|soopr|>No, they should all be `false` since `===` on arrays supposedly recurses through the contents, and `NAN !== NAN`.<|eoopr|><|eols|><|endoftext|> | 8 |
lolphp | jesseschalken | df1ko2u | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is just a bug in hhvm, right?<|eor|><|soopr|>No, they should all be `false` since `===` on arrays supposedly recurses through the contents, and `NAN !== NAN`.<|eoopr|><|sor|>You're telling me that this..
$... | 8 |
lolphp | bj_christianson | df1r2dp | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is really a lolIEEE754, because NAN comparison semantics are just plain stupid. An irreflexive equality relation is a contradiction in terms.
Also [lolpython](https://eval.in/756164), if you so insist.<|eor|><|... | 7 |
lolphp | jesseschalken | df1wtcd | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is really a lolIEEE754, because NAN comparison semantics are just plain stupid. An irreflexive equality relation is a contradiction in terms.
Also [lolpython](https://eval.in/756164), if you so insist.<|eor|><|... | 7 |
lolphp | EmperorArthur | df2jsj0 | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is really a lolIEEE754, because NAN comparison semantics are just plain stupid. An irreflexive equality relation is a contradiction in terms.
Also [lolpython](https://eval.in/756164), if you so insist.<|eor|><|... | 7 |
lolphp | prewk | df1jpyq | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is just a bug in hhvm, right?<|eor|><|soopr|>No, they should all be `false` since `===` on arrays supposedly recurses through the contents, and `NAN !== NAN`.<|eoopr|><|sor|>You're telling me that this..
$... | 6 |
lolphp | merreborn | df2jtlo | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>If you use legacy array syntax, a lot of the noise goes away, highlighting the deeper issue:
https://3v4l.org/nUUlY<|eor|><|eols|><|endoftext|> | 5 |
lolphp | jesseschalken | df7itmn | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is really a lolIEEE754, because NAN comparison semantics are just plain stupid. An irreflexive equality relation is a contradiction in terms.
Also [lolpython](https://eval.in/756164), if you so insist.<|eor|><|... | 5 |
lolphp | thewells | df3n5gl | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is really a lolIEEE754, because NAN comparison semantics are just plain stupid. An irreflexive equality relation is a contradiction in terms.
Also [lolpython](https://eval.in/756164), if you so insist.<|eor|><|... | 5 |
lolphp | jesseschalken | df1ifqo | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is just a bug in hhvm, right?<|eor|><|soopr|>No, they should all be `false` since `===` on arrays supposedly recurses through the contents, and `NAN !== NAN`.<|eoopr|><|sor|>Ah. In ruby objects are only === if ... | 5 |
lolphp | ConcernedInScythe | dfcfl5t | <|sols|><|sot|>Does [NAN] === [NAN]? Sometimes, maybe.<|eot|><|sol|>https://3v4l.org/OiYQv<|eol|><|sor|>This is really a lolIEEE754, because NAN comparison semantics are just plain stupid. An irreflexive equality relation is a contradiction in terms.
Also [lolpython](https://eval.in/756164), if you so insist.<|eor|><|... | 5 |
lolphp | Takeoded | 5fhmbg | <|sols|><|sot|>if an invalid domain or type is given, php does WHAT!!?<|eot|><|sol|>http://php.net/manual/en/function.socket-create.php<|eol|><|eols|><|endoftext|> | 53 |
lolphp | Takeoded | dakao0b | <|sols|><|sot|>if an invalid domain or type is given, php does WHAT!!?<|eot|><|sol|>http://php.net/manual/en/function.socket-create.php<|eol|><|soopr|>>socket_create() returns a socket resource on success, or FALSE on error
combined with
> If an invalid domain or type is given, socket_create() defaults to AF_INET and ... | 42 |
lolphp | Habikki | dakiodw | <|sols|><|sot|>if an invalid domain or type is given, php does WHAT!!?<|eot|><|sol|>http://php.net/manual/en/function.socket-create.php<|eol|><|sor|>Well. Obviously you want it to make a connection without telling you what it did.
Truly PHP is ahead of it's time in usability. <|eor|><|eols|><|endoftext|> | 30 |
lolphp | billy_tables | dalmlm6 | <|sols|><|sot|>if an invalid domain or type is given, php does WHAT!!?<|eot|><|sol|>http://php.net/manual/en/function.socket-create.php<|eol|><|soopr|>>socket_create() returns a socket resource on success, or FALSE on error
combined with
> If an invalid domain or type is given, socket_create() defaults to AF_INET and ... | 20 |
lolphp | Takeoded | dakmn94 | <|sols|><|sot|>if an invalid domain or type is given, php does WHAT!!?<|eot|><|sol|>http://php.net/manual/en/function.socket-create.php<|eol|><|sor|>I think it's for forward compatibility.<|eor|><|soopr|>a terrible kind. imagine future code running on this engine, and the engine suddenly creates a completely different ... | 18 |
lolphp | Yamakaky | dakhqvh | <|sols|><|sot|>if an invalid domain or type is given, php does WHAT!!?<|eot|><|sol|>http://php.net/manual/en/function.socket-create.php<|eol|><|sor|>I think it's for forward compatibility.<|eor|><|eols|><|endoftext|> | 17 |
lolphp | duskwuff | daldyi2 | <|sols|><|sot|>if an invalid domain or type is given, php does WHAT!!?<|eot|><|sol|>http://php.net/manual/en/function.socket-create.php<|eol|><|soopr|>>socket_create() returns a socket resource on success, or FALSE on error
combined with
> If an invalid domain or type is given, socket_create() defaults to AF_INET and ... | 9 |
lolphp | armornick | dalxfwc | <|sols|><|sot|>if an invalid domain or type is given, php does WHAT!!?<|eot|><|sol|>http://php.net/manual/en/function.socket-create.php<|eol|><|sor|>I guess they do some kind of simple parameter validation but instead of exiting the function they use a default? Like:
`int socktype = valid_socket_type(input_socktype) ?... | 8 |
lolphp | emilvikstrom | davfv51 | <|sols|><|sot|>if an invalid domain or type is given, php does WHAT!!?<|eot|><|sol|>http://php.net/manual/en/function.socket-create.php<|eol|><|soopr|>>socket_create() returns a socket resource on success, or FALSE on error
combined with
> If an invalid domain or type is given, socket_create() defaults to AF_INET and ... | 6 |
lolphp | BilgeXA | dalbkvv | <|sols|><|sot|>if an invalid domain or type is given, php does WHAT!!?<|eot|><|sol|>http://php.net/manual/en/function.socket-create.php<|eol|><|sor|>I think it's for forward compatibility.<|eor|><|soopr|>a terrible kind. imagine future code running on this engine, and the engine suddenly creates a completely different ... | 5 |
lolphp | prewk | 49ipmx | <|sols|><|sot|>PHP lacks a proper array_find function.. no worries!<|eot|><|sol|>http://stackoverflow.com/a/14224883/1062912<|eol|><|eols|><|endoftext|> | 55 |
lolphp | prewk | d0s1ptz | <|sols|><|sot|>PHP lacks a proper array_find function.. no worries!<|eot|><|sol|>http://stackoverflow.com/a/14224883/1062912<|eol|><|soopr|>Enterprise feature: `// name may vary`<|eoopr|><|eols|><|endoftext|> | 32 |
lolphp | merreborn | d0seeg5 | <|sols|><|sot|>PHP lacks a proper array_find function.. no worries!<|eot|><|sol|>http://stackoverflow.com/a/14224883/1062912<|eol|><|sor|>This is an amusing response (increases semantics!), but I'm not sure if PHP lacking this specific function is really a big problem:
function array_find_callback(array $array, ca... | 21 |
lolphp | the_alias_of_andrea | d0s4944 | <|sols|><|sot|>PHP lacks a proper array_find function.. no worries!<|eot|><|sol|>http://stackoverflow.com/a/14224883/1062912<|eol|><|sor|>This is an amusing response (increases semantics!), but I'm not sure if PHP lacking this specific function is really a big problem:
function array_find_callback(array $array, ca... | 16 |
lolphp | Vogtinator | d0sblta | <|sols|><|sot|>PHP lacks a proper array_find function.. no worries!<|eot|><|sol|>http://stackoverflow.com/a/14224883/1062912<|eol|><|sor|>This is an amusing response (increases semantics!), but I'm not sure if PHP lacking this specific function is really a big problem:
function array_find_callback(array $array, ca... | 15 |
lolphp | the_alias_of_andrea | d0seuez | <|sols|><|sot|>PHP lacks a proper array_find function.. no worries!<|eot|><|sol|>http://stackoverflow.com/a/14224883/1062912<|eol|><|sor|>The really stupid thing in PHP is that you can't use built in functions, for example `isset`, as the callback function for `array_filter`.<|eor|><|sor|>`isset` is not a function, nor... | 14 |
lolphp | Mych | d0s6qw8 | <|sols|><|sot|>PHP lacks a proper array_find function.. no worries!<|eot|><|sol|>http://stackoverflow.com/a/14224883/1062912<|eol|><|sor|>This is an amusing response (increases semantics!), but I'm not sure if PHP lacking this specific function is really a big problem:
function array_find_callback(array $array, ca... | 14 |
lolphp | AyeGill | d0sm8l9 | <|sols|><|sot|>PHP lacks a proper array_find function.. no worries!<|eot|><|sol|>http://stackoverflow.com/a/14224883/1062912<|eol|><|sor|>This is an amusing response (increases semantics!), but I'm not sure if PHP lacking this specific function is really a big problem:
function array_find_callback(array $array, ca... | 10 |
lolphp | vita10gy | d0sp44o | <|sols|><|sot|>PHP lacks a proper array_find function.. no worries!<|eot|><|sol|>http://stackoverflow.com/a/14224883/1062912<|eol|><|sor|>I don't know what says more about the people involved. The person who basically wrapped a function just because they liked their name better, or the person who pointed out that the t... | 9 |
lolphp | the_alias_of_andrea | d0saim2 | <|sols|><|sot|>PHP lacks a proper array_find function.. no worries!<|eot|><|sol|>http://stackoverflow.com/a/14224883/1062912<|eol|><|sor|>This is an amusing response (increases semantics!), but I'm not sure if PHP lacking this specific function is really a big problem:
function array_find_callback(array $array, ca... | 7 |
lolphp | BilgeXA | d0sbrms | <|sols|><|sot|>PHP lacks a proper array_find function.. no worries!<|eot|><|sol|>http://stackoverflow.com/a/14224883/1062912<|eol|><|sor|>61.9k<|eor|><|eols|><|endoftext|> | 6 |
lolphp | _retooth | 305gnj | <|sols|><|sot|>Escaping behavior in strings :/<|eot|><|sol|>http://3v4l.org/iBvY5<|eol|><|eols|><|endoftext|> | 57 |
lolphp | threshar | cppf9u1 | <|sols|><|sot|>Escaping behavior in strings :/<|eot|><|sol|>http://3v4l.org/iBvY5<|eol|><|sor|>I'd just go the nuclear route of "{".$n."}"
<|eor|><|eols|><|endoftext|> | 20 |
lolphp | madsohm | cppbusa | <|sols|><|sot|>Escaping behavior in strings :/<|eot|><|sol|>http://3v4l.org/iBvY5<|eol|><|sor|>Since you're using an interpolated string, I don't really see this as lolbehavior. Character escaping and non-interpolation shouldn't necessarily have the same syntax.
To get what you want, you can use a second set of brace... | 13 |
lolphp | fanastril | cppgn4g | <|sols|><|sot|>Escaping behavior in strings :/<|eot|><|sol|>http://3v4l.org/iBvY5<|eol|><|sor|>I tried various iterations of
`print '\{' + "$n" + '\}' + "\n";`
(with and without escaping the curly braces), but apparently the braces don't show up even then? Wat.<|eor|><|sor|>"+" adds integers, string concatenation ope... | 13 |
lolphp | thelordofcheese | cppccsb | <|sols|><|sot|>Escaping behavior in strings :/<|eot|><|sol|>http://3v4l.org/iBvY5<|eol|><|sor|>Since you're using an interpolated string, I don't really see this as lolbehavior. Character escaping and non-interpolation shouldn't necessarily have the same syntax.
To get what you want, you can use a second set of brace... | 11 |
lolphp | implicit_cast | cppssme | <|sols|><|sot|>Escaping behavior in strings :/<|eot|><|sol|>http://3v4l.org/iBvY5<|eol|><|sor|>Since you're using an interpolated string, I don't really see this as lolbehavior. Character escaping and non-interpolation shouldn't necessarily have the same syntax.
To get what you want, you can use a second set of brace... | 10 |
lolphp | poizan42 | cppv1ng | <|sols|><|sot|>Escaping behavior in strings :/<|eot|><|sol|>http://3v4l.org/iBvY5<|eol|><|sor|>Since you're using an interpolated string, I don't really see this as lolbehavior. Character escaping and non-interpolation shouldn't necessarily have the same syntax.
To get what you want, you can use a second set of brace... | 7 |
lolphp | PhantomRacer | cpq93t9 | <|sols|><|sot|>Escaping behavior in strings :/<|eot|><|sol|>http://3v4l.org/iBvY5<|eol|><|sor|>I'd just go the nuclear route of "{".$n."}"
<|eor|><|sor|>Using string literals would be even better.
print '{'.$n.'}';<|eor|><|eols|><|endoftext|> | 6 |
lolphp | allthediamonds | 2gn9tx | <|sols|><|sot|>Strings which contain numbers are treated as numbers on numerical operations, except when they are not.<|eot|><|sol|>https://eval.in/194487<|eol|><|eols|><|endoftext|> | 54 |
lolphp | ajmarks | ckkpxfz | <|sols|><|sot|>Strings which contain numbers are treated as numbers on numerical operations, except when they are not.<|eot|><|sol|>https://eval.in/194487<|eol|><|sor|>Also, octal. PHP's infamous 0d9 "feature" works for hex, decimal, and scientific formatted numeric strings, but not for octal or binary. But that's PH... | 24 |
lolphp | Various_Pickles | cklbqz7 | <|sols|><|sot|>Strings which contain numbers are treated as numbers on numerical operations, except when they are not.<|eot|><|sol|>https://eval.in/194487<|eol|><|sor|>PHP: Everything is a string, except when its not. Also, sometimes, kinda.<|eor|><|eols|><|endoftext|> | 11 |
lolphp | markrages | ckl9zlg | <|sols|><|sot|>Strings which contain numbers are treated as numbers on numerical operations, except when they are not.<|eot|><|sol|>https://eval.in/194487<|eol|><|sor|>[forgot one](https://eval.in/194807)
<|eor|><|eols|><|endoftext|> | 10 |
lolphp | allthediamonds | ckldbj6 | <|sols|><|sot|>Strings which contain numbers are treated as numbers on numerical operations, except when they are not.<|eot|><|sol|>https://eval.in/194487<|eol|><|sor|>[forgot one](https://eval.in/194807)
<|eor|><|soopr|>Jesus, that's even worse.<|eoopr|><|eols|><|endoftext|> | 10 |
lolphp | Banane9 | ckly30p | <|sols|><|sot|>Strings which contain numbers are treated as numbers on numerical operations, except when they are not.<|eot|><|sol|>https://eval.in/194487<|eol|><|sor|>PHP: Everything is a string, except when its not. Also, sometimes, kinda.<|eor|><|sor|>Make sense? Good.<|eor|><|eols|><|endoftext|> | 6 |
lolphp | thr3ddy | 26wdoi | <|sols|><|sot|>Twitter / TomNomNom: I wrote a book about PHP ...<|eot|><|sol|>https://twitter.com/TomNomNom/status/195304317601849344<|eol|><|eols|><|endoftext|> | 58 |
lolphp | allthediamonds | chvpdmp | <|sols|><|sot|>Twitter / TomNomNom: I wrote a book about PHP ...<|eot|><|sol|>https://twitter.com/TomNomNom/status/195304317601849344<|eol|><|sor|>Oh come on guys. PHP has a lot of faults, but cheap shots like this are disingenuous. It's not like we're talking about brainfuck here - there are plenty of specific things ... | 23 |
lolphp | VeXCe | chv3z1x | <|sols|><|sot|>Twitter / TomNomNom: I wrote a book about PHP ...<|eot|><|sol|>https://twitter.com/TomNomNom/status/195304317601849344<|eol|><|sor|>I worked with classic asp, on an intranet CMS that was full of stuff ripe for the Daily WTF. Php is a *lot* better than that.<|eor|><|eols|><|endoftext|> | 15 |
lolphp | Banane9 | chw2nar | <|sols|><|sot|>Twitter / TomNomNom: I wrote a book about PHP ...<|eot|><|sol|>https://twitter.com/TomNomNom/status/195304317601849344<|eol|><|sor|>Oh come on guys. PHP has a lot of faults, but cheap shots like this are disingenuous. It's not like we're talking about brainfuck here - there are plenty of specific things ... | 7 |
lolphp | phoshi | chvp9uh | <|sols|><|sot|>Twitter / TomNomNom: I wrote a book about PHP ...<|eot|><|sol|>https://twitter.com/TomNomNom/status/195304317601849344<|eol|><|sor|>Oh come on guys. PHP has a lot of faults, but cheap shots like this are disingenuous. It's not like we're talking about brainfuck here - there are plenty of specific things ... | 6 |
lolphp | nahguri | chvll6w | <|sols|><|sot|>Twitter / TomNomNom: I wrote a book about PHP ...<|eot|><|sol|>https://twitter.com/TomNomNom/status/195304317601849344<|eol|><|sor|>I would like to cite this publication. <|eor|><|eols|><|endoftext|> | 5 |
lolphp | Takeoded | g2exf2 | <|sols|><|sot|>keys can't be float, so lets just silently truncate the key to fit, what could possibly go wrong?<|eot|><|sol|>https://3v4l.org/319M1<|eol|><|eols|><|endoftext|> | 54 |
lolphp | fell_ratio | fnlgs32 | <|sols|><|sot|>keys can't be float, so lets just silently truncate the key to fit, what could possibly go wrong?<|eot|><|sol|>https://3v4l.org/319M1<|eol|><|sor|>This is documented behavior though:
----
The key can either be an integer or a string. The value can be of any type.
Additionally the following key casts ... | 37 |
lolphp | AyrA_ch | fnl75yp | <|sols|><|sot|>keys can't be float, so lets just silently truncate the key to fit, what could possibly go wrong?<|eot|><|sol|>https://3v4l.org/319M1<|eol|><|sor|>This is documented behavior though:
----
The key can either be an integer or a string. The value can be of any type.
Additionally the following key casts ... | 19 |
lolphp | Takeoded | fnl8l0z | <|sols|><|sot|>keys can't be float, so lets just silently truncate the key to fit, what could possibly go wrong?<|eot|><|sol|>https://3v4l.org/319M1<|eol|><|sor|>This is documented behavior though:
----
The key can either be an integer or a string. The value can be of any type.
Additionally the following key casts ... | 19 |
lolphp | postmodest | fnlibuf | <|sols|><|sot|>keys can't be float, so lets just silently truncate the key to fit, what could possibly go wrong?<|eot|><|sol|>https://3v4l.org/319M1<|eol|><|sor|>This is documented behavior though:
----
The key can either be an integer or a string. The value can be of any type.
Additionally the following key casts ... | 19 |
lolphp | postmodest | fnlr7lb | <|sols|><|sot|>keys can't be float, so lets just silently truncate the key to fit, what could possibly go wrong?<|eot|><|sol|>https://3v4l.org/319M1<|eol|><|sor|>This is documented behavior though:
----
The key can either be an integer or a string. The value can be of any type.
Additionally the following key casts ... | 17 |
lolphp | D1551D3N7 | a8q5q9 | <|sols|><|sot|>Reminder that PHP still doesn't correctly parse PUT requests 7 years after this bug report<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|eols|><|endoftext|> | 52 |
lolphp | SirClueless | ecdak2o | <|sols|><|sot|>Reminder that PHP still doesn't correctly parse PUT requests 7 years after this bug report<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|sor|>[This](https://www.reddit.com/r/PHP/comments/11uczq/year_old_bug_request_for_put_interested_in_rphps/c6pu9uf/) is the best comment on this situation t... | 25 |
lolphp | alercah | ecd4klz | <|sols|><|sot|>Reminder that PHP still doesn't correctly parse PUT requests 7 years after this bug report<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|soopr|>I was trying to have support for uploading files using curl -T but as it turns out it's not possible for PHP to read the filename from the PUT reque... | 12 |
lolphp | sproingie | ecdv6qd | <|sols|><|sot|>Reminder that PHP still doesn't correctly parse PUT requests 7 years after this bug report<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|sor|>[This](https://www.reddit.com/r/PHP/comments/11uczq/year_old_bug_request_for_put_interested_in_rphps/c6pu9uf/) is the best comment on this situation t... | 11 |
lolphp | alercah | ecd3ewl | <|sols|><|sot|>Reminder that PHP still doesn't correctly parse PUT requests 7 years after this bug report<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|soopr|>I was trying to have support for uploading files using curl -T but as it turns out it's not possible for PHP to read the filename from the PUT reque... | 10 |
lolphp | alercah | ecd4ne3 | <|sols|><|sot|>Reminder that PHP still doesn't correctly parse PUT requests 7 years after this bug report<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|soopr|>I was trying to have support for uploading files using curl -T but as it turns out it's not possible for PHP to read the filename from the PUT reque... | 9 |
lolphp | SirClueless | eceggm1 | <|sols|><|sot|>Reminder that PHP still doesn't correctly parse PUT requests 7 years after this bug report<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|sor|>[This](https://www.reddit.com/r/PHP/comments/11uczq/year_old_bug_request_for_put_interested_in_rphps/c6pu9uf/) is the best comment on this situation t... | 8 |
lolphp | sproingie | ecgfor3 | <|sols|><|sot|>Reminder that PHP still doesn't correctly parse PUT requests 7 years after this bug report<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|sor|>[This](https://www.reddit.com/r/PHP/comments/11uczq/year_old_bug_request_for_put_interested_in_rphps/c6pu9uf/) is the best comment on this situation t... | 5 |
lolphp | alercah | ecg317z | <|sols|><|sot|>Reminder that PHP still doesn't correctly parse PUT requests 7 years after this bug report<|eot|><|sol|>https://bugs.php.net/bug.php?id=55815<|eol|><|soopr|>I was trying to have support for uploading files using curl -T but as it turns out it's not possible for PHP to read the filename from the PUT reque... | 5 |
lolphp | lord_braleigh | 9hrvke | <|sols|><|sot|>Valid characters in a class name<|eot|><|sol|>https://github.com/php/php-src/blob/PHP-5.6/Zend/zend_execute_API.c#L960<|eol|><|eols|><|endoftext|> | 55 |
lolphp | Joniator | e6e53ma | <|sols|><|sot|>Valid characters in a class name<|eot|><|sol|>https://github.com/php/php-src/blob/PHP-5.6/Zend/zend_execute_API.c#L960<|eol|><|sor|>[TIL you can use "" in a php classname](https://3v4l.org/mi3Gh)
Apparently you can even use <DELETE> (Ascii 177/oct, U+007f) in your classname. At least according to their ... | 31 |
lolphp | z500 | e6eb744 | <|sols|><|sot|>Valid characters in a class name<|eot|><|sol|>https://github.com/php/php-src/blob/PHP-5.6/Zend/zend_execute_API.c#L960<|eol|><|sor|>[TIL you can use "" in a php classname](https://3v4l.org/mi3Gh)
Apparently you can even use <DELETE> (Ascii 177/oct, U+007f) in your classname. At least according to their ... | 28 |
lolphp | AllezAllezAllezAllez | e6e6xxi | <|sols|><|sot|>Valid characters in a class name<|eot|><|sol|>https://github.com/php/php-src/blob/PHP-5.6/Zend/zend_execute_API.c#L960<|eol|><|sor|>[TIL you can use "" in a php classname](https://3v4l.org/mi3Gh)
Apparently you can even use <DELETE> (Ascii 177/oct, U+007f) in your classname. At least according to their ... | 26 |
lolphp | PGLubricants | e6el93j | <|sols|><|sot|>Valid characters in a class name<|eot|><|sol|>https://github.com/php/php-src/blob/PHP-5.6/Zend/zend_execute_API.c#L960<|eol|><|sor|>If I tried to push this code as a pull request in a non production, pre alpha, POC unit test-data class, as a comment, on my own branch, it would *still* get rejected. <|eor... | 18 |
lolphp | nexxai | e6etsy4 | <|sols|><|sot|>Valid characters in a class name<|eot|><|sol|>https://github.com/php/php-src/blob/PHP-5.6/Zend/zend_execute_API.c#L960<|eol|><|sor|>[TIL you can use "" in a php classname](https://3v4l.org/mi3Gh)
Apparently you can even use <DELETE> (Ascii 177/oct, U+007f) in your classname. At least according to their ... | 12 |
lolphp | TorbenKoehn | e6g2fvn | <|sols|><|sot|>Valid characters in a class name<|eot|><|sol|>https://github.com/php/php-src/blob/PHP-5.6/Zend/zend_execute_API.c#L960<|eol|><|sor|>[TIL you can use "" in a php classname](https://3v4l.org/mi3Gh)
Apparently you can even use <DELETE> (Ascii 177/oct, U+007f) in your classname. At least according to their ... | 11 |
lolphp | Joniator | e6ebfp6 | <|sols|><|sot|>Valid characters in a class name<|eot|><|sol|>https://github.com/php/php-src/blob/PHP-5.6/Zend/zend_execute_API.c#L960<|eol|><|sor|>[TIL you can use "" in a php classname](https://3v4l.org/mi3Gh)
Apparently you can even use <DELETE> (Ascii 177/oct, U+007f) in your classname. At least according to their ... | 11 |
lolphp | F-J-W | e6e08pk | <|sols|><|sot|>Valid characters in a class name<|eot|><|sol|>https://github.com/php/php-src/blob/PHP-5.6/Zend/zend_execute_API.c#L960<|eol|><|sor|>The fuck?<|eor|><|eols|><|endoftext|> | 9 |
lolphp | SaraMG | e73hgdy | <|sols|><|sot|>Valid characters in a class name<|eot|><|sol|>https://github.com/php/php-src/blob/PHP-5.6/Zend/zend_execute_API.c#L960<|eol|><|sor|>PHP predates unicode being a dominant standard. In PHP's early days, anything outside of ASCII could (probably) be assumed to be a locale specific character in its own righ... | 9 |
lolphp | nikic | e6q2lv9 | <|sols|><|sot|>Valid characters in a class name<|eot|><|sol|>https://github.com/php/php-src/blob/PHP-5.6/Zend/zend_execute_API.c#L960<|eol|><|sor|>[TIL you can use "" in a php classname](https://3v4l.org/mi3Gh)
Apparently you can even use <DELETE> (Ascii 177/oct, U+007f) in your classname. At least according to their ... | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.