#37317 [NEW]: mktime problem
| From: | ramsessivira at yahoo dot com | Date: | Thu, 04 May 2006 23:20:07 +0000 |
| Subject: | #37317 [NEW]: mktime problem | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-96625@lists.php.net to get a copy of this message | ||
From: ramsessivira at yahoo dot com
Operating system: windows xp
PHP version: 5.1.3
PHP Bug Type: Date/time related
Bug description: mktime problem
Description:
------------
For years up to 2038 the mktime instruction does not give back any result
Reproduce code:
---------------
for($x=2037;$x<2041;$x++){
echo mktime(0,0,0,1,1,$x)." Date: ".date(
"M-d-Y",mktime(0,0,0,1,1,$x))."<br>";
}
Expected result:
----------------
2114395200 Date: Jan-01-2037
2145931200 Date: Jan-01-2038
some value Date: Jan-01-2039
some value Date: Jan-01-2040
Actual result:
--------------
2114395200 Date: Jan-01-2037
2145931200 Date: Jan-01-2038
Date: Dec-31-1969
Date: Dec-31-1969
--
Edit bug report at http://bugs.php.net/?id=37317&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37317&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37317&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37317&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37317&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37317&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37317&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37317&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37317&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37317&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37317&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37317&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37317&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37317&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37317&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37317&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37317&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37317&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37317&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37317&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37317&r=mysqlcfg