Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100221 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87272 invoked from network); 15 Aug 2017 21:54:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2017 21:54:24 -0000 X-Host-Fingerprint: 62.180.109.77 unknown Received: from [62.180.109.77] ([62.180.109.77:13445] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/9D-34801-09D63995 for ; Tue, 15 Aug 2017 17:54:24 -0400 Message-ID: To: internals@lists.php.net X-Mozilla-News-Host: news://news.php.net:119 Date: Tue, 15 Aug 2017 23:54:20 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 62.180.109.77 Subject: Slow DateTimeZone::getTransitions with no argument From: gmblar@gmail.com (Andreas Treichel) Hi, Is the first entry in the return value of http://php.net/manual/en/datetimezone.gettransitions.php with the timestamp PHP_INT_MIN / ZEND_LONG_MIN intended? The difference with no arguments is over 100 times slower on 64 bit systems: DateTimeZone::getTransitions() Duration: 0.075577 DateTimeZone::getTransitions(-62135596800) Duration: 0.000587 https://3v4l.org/8osB8#output