summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug36988.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/bug36988.phpt')
-rw-r--r--ext/date/tests/bug36988.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/date/tests/bug36988.phpt b/ext/date/tests/bug36988.phpt
new file mode 100644
index 0000000..c37d1fb
--- /dev/null
+++ b/ext/date/tests/bug36988.phpt
@@ -0,0 +1,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