ID: 27719 Updated by: [EMAIL PROTECTED] Reported By: schmidt dot a at rogers dot com -Status: Open +Status: Feedback Bug Type: Date/time related Operating System: FreeBSD 4.4 PHP Version: 5.0.0RC1 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip It works fine for me on LInux (with RC2-dev); perhaps you can try the latest PHP 5 snapshot? Previous Comments: ------------------------------------------------------------------------ [2004-03-26 11:31:49] schmidt dot a at rogers dot com I should mention it worked fine in php 5 beta 4 as well. ------------------------------------------------------------------------ [2004-03-26 11:27:42] schmidt dot a at rogers dot com Description: ------------ As of php 5.0RC1 mktime returns a negative value when supplied with a date on daylight savings regardless of the is_dst option. This did not occur in php 5 beta 3, nor in any version of php 4. Reproduce code: --------------- echo mktime(0, 0, 0, 4, 4, 2004, 0) . "\n"; echo mktime(0, 0, 0, 4, 4, 2004, 1) . "\n"; echo mktime(0, 0, 0, 4, 4, 2004, -1) . "\n"; Expected result: ---------------- with php 5 beta 3 and php 4: 1081054800 1081051200 1081054800 Actual result: -------------- with php 5 RC1: -7262 -7262 -7262 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27719&edit=1
