mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
12 lines
295 B
PHP
12 lines
295 B
PHP
--TEST--
|
|
Bug #36988 (mktime freezes on long numbers)
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set('GMT');
|
|
$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
|