From: s_svene at hotmail dot com Operating system: Windows PHP version: 4.3.4 PHP Bug Type: Date/time related Bug description: mktime bugg
Description: ------------ I have noticed a bug in the commando date("m",mktime(0,0,0,x); You get the same result if you type in a 2 or a 3 where X belong, that is the nuber of the current month. Reproduce code: --------------- <?php echo("Month 2 : "); echo(date("m",mktime(0,0,0,2)."<br>"); echo("Month 3"); echo(date("m",mktime(0,0,0,3)."<br>"); ?> Expected result: ---------------- Month 2 : 2 Month 3 : 3 Actual result: -------------- Month 2 : 3 Month 3 : 3 -- Edit bug report at http://bugs.php.net/?id=28581&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28581&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28581&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28581&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28581&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28581&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28581&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28581&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28581&r=support Expected behavior: http://bugs.php.net/fix.php?id=28581&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28581&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28581&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28581&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28581&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28581&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28581&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28581&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28581&r=float