summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug36988.phpt
blob: c37d1fb768fd0eed429cc3bd59d89beba5f447aa (plain)
1
2
3
4
5
6
7
8
9
10
11
--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