#44449 [Opn->Asn]: DateTime from timestamp failing if DST
ID: 44449
Updated by: lsmith@php.net
Reported By: sean@php.net
-Status: Open
+Status: Assigned
Bug Type: Date/time related
Operating System: MacOS 10.5.2
PHP Version: 5.3CVS-2008-03-16 (snap)
-Assigned To:
+Assigned To: derick
Previous Comments:
------------------------------------------------------------------------
[2008-03-16 17:31:15] sean@php.net
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 this bug report at http://bugs.php.net/?id=44449&edit=1
Thread (4 messages)