subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
porkslow
81enf9
<|sols|><|sot|>WordPress overrides all PHP superglobals by adding magic quotes<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/74cb5936fc8be8314b55f3240740553f4fc4075b/wp-includes/load.php#L712<|eol|><|eols|><|endoftext|>
51
lolphp
cfreak2399
dv2qlm9
<|sols|><|sot|>WordPress overrides all PHP superglobals by adding magic quotes<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/74cb5936fc8be8314b55f3240740553f4fc4075b/wp-includes/load.php#L712<|eol|><|sor|>Despite this being LOL-Wordpress, Wordpress might as well be PHP since that's what most PHP websites run...
27
lolphp
Brandon0
dv2v993
<|sols|><|sot|>WordPress overrides all PHP superglobals by adding magic quotes<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/74cb5936fc8be8314b55f3240740553f4fc4075b/wp-includes/load.php#L712<|eol|><|sor|>Despite this being LOL-Wordpress, Wordpress might as well be PHP since that's what most PHP websites run...
20
lolphp
chewitt
dv35cdc
<|sols|><|sot|>WordPress overrides all PHP superglobals by adding magic quotes<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/74cb5936fc8be8314b55f3240740553f4fc4075b/wp-includes/load.php#L712<|eol|><|sor|>Despite this being LOL-Wordpress, Wordpress might as well be PHP since that's what most PHP websites run...
20
lolphp
geggleto
dv3wdvj
<|sols|><|sot|>WordPress overrides all PHP superglobals by adding magic quotes<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/74cb5936fc8be8314b55f3240740553f4fc4075b/wp-includes/load.php#L712<|eol|><|sor|>Despite this being LOL-Wordpress, Wordpress might as well be PHP since that's what most PHP websites run...
13
lolphp
beerdude26
dv386k0
<|sols|><|sot|>WordPress overrides all PHP superglobals by adding magic quotes<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/74cb5936fc8be8314b55f3240740553f4fc4075b/wp-includes/load.php#L712<|eol|><|sor|>Despite this being LOL-Wordpress, Wordpress might as well be PHP since that's what most PHP websites run...
10
lolphp
cfreak2399
dv6hqj6
<|sols|><|sot|>WordPress overrides all PHP superglobals by adding magic quotes<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/74cb5936fc8be8314b55f3240740553f4fc4075b/wp-includes/load.php#L712<|eol|><|sor|>Despite this being LOL-Wordpress, Wordpress might as well be PHP since that's what most PHP websites run...
8
lolphp
lollaser
dv2zyp8
<|sols|><|sot|>WordPress overrides all PHP superglobals by adding magic quotes<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/74cb5936fc8be8314b55f3240740553f4fc4075b/wp-includes/load.php#L712<|eol|><|sor|>Despite this being LOL-Wordpress, Wordpress might as well be PHP since that's what most PHP websites run...
8
lolphp
berkes
dv5d29h
<|sols|><|sot|>WordPress overrides all PHP superglobals by adding magic quotes<|eot|><|sol|>https://github.com/WordPress/WordPress/blob/74cb5936fc8be8314b55f3240740553f4fc4075b/wp-includes/load.php#L712<|eol|><|sor|>Despite this being LOL-Wordpress, Wordpress might as well be PHP since that's what most PHP websites run...
6
lolphp
stumpychubbins
5uf0zg
<|sols|><|sot|>A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible<|eot|><|sol|>http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805<|eol|><|eols|><|endoftext|>
51
lolphp
yxpow
ddu15ik
<|sols|><|sot|>A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible<|eot|><|sol|>http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805<|eol|><|sor|>the php comments section effect: for every php article with an example, there is an even shittier exa...
25
lolphp
myaut
ddu16c1
<|sols|><|sot|>A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible<|eot|><|sol|>http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805<|eol|><|sor|>Wait, you can't just catch an exception? You gotta test it the condition before or you suppress every...
22
lolphp
bart2019
dduj1li
<|sols|><|sot|>A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible<|eot|><|sol|>http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805<|eol|><|sor|>Wait, you can't just catch an exception? You gotta test it the condition before or you suppress every...
12
lolphp
bart2019
ddujbw0
<|sols|><|sot|>A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible<|eot|><|sol|>http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805<|eol|><|sor|>99% of all performance claims are unsubstantiated.<|eor|><|sor|>But it is substantiated. $x = @$...
8
lolphp
edave64
ddtov0q
<|sols|><|sot|>A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible<|eot|><|sol|>http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805<|eol|><|sor|>The link only works for me of I drop the subdomain uk1.<|eor|><|eols|><|endoftext|>
7
lolphp
BilgeXA
ddu5b08
<|sols|><|sot|>A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible<|eot|><|sol|>http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805<|eol|><|sor|>99% of all performance claims are unsubstantiated.<|eor|><|eols|><|endoftext|>
7
lolphp
Rican7
dduv5n5
<|sols|><|sot|>A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible<|eot|><|sol|>http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805<|eol|><|sor|>99% of all performance claims are unsubstantiated.<|eor|><|sor|>But it is substantiated. $x = @$...
7
lolphp
stumpychubbins
ddywums
<|sols|><|sot|>A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible<|eot|><|sol|>http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805<|eol|><|sor|>99% of all performance claims are unsubstantiated.<|eor|><|sor|>But it is substantiated. $x = @$...
6
lolphp
pleurplus
ddu1044
<|sols|><|sot|>A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible<|eot|><|sol|>http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805<|eol|><|sor|>Wait, you can't just catch an exception? You gotta test it the condition before or you suppress every...
5
lolphp
bart2019
dduje5t
<|sols|><|sot|>A PHP commentor describes the error-surpression operator (already a lolPHP) in the most PHP terms possible<|eot|><|sol|>http://uk1.php.net/manual/en/language.operators.errorcontrol.php#99805<|eol|><|sor|>the php comments section effect: for every php article with an example, there is an even shittier exa...
5
lolphp
MazeChaZer
4fms1c
<|sols|><|sot|>"Pragmatic" design decicions regarding the DateTimeImmutable API<|eot|><|sol|>http://comments.gmane.org/gmane.comp.php.devel/78803<|eol|><|eols|><|endoftext|>
55
lolphp
foobar5678
d2asjta
<|sols|><|sot|>"Pragmatic" design decicions regarding the DateTimeImmutable API<|eot|><|sol|>http://comments.gmane.org/gmane.comp.php.devel/78803<|eol|><|sor|>Original message: > The DateTimeImmutable class extends the DateTime class. Why was this done this way? ReplyA: > To quote Stas, "As for established practice,...
25
lolphp
nikic
d2bg9oi
<|sols|><|sot|>"Pragmatic" design decicions regarding the DateTimeImmutable API<|eot|><|sol|>http://comments.gmane.org/gmane.comp.php.devel/78803<|eol|><|sor|>Original message: > The DateTimeImmutable class extends the DateTime class. Why was this done this way? ReplyA: > To quote Stas, "As for established practice,...
12
lolphp
DoctorWaluigiTime
d2b3wl2
<|sols|><|sot|>"Pragmatic" design decicions regarding the DateTimeImmutable API<|eot|><|sol|>http://comments.gmane.org/gmane.comp.php.devel/78803<|eol|><|sor|>> I think it was done to ease adoption. PHP in a nutshell, ladies and gentlemen. Why do something right, when you can do something that "eases adoption"? AKA, "...
8
lolphp
polish_niceguy
4cv3km
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|eols|><|endoftext|>
53
lolphp
polish_niceguy
d1ln4yw
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|soopr|>Little backstory: I was parsing received JSON, which happened to have boolean values. I was using `print_r()` to quickly dump the resulting array to a fil...
17
lolphp
postmodest
d1lw3i8
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|soopr|>Little backstory: I was parsing received JSON, which happened to have boolean values. I was using `print_r()` to quickly dump the resulting array to a fil...
16
lolphp
cythrawll
d1mharo
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|sor|>print_r is a garbage function, I'd be in favor of deprecating it. I been telling people years of it's evil. var_dump and var_export is what you really wan...
13
lolphp
Takeoded
d1lqtm2
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|soopr|>Little backstory: I was parsing received JSON, which happened to have boolean values. I was using `print_r()` to quickly dump the resulting array to a fil...
11
lolphp
polish_niceguy
d1mdess
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|soopr|>Little backstory: I was parsing received JSON, which happened to have boolean values. I was using `print_r()` to quickly dump the resulting array to a fil...
10
lolphp
Cyphr
d1lsxxi
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|sor|>Isn't that a symptom of PHP's String casting? Bool(true) strings to '1', and Bool(false) strings to ''. It's really dumb, and makes no sense to me. <|eor|><...
8
lolphp
jsanc623
d1lo5pv
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|soopr|>Little backstory: I was parsing received JSON, which happened to have boolean values. I was using `print_r()` to quickly dump the resulting array to a fil...
8
lolphp
carlos_vini
d1lxt47
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|soopr|>Little backstory: I was parsing received JSON, which happened to have boolean values. I was using `print_r()` to quickly dump the resulting array to a fil...
8
lolphp
midir
d1milva
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|sor|>print_r is a garbage function, I'd be in favor of deprecating it. I been telling people years of it's evil. var_dump and var_export is what you really wan...
6
lolphp
polish_niceguy
d1ltmcf
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|sor|>Isn't that a symptom of PHP's String casting? Bool(true) strings to '1', and Bool(false) strings to ''. It's really dumb, and makes no sense to me. <|eor|><...
6
lolphp
cythrawll
d1miunb
<|sols|><|sot|>print_r silently casts booleans to integers. Took me two hours to find out why my code was failing.<|eot|><|sol|>https://3v4l.org/L6HhW<|eol|><|sor|>print_r is a garbage function, I'd be in favor of deprecating it. I been telling people years of it's evil. var_dump and var_export is what you really wan...
6
lolphp
Deviltry1
4bqu1s
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|eols|><|endoftext|>
52
lolphp
vytah
d1bljn2
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>So, a **DivisionByZero**Error is never thrown when a **division by zero** actually occurs. Makes perfect sense.<|eor|><|eols|><|endoftext|>
33
lolphp
nikic
d1bnjrw
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>To clarify: DivisionByZeroError is an *integer* division error. It is thrown by `%` and `intdiv`, which are the integer division operations. Integer division by...
31
lolphp
Mattho
d1bl5s8
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>> The DivisionByZeroError is only thrown when using modulus as opposed to division. When you divide by 0, the result will also be either an INF or NAN (new PHP ...
24
lolphp
nikic
d1bww17
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>To clarify: DivisionByZeroError is an *integer* division error. It is thrown by `%` and `intdiv`, which are the integer division operations. Integer division by...
15
lolphp
phoshi
d1bqs8j
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>> The DivisionByZeroError is only thrown when using modulus as opposed to division. When you divide by 0, the result will also be either an INF or NAN (new PHP ...
11
lolphp
merreborn
d1cdig8
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>Maybe they can add a new exception that's called DivideByZero in Hebrew? I think that will clear everything right up.<|eor|><|sor|> UNEXPECTED_DIVIDUM_NULLIK...
11
lolphp
ebvalaim
d1bk9to
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>https://bugs.php.net/bug.php?id=71306 Well... yeah.<|eor|><|eols|><|endoftext|>
9
lolphp
cbraga
d1bts29
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>> The DivisionByZeroError is only thrown when using modulus as opposed to division. When you divide by 0, the result will also be either an INF or NAN (new PHP ...
9
lolphp
PlasmaSheep
d1cbwn7
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>Maybe they can add a new exception that's called DivideByZero in Hebrew? I think that will clear everything right up.<|eor|><|eols|><|endoftext|>
8
lolphp
cbraga
d1btv8j
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>To clarify: DivisionByZeroError is an *integer* division error. It is thrown by `%` and `intdiv`, which are the integer division operations. Integer division by...
8
lolphp
milordi
d1c8xey
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>https://bugs.php.net/bug.php?id=71306 Well... yeah.<|eor|><|sor|>>-Status: Open >+Status: Not a bug Everything as excepted.<|eor|><|eols|><|endoftext|>
8
lolphp
greenthumble
d1c16rx
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>> The DivisionByZeroError is only thrown when using modulus as opposed to division. When you divide by 0, the result will also be either an INF or NAN (new PHP ...
8
lolphp
masklinn
d1cbk8v
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>> The DivisionByZeroError is only thrown when using modulus as opposed to division. When you divide by 0, the result will also be either an INF or NAN (new PHP ...
7
lolphp
mayobutter
d1cq2z2
<|sols|><|sot|>DivisionByZero exception, it does nothing<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/<|eol|><|sor|>Maybe they can add a new exception that's called DivideByZero in Hebrew? I think that will clear everything right up.<|eor|><|sor|>or an exception named Divisio...
6
lolphp
webdeverper
3gwlup
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|eols|><|endoftext|>
52
lolphp
MaxNanasy
cu2d5ho
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|sor|>>**Note:** >easter_date() relies on your system's C library time functions, rather than using PHP's internal date and time functions. As a consequence, easte...
49
lolphp
ajmarks
cu29a5v
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|sor|>>**Note:** >easter_date() relies on your system's C library time functions, rather than using PHP's internal date and time functions. As a consequence, easte...
42
lolphp
vytah
cu2ibuz
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|sor|>[Given how complex calculating the date of Easter actually is](https://en.m.wikipedia.org/wiki/Computus), this is one of the least offensive things about PHP....
41
lolphp
mrpaco
cu270y2
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|sor|>[Given how complex calculating the date of Easter actually is](https://en.m.wikipedia.org/wiki/Computus), this is one of the least offensive things about PHP....
38
lolphp
vytah
cu2idq7
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|soopr|>No thanksgiving_date() , christmas_date() or halloween_date() :'( <|eoopr|><|sor|>Not to mention freedom_date() (returns the date of the fourth of July in t...
33
lolphp
webdeverper
cu2bq37
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|sor|>[Given how complex calculating the date of Easter actually is](https://en.m.wikipedia.org/wiki/Computus), this is one of the least offensive things about PHP....
27
lolphp
ThisIsADogHello
cu2z797
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|sor|>[Given how complex calculating the date of Easter actually is](https://en.m.wikipedia.org/wiki/Computus), this is one of the least offensive things about PHP....
19
lolphp
webdeverper
cu24k3i
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|soopr|>No thanksgiving_date() , christmas_date() or halloween_date() :'( <|eoopr|><|eols|><|endoftext|>
17
lolphp
tgp1994
cu2dmaz
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|soopr|>No thanksgiving_date() , christmas_date() or halloween_date() :'( <|eoopr|><|sor|>Not to mention freedom_date() (returns the date of the fourth of July in t...
16
lolphp
Various_Pickles
cu2lvhg
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|soopr|>No thanksgiving_date() , christmas_date() or halloween_date() :'( <|eoopr|><|sor|>Not to mention freedom_date() (returns the date of the fourth of July in t...
14
lolphp
ajmarks
cu2mts1
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|soopr|>No thanksgiving_date() , christmas_date() or halloween_date() :'( <|eoopr|><|sor|>Those dates are easy; they're the same each. Calculating which day easter ...
13
lolphp
polish_niceguy
cu2mobe
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|soopr|>No thanksgiving_date() , christmas_date() or halloween_date() :'( <|eoopr|><|sor|>Not to mention freedom_date() (returns the date of the fourth of July in t...
13
lolphp
tgp1994
cu2duv0
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|soopr|>No thanksgiving_date() , christmas_date() or halloween_date() :'( <|eoopr|><|sor|>Not to mention freedom_date() (returns the date of the fourth of July in t...
10
lolphp
webdeverper
cu2nmem
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|soopr|>No thanksgiving_date() , christmas_date() or halloween_date() :'( <|eoopr|><|sor|>Not to mention freedom_date() (returns the date of the fourth of July in t...
10
lolphp
mort96
cu2jq5t
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|soopr|>No thanksgiving_date() , christmas_date() or halloween_date() :'( <|eoopr|><|sor|>Those dates are easy; they're the same each. Calculating which day easter ...
8
lolphp
mort96
cu2kfm8
<|sols|><|sot|>easter_date Get Unix timestamp for midnight on Easter of a given year<|eot|><|sol|>http://php.net/manual/en/function.easter-date.php<|eol|><|soopr|>No thanksgiving_date() , christmas_date() or halloween_date() :'( <|eoopr|><|sor|>Those dates are easy; they're the same each. Calculating which day easter ...
8
lolphp
volnix
39l1tu
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|eols|><|endoftext|>
54
lolphp
myaut
cs4pzd0
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>I think PHP7 should introduce `declare(xkcd_types=1)` which will implement these to maintain regular level of madness in core language.<|eor|><|eols|><|endoftext|>
36
lolphp
satan-repents
cs4iiiv
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>This has nothing to do with PHP.<|eor|><|sor|>This whole subreddit rarely has anything to do with PHP. Just a bunch of butthurt developers bashing things they don't like. <|eor|><|sor|>Butthurt after years of traumatic php developme...
21
lolphp
suspiciously_calm
cs4l4jy
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>This has nothing to do with PHP.<|eor|><|sor|>What do you mean it has nothing to do with PHP? It shows the interactive shell of the upcoming PHP version! ^at^least^thats^highly^plausible<|eor|><|eols|><|endoftext|>
17
lolphp
expugnator3000
cs4ntr7
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>This whole subreddit rarely has anything to do with PHP. Just a bunch of butthurt developers bashing things they don't like. <|eor|><|sor|>Butthurt after years of traumatic php development, yep. This sub is helping me regain my self...
17
lolphp
BilgeXA
cs4bk4w
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>This has nothing to do with PHP.<|eor|><|eols|><|endoftext|>
15
lolphp
beerdude26
cs4j9hg
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>This has nothing to do with PHP.<|eor|><|sor|>This whole subreddit rarely has anything to do with PHP. Just a bunch of butthurt developers bashing things they don't like. <|eor|><|sor|>Butthurt after years of traumatic php developme...
11
lolphp
c_wraith
cs5npee
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>[deleted]<|eor|><|sor|>https://hackage.haskell.org/package/acme-php might be of interest to you. Look at the source, too. Those instances don't appear in the haddocks, and are quite... impressive.<|eor|><|eols|><|endoftext|>
10
lolphp
beerdude26
cs4jzqz
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>This whole subreddit rarely has anything to do with PHP. Just a bunch of butthurt developers bashing things they don't like. <|eor|><|sor|>Butthurt after years of traumatic php development, yep. This sub is helping me regain my self...
10
lolphp
iheartrms
cs51nr8
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>This has nothing to do with PHP.<|eor|><|sor|>This whole subreddit rarely has anything to do with PHP. Just a bunch of butthurt developers bashing things they don't like. <|eor|><|sor|>Butthurt after years of traumatic php developme...
9
lolphp
BilgeXA
cs4nr9a
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>This has nothing to do with PHP.<|eor|><|sor|>What do you mean it has nothing to do with PHP? It shows the interactive shell of the upcoming PHP version! ^at^least^thats^highly^plausible<|eor|><|sor|>Good one.<|eor|><|eols|><|endof...
7
lolphp
Ickle_Chris
cs4ehcz
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>http://awesomegifs.com/wp-content/uploads/dead-horse.gif<|eor|><|eols|><|endoftext|>
6
lolphp
beerdude26
cs4jl08
<|sols|><|sot|>PHP typing in a nutshell<|eot|><|sol|>http://xkcd.com/1537/<|eol|><|sor|>This has nothing to do with PHP.<|eor|><|sor|>This whole subreddit rarely has anything to do with PHP. Just a bunch of butthurt developers bashing things they don't like. <|eor|><|sor|>Butthurt after years of traumatic php developme...
6
lolphp
jadkik94
37pcnc
<|sols|><|sot|>2001-01-0x is a valid date<|eot|><|sol|>http://3v4l.org/JFnc4<|eol|><|eols|><|endoftext|>
54
lolphp
philipwhiuk
crotcgp
<|sols|><|sot|>2001-01-0x is a valid date<|eot|><|sol|>http://3v4l.org/JFnc4<|eol|><|sor|>I can see what happens here The x is not parsed any more, so the parsed date ends up to be 2000-12-31, since if you take the 0th day of a month, it always leaps to the last day of the previous month(which is actually useful in a ...
28
lolphp
philipwhiuk
croq969
<|sols|><|sot|>2001-01-0x is a valid date<|eot|><|sol|>http://3v4l.org/JFnc4<|eol|><|sor|>I can see what happens here The x is not parsed any more, so the parsed date ends up to be 2000-12-31, since if you take the 0th day of a month, it always leaps to the last day of the previous month(which is actually useful in a ...
26
lolphp
kinsi55
croporl
<|sols|><|sot|>2001-01-0x is a valid date<|eot|><|sol|>http://3v4l.org/JFnc4<|eol|><|sor|>I can see what happens here The x is not parsed any more, so the parsed date ends up to be 2000-12-31, since if you take the 0th day of a month, it always leaps to the last day of the previous month(which is actually useful in a ...
22
lolphp
jadkik94
croq58t
<|sols|><|sot|>2001-01-0x is a valid date<|eot|><|sol|>http://3v4l.org/JFnc4<|eol|><|sor|>I can see what happens here The x is not parsed any more, so the parsed date ends up to be 2000-12-31, since if you take the 0th day of a month, it always leaps to the last day of the previous month(which is actually useful in a ...
18
lolphp
maweki
crovabl
<|sols|><|sot|>2001-01-0x is a valid date<|eot|><|sol|>http://3v4l.org/JFnc4<|eol|><|sor|>I can see what happens here The x is not parsed any more, so the parsed date ends up to be 2000-12-31, since if you take the 0th day of a month, it always leaps to the last day of the previous month(which is actually useful in a ...
14
lolphp
iWaterPlants
crotaoj
<|sols|><|sot|>2001-01-0x is a valid date<|eot|><|sol|>http://3v4l.org/JFnc4<|eol|><|sor|>I can see what happens here The x is not parsed any more, so the parsed date ends up to be 2000-12-31, since if you take the 0th day of a month, it always leaps to the last day of the previous month(which is actually useful in a ...
8
lolphp
jadkik94
crovavw
<|sols|><|sot|>2001-01-0x is a valid date<|eot|><|sol|>http://3v4l.org/JFnc4<|eol|><|sor|>I can see what happens here The x is not parsed any more, so the parsed date ends up to be 2000-12-31, since if you take the 0th day of a month, it always leaps to the last day of the previous month(which is actually useful in a ...
7
lolphp
cbraga
croxqj0
<|sols|><|sot|>2001-01-0x is a valid date<|eot|><|sol|>http://3v4l.org/JFnc4<|eol|><|sor|>I can see what happens here The x is not parsed any more, so the parsed date ends up to be 2000-12-31, since if you take the 0th day of a month, it always leaps to the last day of the previous month(which is actually useful in a ...
6
lolphp
stesch
2oyxs8
<|sols|><|sot|>PHP :: Bug #53711 :: Casting float->string->float with locale<|eot|><|sol|>https://bugs.php.net/bug.php?id=53711<|eol|><|eols|><|endoftext|>
54
lolphp
cfreak2399
cmrrikt
<|sols|><|sot|>PHP :: Bug #53711 :: Casting float->string->float with locale<|eot|><|sol|>https://bugs.php.net/bug.php?id=53711<|eol|><|sor|>Heh "won't fix". Essentially because fixing it would be hard. <|eor|><|eols|><|endoftext|>
35
lolphp
Dave9876
cmsm59f
<|sols|><|sot|>PHP :: Bug #53711 :: Casting float->string->float with locale<|eot|><|sol|>https://bugs.php.net/bug.php?id=53711<|eol|><|sor|>>This may not be intuitive, or even particularly useful, but it is long standing (and intended) behaviour, per (among many others) bug #31963 and doc bug #38785. I don't see any w...
26
lolphp
Retzudo
cmrtjkw
<|sols|><|sot|>PHP :: Bug #53711 :: Casting float->string->float with locale<|eot|><|sol|>https://bugs.php.net/bug.php?id=53711<|eol|><|sor|>> This may not be intuitive, or even particularly useful, but it is long standing (and intended) behaviour, per (among many others) bug #31963 and doc bug #38785. It's not usefu...
25
lolphp
cbraga
cmrsm09
<|sols|><|sot|>PHP :: Bug #53711 :: Casting float->string->float with locale<|eot|><|sol|>https://bugs.php.net/bug.php?id=53711<|eol|><|sor|>Heh "won't fix". Essentially because fixing it would be hard. <|eor|><|sor|>And the proposed solution: create an .ini setting. Pure gold.<|eor|><|eols|><|endoftext|>
25
lolphp
bart2019
cms9eao
<|sols|><|sot|>PHP :: Bug #53711 :: Casting float->string->float with locale<|eot|><|sol|>https://bugs.php.net/bug.php?id=53711<|eol|><|sor|>>This may not be intuitive, or even particularly useful, but it is long standing (and intended) behaviour, per (among many others) bug #31963 and doc bug #38785. I don't see any w...
20
lolphp
TheOnlyMrYeah
cmscrpd
<|sols|><|sot|>PHP :: Bug #53711 :: Casting float->string->float with locale<|eot|><|sol|>https://bugs.php.net/bug.php?id=53711<|eol|><|sor|>> This may not be intuitive, or even particularly useful, but it is long standing (and intended) behaviour I translate: > It's shit and I know it's shit, but it's documented shi...
18
lolphp
Dave9876
cmtan3g
<|sols|><|sot|>PHP :: Bug #53711 :: Casting float->string->float with locale<|eot|><|sol|>https://bugs.php.net/bug.php?id=53711<|eol|><|sor|>Heh "won't fix". Essentially because fixing it would be hard. <|eor|><|sor|>And the proposed solution: create an .ini setting. Pure gold.<|eor|><|sor|>Even better that the .ini s...
10
lolphp
bart2019
cmsr39b
<|sols|><|sot|>PHP :: Bug #53711 :: Casting float->string->float with locale<|eot|><|sol|>https://bugs.php.net/bug.php?id=53711<|eol|><|sor|>>This may not be intuitive, or even particularly useful, but it is long standing (and intended) behaviour, per (among many others) bug #31963 and doc bug #38785. I don't see any w...
9
lolphp
jamieflournoy
cmsi3oi
<|sols|><|sot|>PHP :: Bug #53711 :: Casting float->string->float with locale<|eot|><|sol|>https://bugs.php.net/bug.php?id=53711<|eol|><|sor|>For comparison: keith@Keiths-Hackintosh ~ $ irb 2.0.0-p247 :001 > (1234.56.to_s).to_f == 1234.56 => true <|eor|><|sor|>Hm, what happens if you change the locale? <|e...
9