#48734 [Com]: date.timezone.errors.description lacks change from E_STRICT to E_WARNING
| From: | mumumu at mumumu dot org | Date: | Tue, 30 Jun 2009 11:19:22 +0000 |
| Subject: | #48734 [Com]: date.timezone.errors.description lacks change from E_STRICT to E_WARNING | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2431@lists.php.net to get a copy of this message | ||
ID: 48734
Comment by: mumumu at mumumu dot org
Reported By: mumumu at mumumu dot org
Status: Open
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Index: en/language-snippets.ent
===================================================================
RCS file: /repository/phpdoc/en/language-snippets.ent,v
retrieving revision 1.267
diff -r1.267 language-snippets.ent
395c395
< if the time zone is not valid, and/or a <constant>E_STRICT</constant>
message
---
> if the time zone is not valid, and/or a <constant>E_STRICT</constant>
or <constant>E_WARNING</constant> message
Previous Comments:
------------------------------------------------------------------------
[2009-06-30 10:57:07] mumumu at mumumu dot org
Description:
------------
On the latest date/time related documentation, it has error/exception
description as follows, in language-snippets.ent's
date.timezone.errors.description.
"Every call to a date/time function will generate a E_NOTICE if the
time zone is not valid, and/or a E_STRICT message if using the system
settings or the TZ environment variable. See also
date_default_timezone_set()"
Strictly speaking, this is not valid. From PHP 5.3.0 RC1, date/time
related functions emits not E_STRICT but E_WARNING.
Yes, This change is explained in date_default_timezone_set function,
but we should change this generic error description because this change
will affects all date/time related functions, I think.
Reproduce code:
---------------
for example, strtotime function's "Errors/Exceptions" section.
http://www.php.net/manual/en/function.strtotime.php
Expected result:
----------------
Every call to a date/time function will generate a E_NOTICE if the time
zone is not valid, and/or a E_STRICT or E_WARNING message if using the
system settings or the TZ environment variable. See also
date_default_timezone_set()
Actual result:
--------------
Every call to a date/time function will generate a E_NOTICE if the time
zone is not valid, and/or a E_STRICT message if using the system
settings or the TZ environment variable. See also
date_default_timezone_set()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48734&edit=1