php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48734 date.timezone.errors.description lacks change from E_STRICT to E_WARNING
Submitted: 2009-06-30 10:57 UTC Modified: 2009-06-30 11:43 UTC
From: mumumu at mumumu dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2009-06-30 10:57 UTC] 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()

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-30 11:19 UTC] mumumu at mumumu dot org
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
 [2009-06-30 11:43 UTC] takagi@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of takagi
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=bf16ceeacd717a01f8b0b2a3f0c039caa4e7097d
Log: fixed Bug #48734.
 [2020-12-30 11:59 UTC] nikic@php.net
Automatic comment on behalf of takagi
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=39a30906b829ff8e1a3eb588842b96e8790a569d
Log: fixed Bug #48734.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 07 11:01:27 2024 UTC