ID: 27719 User updated by: schmidt dot a at rogers dot com Reported By: schmidt dot a at rogers dot com Status: Open Bug Type: Date/time related Operating System: FreeBSD 4.4 PHP Version: 5.0.0RC1 New Comment:
I should mention it worked fine in php 5 beta 4 as well. Previous Comments: ------------------------------------------------------------------------ [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
