strtotime doesn't support 64 bit timestamps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: php5
PHP bug http://
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-
Returns:
3007-06-25
But strtotime does not work with those improved date ranges:
<?= date('Y-
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.
Hi-
I grabbed the patch from PHP upstream from http:// marc.info/ ?l=php- cvs&m=120367371 119481& w=2 and built a new php5 package for Hardy.
However, there were several regression tests in the PHP suite which failed. See the differences: http:// pastebin. com/pastebin. php?diff= f768e161f
I opened a new bug with PHP: http:// bugs.php. net/bug. php?id= 44219
I'd like to get these test regressions sorted out before updating Hardy's php5.