#37486 [NEW]: Docs do not reflect E_STRICT warning
| From: | brianm-phpbugs at dealnews dot com | Date: | Thu, 18 May 2006 04:00:11 +0000 |
| Subject: | #37486 [NEW]: Docs do not reflect E_STRICT warning | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969373051@lists.php.net to get a copy of this message | ||
From: brianm-phpbugs at dealnews dot com
Operating system: Linux
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Docs do not reflect E_STRICT warning
Description:
------------
Enabling E_STRICT and using strtotime() yields this error:
Strict Standards: strftime() [function.strftime]: It is not safe to rely
on the system's timezone settings. Please use the date.timezone setting,
the TZ environment variable or the date_default_timezone_set() function.
We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in
/www/dev.phorum/phorum5-dev/include/format_functions.php on line 157
However, the docs at http://us3.php.net/function.strftime/ make no
mention
of this. I believe if you are going to throw warnings for things in
E_STRICT, it should at least be documented.
Reproduce code:
---------------
use strtotime() without setting a timezone in php.ini
Expected result:
----------------
Documentation would have headed this warning.
Actual result:
--------------
No docs about this being a possible problem.
--
Edit bug report at http://bugs.php.net/?id=37486&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37486&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37486&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37486&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37486&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37486&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37486&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37486&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37486&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37486&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37486&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37486&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37486&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37486&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37486&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37486&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37486&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37486&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37486&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37486&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37486&r=mysqlcfg