summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug36988.phpt
blob: ab0f3a3c8a7d554a6080bc168e2a92f3f066cf87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #36988 (mktime freezes on long numbers)
--SKIPIF--
<?php if (PHP_INT_SIZE != 4) echo "skip this test is for 32-bit only"; ?>
--FILE--
<?php
date_default_timezone_set('GMT');
$start = microtime(true);
$a = mktime(1, 1, 1, 1, 1, 11111111111);
?>
--EXPECTF--
Warning: mktime() expects parameter 6 to be int, float given in %s on line %d