Bug #75073 [NEW]: date_default_timezone_set() doesn't reflect removal
| From: | terrafrost@php.net | Date: | Mon, 14 Aug 2017 04:18:27 +0000 |
| Subject: | Bug #75073 [NEW]: date_default_timezone_set() doesn't reflect removal | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-14894@lists.php.net to get a copy of this message | ||
From: terrafrost
Operating system: all
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Bug
Bug description:date_default_timezone_set() doesn't reflect removal
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 bug report at https://bugs.php.net/bug.php?id=75073&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75073&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75073&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75073&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75073&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75073&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75073&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75073&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75073&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75073&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75073&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75073&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75073&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75073&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75073&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75073&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75073&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75073&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75073&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75073&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75073&r=mysqlcfg