#48734 [Opn->Csd]: date.timezone.errors.description lacks change from E_STRICT to E_WARNING

From: Date: Tue, 30 Jun 2009 11:43:33 +0000
Subject: #48734 [Opn->Csd]: 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-2432@lists.php.net to get a copy of this message
ID: 48734 Updated by: takagi@php.net Reported By: mumumu at mumumu dot org -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Irrelevant PHP Version: Irrelevant New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2009-06-30 11:19:21] 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 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

« previous php.doc.bugs (#2432) next »