|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-07-29 11:36 UTC] greenrover33 at gmail dot com
-PHP Version: 5.5.15
+PHP Version: 5.6Git-2014-07-29 (Git)
[2014-07-29 11:36 UTC] greenrover33 at gmail dot com
[2014-07-29 14:29 UTC] derick@php.net
-Assigned To:
+Assigned To: derick
[2014-07-29 14:29 UTC] derick@php.net
[2017-10-24 08:13 UTC] kalle@php.net
-Status: Assigned
+Status: Open
-Assigned To: derick
+Assigned To:
[2021-01-25 13:36 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2021-01-25 13:36 UTC] cmb@php.net
[2021-04-05 15:52 UTC] derick@php.net
-Status: Verified
+Status: Not a bug
[2021-04-05 15:52 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 04:00:02 2025 UTC |
Description: ------------ This ts is empty. Because its a to high/low number. [ts] => -9223372036854775808 === empty($ts->ts) [ts] => -9223372036854775808 === !isset($ts->ts) Test script: --------------- <?PHP $tz = new DateTimeZone('Europe/Berlin'); foreach ($tz->getTransitions() as $ts) { if (empty($ts->ts)) { echo "HRERE is the bug\n"; print_r($ts); echo "\n\nfull log:\n"; print_r($tz->getTransitions()); die(); } } echo "The bug was fixed"; die(); Expected result: ---------------- First row is: Array ( [ts] => -9223372036854775808 [time] => -292277022657-01-27T08:29:52+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) Actual result: -------------- First row should be: Array ( [ts] => -1693706400 [time] => 1916-04-30T22:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST )