php-src/ext/date/tests/bug36988.phpt

13 lines
287 B
Plaintext
Raw Normal View History

--TEST--
Bug #36988 (mktime freezes on long numbers)
2006-04-11 19:34:14 +00:00
--INI--
date.timezone=GMT
--FILE--
<?php
$start = microtime(true);
$a = mktime(1, 1, 1, 1, 1, 11111111111);
echo (microtime(true) - $start) < 1 ? "smaller than one second" : "more than a second";
?>
--EXPECT--
smaller than one second