Bug #69078 [Opn]: strtotime() doesn't work - Integer limited to 32bit on a 64bit windows
| From: | djbrainnrg at gmail dot com | Date: | Thu, 19 Feb 2015 09:33:27 +0000 |
| Subject: | Bug #69078 [Opn]: strtotime() doesn't work - Integer limited to 32bit on a 64bit windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-190803@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69078&edit=1
ID: 69078
User updated by: djbrainnrg at gmail dot com
Reported by: djbrainnrg at gmail dot com
-Summary: strotime() doesn't work - Integer limited to 32bit
on a 64bit windows
+Summary: strtotime() doesn't work - Integer limited to 32bit
on a 64bit windows
Status: Open
Type: Bug
Package: Unknown/Other Function
Operating System: Windows 7 64bit
PHP Version: 5.6.6RC1
Block user comment: N
Private report: N
New Comment:
fixed typo
Previous Comments:
------------------------------------------------------------------------
[2015-02-19 09:30:44] djbrainnrg at gmail dot com
Description:
------------
I'm aware of the year 2038 problem in PHP because of the 32bit limitation of integer values. I
know that i need a 64bit system to make it working.
Well, i've done so.
I've installed
* Apache 2.4.12 Win64
* PHP Version 5.6.6RC1 - Thread Safe 64bit for windows
* Running on Windows 7 64bit
And my problem is, strtotime still cannot handle dates higher than year 2038. Reason is because the
system simple work with 32bit integer limit. It doesn't matter that all is running in 64bit,
still not working.
Here is my phpinfo
http://i.stack.imgur.com/LN1wS.png
Test script:
---------------
That should return true, but does return false.
var_dump(intval("9223372036854775807")==9223372036854775807);
That should return an integer, but return false because the integer is greater than a 32bit integer.
var_dump(strtotime("2038-11-01"));
Expected result:
----------------
64bit integer values
Actual result:
--------------
32bit integer limit on a 64bit system
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69078&edit=1