From: chikei at gmail dot com Operating system: FreeBSD 7.2 PHP version: 5.3SVN-2009-12-18 (snap) PHP Bug Type: Date/time related Bug description: fallbackmap.h missing entry for GMT-8 without daylight saving time
Description: ------------ In ext/date/lib/fallbackmap.h you have: { "krat", 0, 7, "Asia/Krasnoyarsk" }, { "krast", 1, 8, "Asia/Krasnoyarsk" }, { "jst", 0, 9, "Asia/Tokyo" }, but lots east Asia region do not use daylight saving time. And in the test server if I use /usr/share/zoneinfo/Etc/GMT-8 as /etc/localtime, I'll get tm_isdat == 0 after a simple localtime_r call, which then resulting PHP think the timezone is UTC. (I removed date.timezone entry in php.ini since i want PHP using OS's timezone setting.) Reproduce code: --------------- Remove date.timezone entry in php.ini and use /usr/share/zoneinfo/Etc/GMT-8 as /etc/localtime, then run date_default_timezone_get() Expected result: ---------------- Should return some timezone rest in GMT-8 region. (such as HongKong or Asia/Vientiane) Actual result: -------------- Returns UTC -- Edit bug report at http://bugs.php.net/?id=50520&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50520&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50520&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50520&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50520&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50520&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50520&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50520&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50520&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50520&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50520&r=support Expected behavior: http://bugs.php.net/fix.php?id=50520&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50520&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50520&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50520&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50520&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50520&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50520&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50520&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50520&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50520&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50520&r=mysqlcfg