From: nick dot cooper at jdi-solutions dot co dot uk Operating system: Windows Server 2003 R2 SP2 PHP version: 5.3.0 PHP Bug Type: Apache2 related Bug description: date_default_timezone_get not query the OS correctly
Description: ------------ An issue with how date_default_timezone_get() is querying the host operating system for timezone information under Windows server 2003. Reproduce code: --------------- I started by experiencing an issue with strtotime(). <?php echo strtotime("10 September 2009"); ?> When running under 'Apache/2.2.11 (Win32) mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.3.0' it restarts. I switched back to 5.2.9-2 and ran the same script without issue. This test was carried out on Window Server 2003 R2 SP2 I then performed the exact same test on XP SP3 with the same Apache/PHP setup, there was no issue. I figured it must be something to do with the way PHP gets the timezone information. Again under PHP5.3 on Server 2003 I tried the following: date_default_timezone_get() and Apache restarted. I altered the PHP.ini to include the date.timezone setting and tried again and there was no issue. The issue must therefore be with how date_default_timezone_get() is querying the host operating system for timezone information. Expected result: ---------------- Display timestamp Actual result: -------------- Apache unexpectedly restarts: [Wed Sep 30 13:51:50 2009] [notice] Parent: child process exited with status 128 -- Restarting. -- Edit bug report at http://bugs.php.net/?id=49721&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49721&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49721&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49721&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49721&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49721&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49721&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49721&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49721&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49721&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49721&r=support Expected behavior: http://bugs.php.net/fix.php?id=49721&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49721&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49721&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49721&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49721&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49721&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49721&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49721&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49721&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49721&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49721&r=mysqlcfg