mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
17 lines
390 B
PHP
17 lines
390 B
PHP
--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);
|
|
try {
|
|
$a = mktime(1, 1, 1, 1, 1, 11111111111);
|
|
} catch (TypeError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
mktime() expects parameter 6 to be int, float given
|