From: Operating system: windows/linux PHP version: Irrelevant Package: Output Control Bug Type: Bug Bug description:bug with mktime function
Description: ------------ I wrote a function to return an array that will consist of the key-value pair of all the month-number and 3 letter suffix of the month as 1=>Jan 2=>Feb 3=>Mar so on... The problem is the function works on all days except on month ends (for ex 31jan, 28feb, 31mar so on ) will display Mar of the key 2 and 3 as well Test script: --------------- please change the system date to a month end before running this code for ex i tested this code on 30 apt 2010 echo "<br>"; echo date("M",mktime(0,0,0,date(2),date("d"),date("Y"))); echo "<br>"; echo date("M",mktime(0,0,0,date(3),date("d"),date("Y"))); echo "<br>"; Expected result: ---------------- Mar Mar -- Edit bug report at http://bugs.php.net/bug.php?id=51704&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51704&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51704&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51704&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51704&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51704&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51704&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51704&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51704&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51704&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51704&r=support Expected behavior: http://bugs.php.net/fix.php?id=51704&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51704&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51704&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51704&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51704&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51704&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51704&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51704&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51704&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51704&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51704&r=mysqlcfg