Bug #69078 [NEW]: strotime() doesn't work - Integer limited to 32bit on a 64bit windows

From: Date: Thu, 19 Feb 2015 09:30:44 +0000
Subject: Bug #69078 [NEW]: strotime() doesn't work - Integer limited to 32bit on a 64bit windows
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190802@lists.php.net to get a copy of this message
From: djbrainnrg at gmail dot com Operating system: Windows 7 64bit PHP version: 5.6.6RC1 Package: Unknown/Other Function Bug Type: Bug Bug description:strotime() doesn't work - Integer limited to 32bit on a 64bit windows 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 bug report at https://bugs.php.net/bug.php?id=69078&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69078&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69078&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69078&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69078&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69078&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69078&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69078&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69078&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69078&r=support Expected behavior: https://bugs.php.net/fix.php?id=69078&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69078&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69078&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69078&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69078&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69078&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69078&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69078&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69078&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69078&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69078&r=mysqlcfg

« previous php.bugs (#190802) next »