ID: 28581 User updated by: s_svene at hotmail dot com Reported By: s_svene at hotmail dot com -Status: Bogus +Status: Open Bug Type: Date/time related Operating System: Windows -PHP Version: 4.3.4 +PHP Version: 5.0 New Comment:
I have tried 5.0 to, and i can't get it to work.. going to try 4.6 to but. Previous Comments: ------------------------------------------------------------------------ [2004-05-30 19:13:08] [EMAIL PROTECTED] Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Works here with 4.3.6 and snapshots (4 and 5, linux&win32) --Pierre ------------------------------------------------------------------------ [2004-05-30 17:49:59] s_svene at hotmail dot com 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 this bug report at http://bugs.php.net/?id=28581&edit=1