Bug #61611 [Opn->Csd]: ext\date\tests\date_default_timezone_get-2.phpt fails
| From: | ab@php.net | Date: | Tue, 10 Apr 2012 10:40:06 +0000 |
| Subject: | Bug #61611 [Opn->Csd]: ext\date\tests\date_default_timezone_get-2.phpt fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169400@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61611&edit=1
ID: 61611
Updated by: ab@php.net
Reported by: ab@php.net
Summary: ext\date\tests\date_default_timezone_get-2.phpt
fails
-Status: Open
+Status: Closed
Type: Bug
Package: Date/time related
Operating System: Windows
PHP Version: 5.3.10
-Assigned To:
+Assigned To: ab
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2012-04-10 10:39:18] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=26dbc5ecb455720f49fc4ff707d88e88fafe426d
Log: Fixed bug #61611 ext\date\tests\date_default_timezone_get-2.phpt fails
------------------------------------------------------------------------
[2012-04-10 01:58:52] mattficken@php.net
The patch works for me on Windows 7 and Gentoo Linux (x86 & x64) on php-5-3-r0f180a6.
------------------------------------------------------------------------
[2012-04-03 18:13:33] ab@php.net
The behaviour on windows is to select an arbitrary timezone from the current system settings. This
gives no chance to hardcode the timezone name, for instance for UTC+1 it could choose from the
multiple names like Europe/Berlin or Europe/Paris . For this reason the test is parametrized so
there is no hardcoded timezone data.
The original test made to be skipped on windows and a duplicate was made for windows. Tested on
debian and win7 both x86.
------------------------------------------------------------------------
[2012-04-03 18:12:48] ab@php.net
The following patch has been added/updated:
Patch Name: 61611.diff
Revision: 1333476768
URL: https://bugs.php.net/patch-display.php?bug=61611&patch=61611.diff&revision=1333476768
------------------------------------------------------------------------
[2012-04-03 16:33:41] ab@php.net
Description:
------------
Current test diff
001+ Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone
settings. You are *required* to use the date.timezone
setting or the date_default_timezone_set() function. In case you used any of those methods and you
are still getting this warning, you most likely misspelled the timezone identifier. We selected
'Europe/Paris' for '2.0/DST' instead in
C:\php-sdk\php53\vc9\x86\php-src\ext\date\tests\date_default_timezone_get-2.php on line 3
002+ Europe/Paris
001- Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone
settings. You are *required* to use the date.timezone
setting or the date_default_timezone_set() function. In case you used any of those methods and you
are still getting this warning, you most likely misspelled the timezone identifier. We selected
'UTC' for 'UTC/0.0/no DST' instead in %sdate_default_timezone_get-2.php on line
3
002- UTC
Expected result:
----------------
test pass
Actual result:
--------------
test fail
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61611&edit=1