[PHP-NOTES] note 130485 added to migration82.incompatible

[email protected] ("[email protected]") Tue, 16 Sep 2025 14:33:37 +0000
Newsgroups php.notes
Message-ID <[email protected]>
Another backward incompatible change, not mentioned in the docs, is that function `date_default_timezone_get()` no longer returns current time zone.

Prior to 8.2, this function returned:
- Time zone set by `date_default_timezone_set()` (if set).
- Time zone specified in `date.timezone` (if set).
- Current time zone, if none of above applies.

From 8.2 onward, if neither of the first two variants applies, this function returns UTC. This breaks scenarios where current time zone shall be used.

See <https://github.com/php/php-src/issues/11496> for discussion.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 81.3.176.222)
----
Manual Page -- https://php.net/manual/en/migration82.incompatible.php
Edit        -- https://main.php.net/note/edit/130485
Del: integrated  -- https://main.php.net/note/delete/130485/integrated
Del: useless     -- https://main.php.net/note/delete/130485/useless
Del: bad code    -- https://main.php.net/note/delete/130485/bad+code
Del: spam        -- https://main.php.net/note/delete/130485/spam
Del: non-english -- https://main.php.net/note/delete/130485/non-english
Del: in docs     -- https://main.php.net/note/delete/130485/in+docs
Del: other reasons-- https://main.php.net/note/delete/130485
Reject      -- https://main.php.net/note/reject/130485
Search      -- https://main.php.net/manage/user-notes.php