[Bug 194318] [NEW] strtotime doesn't support 64 bit timestamps

Guillermo Pérez bisho at eurielec.etsit.upm.es
Fri Feb 22 10:30:08 GMT 2008


Public bug reported:

Binary package hint: php5

PHP bug http://bugs.php.net/bug.php?id=44209 is affecting latest
feisty/hardy php packages (5.2.1/5.2.4-2ubuntu4). Now they have fixed it
in CVS. Is possible to get this fixed in ubuntu's PHP packages? At least
for next hardy. Thx a lot

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.

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
strtotime doesn't support 64 bit timestamps
https://bugs.launchpad.net/bugs/194318
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list