From: danc at merrillpress dot com Operating system: RHEL4 PHP version: 5.1.6 PHP Bug Type: Date/time related Bug description: Remove the obnoxious date() warning
Description: ------------ In the rewritten date functions, the system emits an E_STRICT warning when date() is called without the timezone having been set via date_default_timezone_set() or date.timezone in an INI file. This is bad behavior. While being able to override the time zone is a nice feature, the system time zone is usually set correctly, and forcing users to specify it twice (once in the overall system configuration and once specifically for PHP) serves no purpose. Reproduce code: --------------- date() Expected result: ---------------- E_STRICT Actual result: -------------- No warning of any kind -- Edit bug report at http://bugs.php.net/?id=39142&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39142&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39142&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39142&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39142&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39142&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39142&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39142&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39142&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39142&r=support Expected behavior: http://bugs.php.net/fix.php?id=39142&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39142&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39142&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39142&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39142&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39142&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39142&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39142&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39142&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39142&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39142&r=mysqlcfg