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: 2021-01-15 14:45 UTC
From: terrafrost@php.net Assigned: cmb (profile)
Status: Closed Package: Date/time related
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
36 - 14 = ?
Subscribe to this entry?

 
 [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
 [2021-01-15 14:45 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2021-01-15 14:45 UTC] cmb@php.net
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
 [2021-01-15 14:45 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2021-01-15 21:05 UTC] mumumu@php.net
Automatic comment on behalf of mumumu@mumumu.org
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=c5325fd10e692a0c6df87a6ace7dceba1f6267d0
Log: Fix #75073: date_default_timezone_set() doesn't reflect removal
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 05:01:29 2024 UTC