From: php at puptv dot com
Operating system: linux
PHP version: 5.2.5
PHP Bug Type: Date/time related
Bug description: datetimezone with certain tz's
Description:
------------
Running a test where I generate a time in timezone, and read back fails
for timezones with two / characters, as in:
America/Argentina/ComodRivadavi
Reproduce code:
---------------
foreach($timezones as $tz) {
date_default_timezone_set($tz);
$st=date('M j, Y H:i:s T',$t);
$rt = ParseTTime($st);
if ($rt == $t) echo " OK "; else echo " PROBLEM $rt parse: "; echo
($rt-$t)/3600;
}
Expected result:
----------------
Should work like other sites in the timezones array
Actual result:
--------------
Fatal error: Uncaught exception 'Exception' with message
'DateTimeZone::__construct() [<a
href='function.DateTimeZone---construct'>function.DateTimeZone---construct</a>]:
Unknown or bad timezone (America/Argentina/ComodRivadavi)'
--
Edit bug report at http://bugs.php.net/?id=43460&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=43460&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=43460&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=43460&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=43460&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43460&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=43460&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43460&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43460&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43460&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43460&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43460&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=43460&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=43460&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43460&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43460&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43460&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43460&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43460&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43460&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43460&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43460&r=mysqlcfg