cvs: php-src /ext/standard/tests/time bug21966.phpt

From: Date: Sun, 04 Apr 2004 12:42:13 +0000
Subject: cvs: php-src /ext/standard/tests/time bug21966.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-26948@lists.php.net to get a copy of this message
derick Sun Apr 4 08:42:13 2004 EDT Added files: /php-src/ext/standard/tests/time bug21966.phpt Log: - One more test for a date/time related bug. http://cvs.php.net/co.php/php-src/ext/standard/tests/time/bug21966.phpt?r=1.1&p=1 Index: php-src/ext/standard/tests/time/bug21966.phpt +++ php-src/ext/standard/tests/time/bug21966.phpt --TEST-- Bug #21966 (date() or mktime() returning bad value for mktime month param of '2') --FILE-- <?php putenv("TZ=Europe/London"); echo '27/3/04 = ' . strval(mktime(00,0,0,3,27,2004)) . "\n"; // 1080345600 echo '28/3/04 = ' . strval(mktime(0,0,0,3,28,2004)) . "\n"; // -3662 - should be 108042840 echo '28/3/04 = ' . strval(mktime(2,0,0,3,28,2004)) . "\n"; // 1080435600 echo '29/3/04 = ' . strval(mktime(0,0,0,3,29,2004)) . "\n"; // 1080514800 echo '30/3/04 = ' . strval(mktime(0,0,0,3,30,2004)) . "\n"; // 1080601200 ?> --EXPECT-- 27/3/04 = 1080345600 28/3/04 = 1080432000 28/3/04 = 1080435600 29/3/04 = 1080514800 30/3/04 = 1080601200

« previous php.cvs (#26948) next »