From: [EMAIL PROTECTED] Operating system: MacOS 10.5.2 PHP version: 5.3CVS-2008-03-16 (snap) PHP Bug Type: Date/time related Bug description: DateTime from timestamp failing if DST
Description: ------------ Test ext/date/tests/bug40743.phpt fails ONLY if the current date is set to DST; see below. If this isn't actually a bug (as in #41912), then the test should take this into account. sarcasmic:~/svn/php.net/php5$ date Sat 16 Feb 2008 13:25:26 EST sarcasmic:~/svn/php.net/php5$ TEST_PHP_EXECUTABLE=~/src/php5.3-200803081530/sap i/cli/php sapi/cli/php ./run-tests.php ext/date/tests/bug40743.phpt ===================================================================== PHP : /Users/sean/src/php5.3-200803081530/sapi/cli/php PHP_SAPI : cli PHP_VERSION : 5.3.0-dev ZEND_VERSION: 2.3.0 PHP_OS : Darwin - Darwin sarcasmic 9.2.0 Darwin Kernel Version 9.2.0: Tue Feb 5 16:13:22 PST 2008; root:xnu-1228.3.13~1/RELEASE_I386 i386 INI actual : /Users/sean/svn/php.net/php5 More .INIs : CWD : /Users/sean/svn/php.net/php5 Extra dirs : VALGRIND : Not used ===================================================================== Running selected tests. PASS Bug #40743 (DateTime ignores the TimeZone object passed to the constructor) [ext/date/tests/bug40743.phpt] ===================================================================== Number of tests : 1 1 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 0 ( 0.0%) ( 0.0%) Tests passed : 1 (100.0%) (100.0%) --------------------------------------------------------------------- Time taken : 0 seconds ===================================================================== sarcasmic:~/svn/php.net/php5$ date Sun 16 Mar 2008 13:25:56 EDT sarcasmic:~/svn/php.net/php5$ TEST_PHP_EXECUTABLE=~/src/php5.3-200803081530/sap i/cli/php sapi/cli/php ./run-tests.php ext/date/tests/bug40743.phpt ===================================================================== PHP : /Users/sean/src/php5.3-200803081530/sapi/cli/php PHP_SAPI : cli PHP_VERSION : 5.3.0-dev ZEND_VERSION: 2.3.0 PHP_OS : Darwin - Darwin sarcasmic 9.2.0 Darwin Kernel Version 9.2.0: Tue Feb 5 16:13:22 PST 2008; root:xnu-1228.3.13~1/RELEASE_I386 i386 INI actual : /Users/sean/svn/php.net/php5 More .INIs : CWD : /Users/sean/svn/php.net/php5 Extra dirs : VALGRIND : Not used ===================================================================== Running selected tests. FAIL Bug #40743 (DateTime ignores the TimeZone object passed to the constructor) [ext/date/tests/bug40743.phpt] ===================================================================== Number of tests : 1 1 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 1 (100.0%) (100.0%) Tests passed : 0 ( 0.0%) ( 0.0%) --------------------------------------------------------------------- Time taken : 0 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Bug #40743 (DateTime ignores the TimeZone object passed to the constructor) [ext/date/tests/bug40743.phpt] ===================================================================== Diff: 005+ Wed, 16 Jan 08 18:04:59 +0100 +01:00 GMT+0100 +0100 1200506699 005- Wed, 16 Jan 08 18:04:59 +0000 +00:00 GMT+0000 +0000 1200506699 -- Edit bug report at http://bugs.php.net/?id=44449&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44449&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44449&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44449&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44449&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44449&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44449&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44449&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44449&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44449&r=support Expected behavior: http://bugs.php.net/fix.php?id=44449&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44449&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44449&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44449&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44449&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44449&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44449&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44449&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44449&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44449&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44449&r=mysqlcfg