xref: /PHP-8.4/ext/date/tests/bug36988.phpt (revision b7860cd5)
1--TEST--
2Bug #36988 (mktime freezes on long numbers)
3--SKIPIF--
4<?php if (PHP_INT_SIZE != 4) echo "skip this test is for 32-bit only"; ?>
5--FILE--
6<?php
7date_default_timezone_set('GMT');
8$start = microtime(true);
9try {
10    $a = mktime(1, 1, 1, 1, 1, 11111111111);
11} catch (TypeError $e) {
12    echo $e::class, ': ', $e->getMessage(), "\n";
13}
14?>
15--EXPECT--
16TypeError: mktime(): Argument #6 ($year) must be of type ?int, float given
17