ID: 22198 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: Date/time related Operating System: Solaris 8 (sparc) PHP Version: 4.3.0 New Comment:
script: <? for($hour=0;$hour<2;$hour++) { for($min=0;$min<60;$min++) { for($seg=0;$seg<60;$seg++) { $mk2= mktime ($hour,$min,$seg,03,30,2003); $frm2 = date ("d/m/Y", $mk2); print "($hour h, $min m, $seg s) $mk2 --> $frm2\n"; } } } ?> relevant part of output: ... (0 h, 59 m, 55 s) 1048982395 --> 29/03/2003 (0 h, 59 m, 56 s) 1048982396 --> 29/03/2003 (0 h, 59 m, 57 s) 1048982397 --> 29/03/2003 (0 h, 59 m, 58 s) 1048982398 --> 29/03/2003 (0 h, 59 m, 59 s) 1048982399 --> 29/03/2003 (1 h, 0 m, 0 s) 1048982400 --> 30/03/2003 (1 h, 0 m, 1 s) 1048982401 --> 30/03/2003 (1 h, 0 m, 2 s) 1048982402 --> 30/03/2003 (1 h, 0 m, 3 s) 1048982403 --> 30/03/2003 (1 h, 0 m, 4 s) 1048982404 --> 30/03/2003 ... Previous Comments: ------------------------------------------------------------------------ [2003-02-12 21:30:23] [EMAIL PROTECTED] Try using some other time that midnight. Some systems tend to behave a bit differently during the dst change and in those systems, the hour between 00:00 - 01:00 doesn't exist..(e.g. Macosx does the same) ------------------------------------------------------------------------ [2003-02-12 21:07:03] [EMAIL PROTECTED] ===================================================================== TIME END 2003-02-13 03:02:41 ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 76 Exts tested : 14 --------------------------------------------------------------------- Number of tests : 443 Tests skipped : 221 (49.9%) Tests failed : 3 ( 0.7%) Tests passed : 219 (49.4%) --------------------------------------------------------------------- Time taken : 111 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Error message handling [tests/run-test/test005.phpt] Bug #21131: fopen($filename, "a+") has broken position [ext/standard/tests/file/bug21131.phpt] strtotime() function [ext/standard/tests/time/002.phpt] ===================================================================== ------------------------------------------------------------------------ [2003-02-12 20:41:07] [EMAIL PROTECTED] We are waiting for your feedback about the result of the test. Thank you. ------------------------------------------------------------------------ [2003-02-12 20:38:52] [EMAIL PROTECTED] on freebsd x86: $ php -v 4.2.1 $ uname -sr FreeBSD 4.6-STABLE $ php -q data.php 1048896000 29/03/2003 1048982400 30/03/2003 on sparc: $ php -v PHP 4.3.0 (cli) (built: Feb 10 2003 18:07:11) Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies with Zend Optimizer v2.1.0, Copyright (c) 1998-2003, by Zend Technologies $ uname -sr SunOS 5.8 $ php -q data.php 1048896000 29/03/2003 1048978800 29/03/2003 Timestamps are different ------------------------------------------------------------------------ [2003-02-12 20:37:23] [EMAIL PROTECTED] Please run "run-tests.php ext/standard/time/mktime.phpt" from your PHP source dir and add the output to this report. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22198 -- Edit this bug report at http://bugs.php.net/?id=22198&edit=1