note 91801 added to function.strtotime
| From: | Killermonk at osu1 dot php dot net | Date: | Thu, 25 Jun 2009 23:13:48 +0000 |
| Subject: | note 91801 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157513@lists.php.net to get a copy of this message | ||
You are not restricted to the same date ranges when running PHP on a 64-bit machine. This is because
you are using 64-bit integers instead of 32-bit integers (at least if your OS is smart enough to use
64-bit integers in a 64-bit OS)
The following code will produce difference output in 32 and 64 bit environments.
var_dump(strtotime('1000-01-30'));
32-bit PHP: bool(false)
64-bit PHP: int(-30607689600)
This is true for php 5.2.* and 5.3
Also, note that the anything about the year 10000 is not supported. It appears to use only the last
digit in the year field. As such, the year 10000 is interpretted as the year 2000; 10086 as 2006,
13867 as 2007, etc
----
Server IP: 64.71.164.2
Probable Submitter: 24.234.172.29
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/91801
Del: integrated -- https://master.php.net/note/delete/91801/integrated
Del: useless -- https://master.php.net/note/delete/91801/useless
Del: bad code -- https://master.php.net/note/delete/91801/bad+code
Del: spam -- https://master.php.net/note/delete/91801/spam
Del: non-english -- https://master.php.net/note/delete/91801/non-english
Del: in docs -- https://master.php.net/note/delete/91801/in+docs
Del: other reasons-- https://master.php.net/note/delete/91801
Reject -- https://master.php.net/note/reject/91801
Search -- https://master.php.net/manage/user-notes.php