From:             bichinhoverde at spwinternet dot com dot br
Operating system: winxp+apache2 module
PHP version:      4.3.6
PHP Bug Type:     Date/time related
Bug description:  mktime error

Description:
------------
I saw a very similar error on another bug report. It was supposed to be
fixed but it doesn't seem to be.

mktime fails for dates after 2038 because the long integer type cannot
handle such big timestamps.

Reproduce code:
---------------
<?
print mktime(23,59,59,1,18,2038);
print '<br>';
print mktime(23,59,60,1,18,2038);
print '<br>';
print mktime(0,0,0,1,19,2038);
?>

Expected result:
----------------
2147479199
2147479200
2147479200


Actual result:
--------------
2147479199
2147479200

Warning: mktime(): Windows does not support negative values for this
function in C:\apacheroot\index.php on line 6
-1


-- 
Edit bug report at http://bugs.php.net/?id=28258&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28258&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28258&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28258&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28258&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28258&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28258&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28258&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28258&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28258&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28258&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28258&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28258&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28258&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28258&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28258&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28258&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28258&r=float

Reply via email to