From: bishillo at gmail dot com
Operating system: linux 64 bit
PHP version: 5.2CVS-2008-02-22 (snap)
PHP Bug Type: Date/time related
Bug description: strtotime doesn't support 64 bit timestamps
Description:
------------
strtotime() of years >2038 or <1900 does not work on 64 bit platforms,
that should not have problems with those dates. The rest of php functions
work properly with those extended dates.
Reproduce code:
---------------
On 64 bit platforms php date functions support greater range of dates. For
exampe:
<?= date('d-m-Y',time()+31536000000) ?>
Returns:
3007-06-25
But strtotime does not work with those improved date ranges:
<?= date('Y-m-d',strtotime('3007-06-25')) ?>
Returns:
1970-01-01
I understand that output on 32 bit platforms, but on 64 bit should work as
the rest of functions, and return a valid 64bit timestamp for dates >2038
or <1900.
--
Edit bug report at http://bugs.php.net/?id=44209&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44209&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44209&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44209&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44209&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44209&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44209&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44209&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44209&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44209&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44209&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44209&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44209&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44209&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44209&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44209&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44209&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44209&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44209&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44209&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44209&r=mysqlcfg