|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-12-22 14:01 UTC] for-bugs at hnw dot jp
[2009-03-10 18:55 UTC] mmcnicklebugs at googlemail dot com
[2009-03-10 22:41 UTC] scottmac@php.net
[2009-03-22 00:15 UTC] for-bugs at hnw dot jp
[2009-06-25 04:33 UTC] for-bugs at hnw dot jp
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 16:00:02 2025 UTC |
Description: ------------ when it gots very small 3rd argument, mktime() performs 1000 times slower than ordinary case. Reproduce code: --------------- <?php $mt0 = microtime(true); for($i=0;$i<10;$i++){ $unixtime = mktime(9,0,-2147483647,1,1,1970); } $mt1 = microtime(true); for($i=0;$i<10;$i++){ $unixtime = mktime(9,0,2147483646,1,1,1970); } $mt2 = microtime(true); printf("%.6f\n%.6f\n", $mt1-$mt0, $mt2-$mt1); // This will output // 5.139942 // 0.000707 // on my machine Actual result: -------------- see reproduce code