subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | SerdanKK | g1lei08 | <|soss|><|sot|>Named parameters are cool, but PHP variables aren't typed so the implementation is completely broken.<|eot|><|sost|>[https://3v4l.org/P2XSm](https://3v4l.org/P2XSm)
Someone please tell me wth they're thinking. If this ships I'll have to put up another "don't use this feature" sign at work.
[C# equivale... | 6 |
lolphp | SerdanKK | g1kfty3 | <|soss|><|sot|>Named parameters are cool, but PHP variables aren't typed so the implementation is completely broken.<|eot|><|sost|>[https://3v4l.org/P2XSm](https://3v4l.org/P2XSm)
Someone please tell me wth they're thinking. If this ships I'll have to put up another "don't use this feature" sign at work.
[C# equivale... | 6 |
lolphp | MazeChaZer | 4v0d24 | <|sols|><|sot|>Numbers from SimpleXML elements are implicitly casted to int, not float<|eot|><|sol|>https://3v4l.org/FcIV9<|eol|><|eols|><|endoftext|> | 35 |
lolphp | carlos_vini | d5ucnln | <|sols|><|sot|>Numbers from SimpleXML elements are implicitly casted to int, not float<|eot|><|sol|>https://3v4l.org/FcIV9<|eol|><|sor|>SimpleXmlElement is an object, there's no automatic toInt() in PHP, only toString(). https://3v4l.org/9cTbr. ~~even so i don't know why your snippet becomes a int~~
there was a bug r... | 10 |
lolphp | emilvikstrom | d5vms1t | <|sols|><|sot|>Numbers from SimpleXML elements are implicitly casted to int, not float<|eot|><|sol|>https://3v4l.org/FcIV9<|eol|><|sor|>This is exactly the kind of behavior that makes SimpleXML not simple. Too many edge cases. I prefer parsing XML with a DOM parser as it was intended to be.<|eor|><|eols|><|endoftext|> | 5 |
lolphp | BOOM_BOOM_BADABOOM | 3guasl | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|eols|><|endoftext|> | 33 |
lolphp | smog_alado | cu1jt53 | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|sor|>If I understood that correctly, I don't think it executes the code when saving the image. The upload... | 41 |
lolphp | Sheepshow | cu1zv17 | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|sor|>> When saving the image to disk, always force the file extension to be what it should be. That way t... | 25 |
lolphp | Schmittfried | cu1m46g | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|sor|>[PHP security: PHP is secure out of the box](https://np.reddit.com/r/PHP/comments/3gt1hs/sticking_wi... | 23 |
lolphp | BOOM_BOOM_BADABOOM | cu1i6mz | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|sor|>[PHP security: PHP is secure out of the box](https://np.reddit.com/r/PHP/comments/3gt1hs/sticking_wi... | 14 |
lolphp | fishburne | cu1i3go | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|sor|>[PHP security: PHP is secure out of the box](https://np.reddit.com/r/PHP/comments/3gt1hs/sticking_wi... | 12 |
lolphp | user0x29a | cu1sq9u | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|sor|>so they let users upload "images" that end on .php? and store them in a folder that is configured by... | 12 |
lolphp | browner87 | cu1ud02 | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|sor|>I feel there is an inherent idiocy on the part of OP and the users in that thread. "Here's a comprom... | 9 |
lolphp | 00DEADBEEF | cu1ylc0 | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|sor|>[PHP security: PHP is secure out of the box](https://np.reddit.com/r/PHP/comments/3gt1hs/sticking_wi... | 9 |
lolphp | BufferUnderpants | cu1p6jp | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|sor|>[PHP security: PHP is secure out of the box](https://np.reddit.com/r/PHP/comments/3gt1hs/sticking_wi... | 7 |
lolphp | hylje | cu42pmi | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|sor|>so they let users upload "images" that end on .php? and store them in a folder that is configured by... | 5 |
lolphp | Schmittfried | cu23hre | <|sols|><|sot|>Uploading image with PHP code in metadata executes that code when image is being saved.<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/3gq3mh/my_site_was_hacked_php_injection_can_anybody/<|eol|><|sor|>[PHP security: PHP is secure out of the box](https://np.reddit.com/r/PHP/comments/3gt1hs/sticking_wi... | 5 |
lolphp | msiemens | 34pnwk | <|sols|><|sot|>So unfunny it's funny again: XSS Vulnerability Affecting Multiple WordPress Plugins<|eot|><|sol|>https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html<|eol|><|eols|><|endoftext|> | 35 |
lolphp | PlasmaSheep | cqwzi1i | <|sols|><|sot|>So unfunny it's funny again: XSS Vulnerability Affecting Multiple WordPress Plugins<|eot|><|sol|>https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html<|eol|><|sor|>[Obligatory](http://www.bash.org/?949214)<|eor|><|eols|><|endoftext|> | 28 |
lolphp | tdammers | cqx4scq | <|sols|><|sot|>So unfunny it's funny again: XSS Vulnerability Affecting Multiple WordPress Plugins<|eot|><|sol|>https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html<|eol|><|sor|>Another day, another suite of wordpress vulnerabilities...
I mean, just read the fuc... | 24 |
lolphp | gu3st12 | cqx834m | <|sols|><|sot|>So unfunny it's funny again: XSS Vulnerability Affecting Multiple WordPress Plugins<|eot|><|sol|>https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html<|eol|><|sor|>Again, not lolphp (as any sane PHP dev will agree Wordpress is awful), just lolwordpr... | 14 |
lolphp | msiemens | cqxb982 | <|sols|><|sot|>So unfunny it's funny again: XSS Vulnerability Affecting Multiple WordPress Plugins<|eot|><|sol|>https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html<|eol|><|sor|>Again, not lolphp (as any sane PHP dev will agree Wordpress is awful), just lolwordpr... | 13 |
lolphp | OneWingedShark | cqxnyxx | <|sols|><|sot|>So unfunny it's funny again: XSS Vulnerability Affecting Multiple WordPress Plugins<|eot|><|sol|>https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html<|eol|><|sor|>Another day, another suite of wordpress vulnerabilities...
I mean, just read the fuc... | 11 |
lolphp | merreborn | cqwz734 | <|sols|><|sot|>So unfunny it's funny again: XSS Vulnerability Affecting Multiple WordPress Plugins<|eot|><|sol|>https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html<|eol|><|sor|>lolwordpress almost deserves its own sub<|eor|><|eols|><|endoftext|> | 8 |
lolphp | sli | cqxhd5h | <|sols|><|sot|>So unfunny it's funny again: XSS Vulnerability Affecting Multiple WordPress Plugins<|eot|><|sol|>https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html<|eol|><|sor|>Another day, another suite of wordpress vulnerabilities...
I mean, just read the fuc... | 7 |
lolphp | Sarcastinator | cqxppcn | <|sols|><|sot|>So unfunny it's funny again: XSS Vulnerability Affecting Multiple WordPress Plugins<|eot|><|sol|>https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html<|eol|><|sor|>Again, not lolphp (as any sane PHP dev will agree Wordpress is awful), just lolwordpr... | 7 |
lolphp | Sandbucketman | cqxcr3q | <|sols|><|sot|>So unfunny it's funny again: XSS Vulnerability Affecting Multiple WordPress Plugins<|eot|><|sol|>https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html<|eol|><|sor|>Good guy WordPress keeping good PHP developers in business since its conception.<|eor... | 5 |
lolphp | OneWingedShark | cqya5h8 | <|sols|><|sot|>So unfunny it's funny again: XSS Vulnerability Affecting Multiple WordPress Plugins<|eot|><|sol|>https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html<|eol|><|sor|>Another day, another suite of wordpress vulnerabilities...
I mean, just read the fuc... | 5 |
lolphp | dagbrown | 251aue | <|sols|><|sot|>Dat return value<|eot|><|sol|>http://www.php.net/manual/en/function.system.php<|eol|><|eols|><|endoftext|> | 39 |
lolphp | diagonalfish | chcrul2 | <|sols|><|sot|>Dat return value<|eot|><|sol|>http://www.php.net/manual/en/function.system.php<|eol|><|sor|>This one has always baffled me. Why would you not return the exit code??? In what percentage of situations is just the last line of output useful?<|eor|><|eols|><|endoftext|> | 29 |
lolphp | ahruss | chdunv5 | <|sols|><|sot|>Dat return value<|eot|><|sol|>http://www.php.net/manual/en/function.system.php<|eol|><|sor|>This one has always baffled me. Why would you not return the exit code??? In what percentage of situations is just the last line of output useful?<|eor|><|sor|>You might need it, but then that should be the out... | 9 |
lolphp | frezik | chg2fua | <|sols|><|sot|>Dat return value<|eot|><|sol|>http://www.php.net/manual/en/function.system.php<|eol|><|sor|>This one has always baffled me. Why would you not return the exit code??? In what percentage of situations is just the last line of output useful?<|eor|><|sor|>I wouldn't ding it *too* much if it returned the c... | 7 |
lolphp | Sarcastinator | chdr7k1 | <|sols|><|sot|>Dat return value<|eot|><|sol|>http://www.php.net/manual/en/function.system.php<|eol|><|sor|>This one has always baffled me. Why would you not return the exit code??? In what percentage of situations is just the last line of output useful?<|eor|><|sor|>windows ?<|eor|><|sor|>Windows has return codes?<|... | 5 |
lolphp | ChoHag | 1yzdwf | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 35 |
lolphp | pgl | cfp6wvs | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 23 |
lolphp | svtguy88 | cfp81t5 | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 17 |
lolphp | ConcernedInScythe | cfp71hd | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 16 |
lolphp | jeanlucpikachu | cfp6p7r | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 15 |
lolphp | ChoHag | cfp8y8f | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 10 |
lolphp | cbraga | cfp9hhn | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 10 |
lolphp | ChoHag | cfp5rnc | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 9 |
lolphp | Packet_Ranger | cfpulri | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 7 |
lolphp | pgl | cfp7py4 | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 7 |
lolphp | pgl | cfp6wmy | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 6 |
lolphp | merreborn | cfpa3vt | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 6 |
lolphp | vita10gy | cfq5pwf | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 6 |
lolphp | cbraga | cfpi03i | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 6 |
lolphp | ChoHag | cfpx259 | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 5 |
lolphp | vita10gy | cfq5kqf | <|soss|><|sot|>Failsafe? Just revert to default.<|eot|><|sost|>Production went down. It was traced back to a change made to php.ini by the MSP (I *really* want to name names...) who saved the file without the necessary read permissions. Overheard in the office just now:
"When PHP can't read its configuration file it j... | 5 |
lolphp | mjtribute | 192s7z | <|sols|><|sot|>Different behavior the second time around (php 5.4.11). I don't even...<|eot|><|sol|>http://bpaste.net/show/KiqfBA8H2iPgcXIt0FSc/<|eol|><|eols|><|endoftext|> | 33 |
lolphp | postmodest | c8kp0bh | <|sols|><|sot|>Different behavior the second time around (php 5.4.11). I don't even...<|eot|><|sol|>http://bpaste.net/show/KiqfBA8H2iPgcXIt0FSc/<|eol|><|sor|>If you think like a beginning PHP programmer, this makes sense because false == null, right? And $undefined[] = 3, right? So clearly $undefined = null; $undefined... | 9 |
lolphp | scud43 | pwtr0 | <|sols|><|sot|>does this function really belong in the core?<|eot|><|sol|>http://www.php.net/manual/en/function.metaphone.php<|eol|><|eols|><|endoftext|> | 35 |
lolphp | Altreus | c3sx2ia | <|sols|><|sot|>does this function really belong in the core?<|eot|><|sol|>http://www.php.net/manual/en/function.metaphone.php<|eol|><|sor|>oh sorry I didn't realise PHP had modules! ;)<|eor|><|eols|><|endoftext|> | 14 |
lolphp | ealf | c3t1c1x | <|sols|><|sot|>does this function really belong in the core?<|eot|><|sol|>http://www.php.net/manual/en/function.metaphone.php<|eol|><|sor|>[My favorite](http://www.php.net/manual/en/function.gzgetss.php).<|eor|><|eols|><|endoftext|> | 12 |
lolphp | UnpopularStatment | c3t0p7b | <|sols|><|sot|>does this function really belong in the core?<|eot|><|sol|>http://www.php.net/manual/en/function.metaphone.php<|eol|><|sor|>That anonymous flair thing is stupid. Why should scud43 (OP) and Altreus have their names hidden?<|eor|><|eols|><|endoftext|> | 7 |
lolphp | infinull | c3t12io | <|sols|><|sot|>does this function really belong in the core?<|eot|><|sol|>http://www.php.net/manual/en/function.metaphone.php<|eol|><|sor|>That anonymous flair thing is stupid. Why should scud43 (OP) and Altreus have their names hidden?<|eor|><|sor|>especially since you can just turn "subreddit style" off and see every... | 7 |
lolphp | Jinxuan | fdg5tb | <|soss|><|sot|>array_diff([$self], [$self]) will give error if $self is object<|eot|><|sost|>PHP is always a headache with all comparison functions in its std. It always compare by `==`. For example,
```
in_array(true, ['lolphp']); // return True if you do not pass a third arg for strict comparison.
```
You may i... | 36 |
lolphp | shaql | fjjlbut | <|soss|><|sot|>array_diff([$self], [$self]) will give error if $self is object<|eot|><|sost|>PHP is always a headache with all comparison functions in its std. It always compare by `==`. For example,
```
in_array(true, ['lolphp']); // return True if you do not pass a third arg for strict comparison.
```
You may i... | 9 |
lolphp | deusex_ | fjhixie | <|soss|><|sot|>array_diff([$self], [$self]) will give error if $self is object<|eot|><|sost|>PHP is always a headache with all comparison functions in its std. It always compare by `==`. For example,
```
in_array(true, ['lolphp']); // return True if you do not pass a third arg for strict comparison.
```
You may i... | 7 |
lolphp | Jinxuan | fji9n8q | <|soss|><|sot|>array_diff([$self], [$self]) will give error if $self is object<|eot|><|sost|>PHP is always a headache with all comparison functions in its std. It always compare by `==`. For example,
```
in_array(true, ['lolphp']); // return True if you do not pass a third arg for strict comparison.
```
You may i... | 6 |
lolphp | Takeoded | e4q901 | <|soss|><|sot|>FILTER_SANITIZE_EMAIL should never have existed<|eot|><|sost|>i can't think of a single valid use-case for
> FILTER_SANITIZE_EMAIL "email" Remove all characters except letters, digits and !#$%&'*+-=?^_`{|}~@.[].
if you're actually dealing with an email, the only thing this flag is good for, as far as... | 34 |
lolphp | duskwuff | f9ewomj | <|soss|><|sot|>FILTER_SANITIZE_EMAIL should never have existed<|eot|><|sost|>i can't think of a single valid use-case for
> FILTER_SANITIZE_EMAIL "email" Remove all characters except letters, digits and !#$%&'*+-=?^_`{|}~@.[].
if you're actually dealing with an email, the only thing this flag is good for, as far as... | 19 |
lolphp | doublej42 | f9fejc4 | <|soss|><|sot|>FILTER_SANITIZE_EMAIL should never have existed<|eot|><|sost|>i can't think of a single valid use-case for
> FILTER_SANITIZE_EMAIL "email" Remove all characters except letters, digits and !#$%&'*+-=?^_`{|}~@.[].
if you're actually dealing with an email, the only thing this flag is good for, as far as... | 11 |
lolphp | Takeoded | f9fg62t | <|soss|><|sot|>FILTER_SANITIZE_EMAIL should never have existed<|eot|><|sost|>i can't think of a single valid use-case for
> FILTER_SANITIZE_EMAIL "email" Remove all characters except letters, digits and !#$%&'*+-=?^_`{|}~@.[].
if you're actually dealing with an email, the only thing this flag is good for, as far as... | 8 |
lolphp | Altreus | f9h5kyb | <|soss|><|sot|>FILTER_SANITIZE_EMAIL should never have existed<|eot|><|sost|>i can't think of a single valid use-case for
> FILTER_SANITIZE_EMAIL "email" Remove all characters except letters, digits and !#$%&'*+-=?^_`{|}~@.[].
if you're actually dealing with an email, the only thing this flag is good for, as far as... | 8 |
lolphp | steamruler | f9fxvy1 | <|soss|><|sot|>FILTER_SANITIZE_EMAIL should never have existed<|eot|><|sost|>i can't think of a single valid use-case for
> FILTER_SANITIZE_EMAIL "email" Remove all characters except letters, digits and !#$%&'*+-=?^_`{|}~@.[].
if you're actually dealing with an email, the only thing this flag is good for, as far as... | 7 |
lolphp | Schmittfried | f9gnwih | <|soss|><|sot|>FILTER_SANITIZE_EMAIL should never have existed<|eot|><|sost|>i can't think of a single valid use-case for
> FILTER_SANITIZE_EMAIL "email" Remove all characters except letters, digits and !#$%&'*+-=?^_`{|}~@.[].
if you're actually dealing with an email, the only thing this flag is good for, as far as... | 6 |
lolphp | Altreus | f9fi834 | <|soss|><|sot|>FILTER_SANITIZE_EMAIL should never have existed<|eot|><|sost|>i can't think of a single valid use-case for
> FILTER_SANITIZE_EMAIL "email" Remove all characters except letters, digits and !#$%&'*+-=?^_`{|}~@.[].
if you're actually dealing with an email, the only thing this flag is good for, as far as... | 5 |
lolphp | ubekame | f9hamxx | <|soss|><|sot|>FILTER_SANITIZE_EMAIL should never have existed<|eot|><|sost|>i can't think of a single valid use-case for
> FILTER_SANITIZE_EMAIL "email" Remove all characters except letters, digits and !#$%&'*+-=?^_`{|}~@.[].
if you're actually dealing with an email, the only thing this flag is good for, as far as... | 5 |
lolphp | Takeoded | 7jnt3s | <|sols|><|sot|>we have E_ERROR, we have InvalidArgumentException, but lets just silently mod it<|eot|><|sol|>http://php.net/manual/en/function.chr.php#41471<|eol|><|eols|><|endoftext|> | 31 |
lolphp | maweki | dr8adb3 | <|sols|><|sot|>we have E_ERROR, we have InvalidArgumentException, but lets just silently mod it<|eot|><|sol|>http://php.net/manual/en/function.chr.php#41471<|eol|><|sor|>We wouldn't want to inconvenience the users by having to use the modulo operator themselves.<|eor|><|eols|><|endoftext|> | 14 |
lolphp | tdammers | dr8e8db | <|sols|><|sot|>we have E_ERROR, we have InvalidArgumentException, but lets just silently mod it<|eot|><|sol|>http://php.net/manual/en/function.chr.php#41471<|eol|><|sor|>We wouldn't want to inconvenience the users by having to use the modulo operator themselves.<|eor|><|sor|>Indeed. And we *really* don't want to put th... | 11 |
lolphp | tdammers | dr8gk7r | <|sols|><|sot|>we have E_ERROR, we have InvalidArgumentException, but lets just silently mod it<|eot|><|sol|>http://php.net/manual/en/function.chr.php#41471<|eol|><|sor|>We wouldn't want to inconvenience the users by having to use the modulo operator themselves.<|eor|><|sor|>Indeed. And we *really* don't want to put th... | 10 |
lolphp | Various_Pickles | dra1v2t | <|sols|><|sot|>we have E_ERROR, we have InvalidArgumentException, but lets just silently mod it<|eot|><|sol|>http://php.net/manual/en/function.chr.php#41471<|eol|><|sor|>We wouldn't want to inconvenience the users by having to use the modulo operator themselves.<|eor|><|sor|>Indeed. And we *really* don't want to put th... | 6 |
lolphp | the_alias_of_andrea | 41gkss | <|sols|><|sot|>The existence of the "precision" INI setting - PHP converts floats to string inaccurately, by default<|eot|><|sol|>http://php.net/manual/en/ini.core.php#ini.precision<|eol|><|eols|><|endoftext|> | 36 |
lolphp | cbraga | cz2ssk0 | <|sols|><|sot|>The existence of the "precision" INI setting - PHP converts floats to string inaccurately, by default<|eot|><|sol|>http://php.net/manual/en/ini.core.php#ini.precision<|eol|><|soopr|>Because *deliberately discarding ten binary digits* is a problem when, you know, trying to reproduce a number, it has a sep... | 21 |
lolphp | the_alias_of_andrea | cz26n2m | <|sols|><|sot|>The existence of the "precision" INI setting - PHP converts floats to string inaccurately, by default<|eot|><|sol|>http://php.net/manual/en/ini.core.php#ini.precision<|eol|><|soopr|>Because *deliberately discarding ten binary digits* is a problem when, you know, trying to reproduce a number, it has a sep... | 20 |
lolphp | emilvikstrom | cz2mq1k | <|sols|><|sot|>The existence of the "precision" INI setting - PHP converts floats to string inaccurately, by default<|eot|><|sol|>http://php.net/manual/en/ini.core.php#ini.precision<|eol|><|soopr|>Because *deliberately discarding ten binary digits* is a problem when, you know, trying to reproduce a number, it has a sep... | 12 |
lolphp | the_alias_of_andrea | cz3873h | <|sols|><|sot|>The existence of the "precision" INI setting - PHP converts floats to string inaccurately, by default<|eot|><|sol|>http://php.net/manual/en/ini.core.php#ini.precision<|eol|><|soopr|>Because *deliberately discarding ten binary digits* is a problem when, you know, trying to reproduce a number, it has a sep... | 9 |
lolphp | the_alias_of_andrea | cz33va0 | <|sols|><|sot|>The existence of the "precision" INI setting - PHP converts floats to string inaccurately, by default<|eot|><|sol|>http://php.net/manual/en/ini.core.php#ini.precision<|eol|><|soopr|>Because *deliberately discarding ten binary digits* is a problem when, you know, trying to reproduce a number, it has a sep... | 8 |
lolphp | the_alias_of_andrea | cz33sus | <|sols|><|sot|>The existence of the "precision" INI setting - PHP converts floats to string inaccurately, by default<|eot|><|sol|>http://php.net/manual/en/ini.core.php#ini.precision<|eol|><|soopr|>Because *deliberately discarding ten binary digits* is a problem when, you know, trying to reproduce a number, it has a sep... | 7 |
lolphp | Miserable_Fuck | 41fshf | <|soss|><|sot|>[META] Why all the white knighting?<|eot|><|sost|>In almost every post, there's always at least one comment dismissing it by claiming that it "isn't a lolphp", or that it was fixed in version x.y.z, or that other languages do the same, or that it's really a "lol php developer" or a "lol php manual" or a ... | 37 |
lolphp | DoctorWaluigiTime | cz22wob | <|soss|><|sot|>[META] Why all the white knighting?<|eot|><|sost|>In almost every post, there's always at least one comment dismissing it by claiming that it "isn't a lolphp", or that it was fixed in version x.y.z, or that other languages do the same, or that it's really a "lol php developer" or a "lol php manual" or a ... | 63 |
lolphp | Rhomboid | cz20i4s | <|soss|><|sot|>[META] Why all the white knighting?<|eot|><|sost|>In almost every post, there's always at least one comment dismissing it by claiming that it "isn't a lolphp", or that it was fixed in version x.y.z, or that other languages do the same, or that it's really a "lol php developer" or a "lol php manual" or a ... | 22 |
lolphp | Rhomboid | cz6dbb5 | <|soss|><|sot|>[META] Why all the white knighting?<|eot|><|sost|>In almost every post, there's always at least one comment dismissing it by claiming that it "isn't a lolphp", or that it was fixed in version x.y.z, or that other languages do the same, or that it's really a "lol php developer" or a "lol php manual" or a ... | 10 |
lolphp | BoredOfCanada | cz9xa4y | <|soss|><|sot|>[META] Why all the white knighting?<|eot|><|sost|>In almost every post, there's always at least one comment dismissing it by claiming that it "isn't a lolphp", or that it was fixed in version x.y.z, or that other languages do the same, or that it's really a "lol php developer" or a "lol php manual" or a ... | 7 |
lolphp | Hacre | 3zqf0w | <|soss|><|sot|>JSON_PRESERVE_ZERO_FRACTION because someone realised json cares about types...<|eot|><|sost|>[5.6.6 JSON_PRESERVE_ZERO_FRACTION option was added.](http://php.net/manual/en/function.json-encode.php)
Before 5.6.6, [tough shit](https://3v4l.org/GFGRr)<|eost|><|eoss|><|endoftext|> | 36 |
lolphp | Dylan16807 | cyoe7sq | <|soss|><|sot|>JSON_PRESERVE_ZERO_FRACTION because someone realised json cares about types...<|eot|><|sost|>[5.6.6 JSON_PRESERVE_ZERO_FRACTION option was added.](http://php.net/manual/en/function.json-encode.php)
Before 5.6.6, [tough shit](https://3v4l.org/GFGRr)<|eost|><|sor|>But JSON only has a single number type. ... | 41 |
lolphp | jspenguin | cyo982l | <|soss|><|sot|>JSON_PRESERVE_ZERO_FRACTION because someone realised json cares about types...<|eot|><|sost|>[5.6.6 JSON_PRESERVE_ZERO_FRACTION option was added.](http://php.net/manual/en/function.json-encode.php)
Before 5.6.6, [tough shit](https://3v4l.org/GFGRr)<|eost|><|sor|>Is there still no way to chose whether ar... | 26 |
lolphp | McGlockenshire | cyo9vdk | <|soss|><|sot|>JSON_PRESERVE_ZERO_FRACTION because someone realised json cares about types...<|eot|><|sost|>[5.6.6 JSON_PRESERVE_ZERO_FRACTION option was added.](http://php.net/manual/en/function.json-encode.php)
Before 5.6.6, [tough shit](https://3v4l.org/GFGRr)<|eost|><|sor|>Is there still no way to chose whether ar... | 21 |
lolphp | polish_niceguy | cyocqsx | <|soss|><|sot|>JSON_PRESERVE_ZERO_FRACTION because someone realised json cares about types...<|eot|><|sost|>[5.6.6 JSON_PRESERVE_ZERO_FRACTION option was added.](http://php.net/manual/en/function.json-encode.php)
Before 5.6.6, [tough shit](https://3v4l.org/GFGRr)<|eost|><|sor|>Is there still no way to chose whether ar... | 13 |
lolphp | CliffEdgeOrg | cyomdqo | <|soss|><|sot|>JSON_PRESERVE_ZERO_FRACTION because someone realised json cares about types...<|eot|><|sost|>[5.6.6 JSON_PRESERVE_ZERO_FRACTION option was added.](http://php.net/manual/en/function.json-encode.php)
Before 5.6.6, [tough shit](https://3v4l.org/GFGRr)<|eost|><|sor|>Is there still no way to chose whether ar... | 9 |
lolphp | vita10gy | cyom3g5 | <|soss|><|sot|>JSON_PRESERVE_ZERO_FRACTION because someone realised json cares about types...<|eot|><|sost|>[5.6.6 JSON_PRESERVE_ZERO_FRACTION option was added.](http://php.net/manual/en/function.json-encode.php)
Before 5.6.6, [tough shit](https://3v4l.org/GFGRr)<|eost|><|soopr|>Not to mention fixing a bug by adding a... | 8 |
lolphp | the_alias_of_andrea | cyovsod | <|soss|><|sot|>JSON_PRESERVE_ZERO_FRACTION because someone realised json cares about types...<|eot|><|sost|>[5.6.6 JSON_PRESERVE_ZERO_FRACTION option was added.](http://php.net/manual/en/function.json-encode.php)
Before 5.6.6, [tough shit](https://3v4l.org/GFGRr)<|eost|><|sor|>But JSON only has a single number type. ... | 7 |
lolphp | Schmittfried | cyp6d91 | <|soss|><|sot|>JSON_PRESERVE_ZERO_FRACTION because someone realised json cares about types...<|eot|><|sost|>[5.6.6 JSON_PRESERVE_ZERO_FRACTION option was added.](http://php.net/manual/en/function.json-encode.php)
Before 5.6.6, [tough shit](https://3v4l.org/GFGRr)<|eost|><|sor|>On a related note. Why does using an unde... | 7 |
lolphp | berkes | cyp3xe0 | <|soss|><|sot|>JSON_PRESERVE_ZERO_FRACTION because someone realised json cares about types...<|eot|><|sost|>[5.6.6 JSON_PRESERVE_ZERO_FRACTION option was added.](http://php.net/manual/en/function.json-encode.php)
Before 5.6.6, [tough shit](https://3v4l.org/GFGRr)<|eost|><|sor|>On a related note. Why does using an unde... | 6 |
lolphp | Hacre | cyo4sas | <|soss|><|sot|>JSON_PRESERVE_ZERO_FRACTION because someone realised json cares about types...<|eot|><|sost|>[5.6.6 JSON_PRESERVE_ZERO_FRACTION option was added.](http://php.net/manual/en/function.json-encode.php)
Before 5.6.6, [tough shit](https://3v4l.org/GFGRr)<|eost|><|soopr|>Not to mention fixing a bug by adding a... | 6 |
lolphp | cythrawll | 1mbcrr | <|soss|><|sot|>PDO's default error mode is "silent"<|eot|><|sost|>The Other error modes, are Warning and Exception. You can still get errors from the API with errorInfo() etc... but that means a manual check... which most newbie developers ALWAYS forget to do.
I've seen people waste days wondering why PDO isn't worki... | 30 |
lolphp | cythrawll | cc7s5g1 | <|soss|><|sot|>PDO's default error mode is "silent"<|eot|><|sost|>The Other error modes, are Warning and Exception. You can still get errors from the API with errorInfo() etc... but that means a manual check... which most newbie developers ALWAYS forget to do.
I've seen people waste days wondering why PDO isn't worki... | 11 |
lolphp | phoshi | cc83x7t | <|soss|><|sot|>PDO's default error mode is "silent"<|eot|><|sost|>The Other error modes, are Warning and Exception. You can still get errors from the API with errorInfo() etc... but that means a manual check... which most newbie developers ALWAYS forget to do.
I've seen people waste days wondering why PDO isn't worki... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.