php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75073 date_default_timezone_set() doesn't reflect removal
Submitted: 2017-08-14 04:18 UTC Modified: 2020-03-19 11:34 UTC
From: terrafrost@php.net Assigned:
Status: Verified Package: Date/time related
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-08-14 04:18 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-01-31 10:28 UTC] vrana@php.net
-Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: Date/time related
 [2020-03-19 11:34 UTC] cmb@php.net
-Status: Open +Status: Verified
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Aug 10 01:01:25 2020 UTC