Doc #75073 [Opn->Ver]: date_default_timezone_set() doesn't reflect removal
| From: | cmb@php.net | Date: | Thu, 19 Mar 2020 11:34:38 +0000 |
| Subject: | Doc #75073 [Opn->Ver]: date_default_timezone_set() doesn't reflect removal | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17437@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75073&edit=1
ID: 75073
Updated by: cmb@php.net
Reported by: terrafrost@php.net
Summary: date_default_timezone_set() doesn't reflect removal
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Date/time related
Operating System: all
PHP Version: Irrelevant
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2017-08-14 04:18:24] terrafrost@php.net
Description:
------------
According to <http://php.net/manual/en/function.date-default-timezone-set.php>,
"Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time
function will generate a E_NOTICE if the timezone isn't valid, and/or a E_WARNING message if
using the system settings or the TZ environment variable.".
The changelog section of that page says that in 5.3.0 the behavior was changed to throw
"E_WARNING rather than E_STRICT".
The fact that neither is thrown as of PHP 7.0, however, is not mentioned and it seems like it ought
to be:
http://php.net/manual/en/migration70.other-changes.php
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75073&edit=1