php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44449 DateTime from timestamp failing if DST
Submitted: 2008-03-16 17:31 UTC Modified: 2009-02-19 01:00 UTC
From: sean@php.net Assigned: derick (profile)
Status: No Feedback Package: Date/time related
PHP Version: 5.3CVS-2008-03-16 (snap) OS: MacOS 10.5.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sean@php.net
New email:
PHP Version: OS:

 

 [2008-03-16 17:31 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-25 20:33 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/
 [2008-11-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-02-11 21:36 UTC] felipe@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-02-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC