mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
ce1d69a1f6
PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
13 lines
347 B
PHP
13 lines
347 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);
|
|
$a = mktime(1, 1, 1, 1, 1, 11111111111);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: mktime() expects parameter 6 to be int, float given in %s on line %d
|