#34385 [NEW]: phpinfo throws a strict standards warning on timezone

From: Date: Tue, 06 Sep 2005 03:41:37 +0000
Subject: #34385 [NEW]: phpinfo throws a strict standards warning on timezone
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84564@lists.php.net to get a copy of this message
From: david at tulloh dot id dot au Operating system: Linux PHP version: 5.1.0RC1 PHP Bug Type: Date/time related Bug description: phpinfo throws a strict standards warning on timezone Description: ------------ phpinfo throws a E_STRICT error. This is caused by PHP guessing at the timezone. I'm not sure that the error message belongs in the middle of the phpinfo output. Reproduce code: --------------- php -a -n <?php error_reporting(E_STRICT); phpinfo(INFO_MODULES); ?> Expected result: ---------------- phpinfo() should not throw errors, E_STRICT included. Actual result: -------------- (CLI output, similar results through apache module) ... date date/time support => enabled Strict Standards: phpinfo() [/phpmanual/function.phpinfo.html]: It is not safe to rely on the systems timezone settings, please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. We use 'America/New_York' for 'EST' instead. in /home/lod/Downloads/php-5.1.0RC1/- on line 2 Default timezone => America/New_York ... -- Edit bug report at http://bugs.php.net/?id=34385&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34385&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34385&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34385&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34385&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34385&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34385&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34385&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34385&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34385&r=support Expected behavior: http://bugs.php.net/fix.php?id=34385&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34385&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34385&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34385&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34385&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34385&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34385&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34385&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34385&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34385&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34385&r=mysqlcfg

« previous php.bugs (#84564) next »