1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

[skip ci] Harden bug74093.phpt

Rarely fails with "Maximum execution time of 1 seconds exceeded" due to being
too fast. Increase the compared arrays and mark as FLAKY, given this is
inherently dependent on processing speed.
This commit is contained in:
Ilija Tovilo
2026-03-22 01:54:55 +01:00
parent 0f544b0406
commit 486c09cd68

View File

@@ -1,5 +1,6 @@
--TEST--
Bug #74093 (Maximum execution time of n+2 seconds exceed not written in error_log)
--FLAKY--
--SKIPIF--
<?php
if (!getenv('RUN_RESOURCE_HEAVY_TESTS')) die('skip resource-heavy test');
@@ -13,8 +14,8 @@ max_execution_time=1
hard_timeout=1
--FILE--
<?php
$a1 = range(1, 2000000);
$a2 = range(100000, 2999999);
$a1 = range(1, 3000000);
$a2 = range(100000, 3999999);
array_intersect($a1, $a2);
?>
--EXPECTF--