Doc #75073 [Ver->Csd]: date_default_timezone_set() doesn't reflect removal
| From: | cmb@php.net | Date: | Fri, 15 Jan 2021 14:45:51 +0000 |
| Subject: | Doc #75073 [Ver->Csd]: date_default_timezone_set() doesn't reflect removal | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18399@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: Verified
+Status: Closed
Type: Documentation Problem
Package: Date/time related
Operating System: all
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=0a10abc50524fcbb21807b5e6ebffb3b86d45907
Log: Fix #75073: date_default_timezone_set() doesn't reflect removal
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