From: [EMAIL PROTECTED] Operating system: Gentoo Linux 1.4 PHP version: 4.2.2 PHP Bug Type: Date/time related Bug description: date() or mktime() returning bad value for mktime month param of '2'
#!/usr/bin/php -q
<?
system("cat test");
for($x=1; $x<=12; $x++) {
echo "$x = ".date("m", mktime(0,0,0,$x))."\n";
}
?>
1 = 01
2 = 03
3 = 03
4 = 04
5 = 05
6 = 06
7 = 07
8 = 08
9 = 09
10 = 10
11 = 11
12 = 12
--
Edit bug report at http://bugs.php.net/?id=21966&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21966&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21966&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21966&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21966&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21966&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21966&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21966&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21966&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21966&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21966&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21966&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21966&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21966&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21966&r=gnused
