From: marcos at paladin-its dot com
Operating system: Free BSD
PHP version: 4.3.5
PHP Bug Type: Date/time related
Bug description: mktime returns error for args 4/1/2007 00:00:00
Description:
------------
when passing the integers necessary to make a date of 4/1/2007, mktime
returns an error value of 12/31/1969.
Reproduce code:
---------------
echo date("M-d-Y", mktime(0, 0, 0, 4, 1, 2007)) . "<br>";
Expected result:
----------------
Apr-01-2007
Actual result:
--------------
Dec-31-1969
--
Edit bug report at http://bugs.php.net/?id=28733&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28733&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28733&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28733&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28733&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28733&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28733&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28733&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28733&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28733&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28733&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28733&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28733&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28733&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28733&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28733&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28733&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28733&r=float