Doc #55113 [NEW]: Error in Named Time Zones
| From: | Ray dot Paseur at Gmail dot com | Date: | Sat, 02 Jul 2011 15:07:37 +0000 |
| Subject: | Doc #55113 [NEW]: Error in Named Time Zones | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-6813@lists.php.net to get a copy of this message | ||
From:
Operating system: Linux
PHP version: 5.3.6
Package: Date/time related
Bug Type: Documentation Problem
Bug description:Error in Named Time Zones
Description:
------------
---
From manual page: http://www.php.net/timezones
---
http://www.laprbass.com/RAY_temp_timezones_test.php
Outputs:
TESTING NAMED TIME ZONES
America/Kralendijk IS BOGUS
America/Lower_Princes IS BOGUS
Test script:
---------------
<?php // RAY_temp_timezones_test.php
error_reporting(E_ALL);
echo "<pre>";
$timezones = array ( 'America/Kralendijk' , 'America/Louisville' ,
'America/Lower_Princes' );
$bogus = FALSE;
echo PHP_EOL . "TESTING NAMED TIME ZONES";
foreach ($timezones as $t)
{
if (FALSE === @date_default_timezone_set($t))
{
$bogus = TRUE;
echo PHP_EOL . "$t IS BOGUS";
}
}
// SHOW MESSAGE IF ALL PASS
if (!$bogus) echo PHP_EOL . "ALL NAMED TIME ZONES WORK WITH
date_default_timezone_set()";
Expected result:
----------------
ALL NAMED TIME ZONES WORK WITH...
Actual result:
--------------
TESTING NAMED TIME ZONES
America/Kralendijk IS BOGUS
America/Lower_Princes IS BOGUS
--
Edit bug report at https://bugs.php.net/bug.php?id=55113&edit=1
--
Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55113&r=trysnapshot52
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55113&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55113&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55113&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55113&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55113&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55113&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55113&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55113&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55113&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55113&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55113&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55113&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55113&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55113&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55113&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55113&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55113&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55113&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55113&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55113&r=mysqlcfg
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55113&r=trysnapshot54