Skip to content

Commit 486c09c

Browse files
committed
[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.
1 parent 0f544b0 commit 486c09c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Zend/tests/bug74093.phpt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
--TEST--
22
Bug #74093 (Maximum execution time of n+2 seconds exceed not written in error_log)
3+
--FLAKY--
34
--SKIPIF--
45
<?php
56
if (!getenv('RUN_RESOURCE_HEAVY_TESTS')) die('skip resource-heavy test');
@@ -13,8 +14,8 @@ max_execution_time=1
1314
hard_timeout=1
1415
--FILE--
1516
<?php
16-
$a1 = range(1, 2000000);
17-
$a2 = range(100000, 2999999);
17+
$a1 = range(1, 3000000);
18+
$a2 = range(100000, 3999999);
1819
array_intersect($a1, $a2);
1920
?>
2021
--EXPECTF--

0 commit comments

Comments
 (0)