mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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.
23 lines
597 B
PHP
23 lines
597 B
PHP
--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');
|
|
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
|
|
if (PHP_ZTS) die("skip only for no-zts build");
|
|
if (substr(PHP_OS, 0, 3) == 'WIN') die("skip not for Windows");
|
|
?>
|
|
--INI--
|
|
memory_limit=1G
|
|
max_execution_time=1
|
|
hard_timeout=1
|
|
--FILE--
|
|
<?php
|
|
$a1 = range(1, 3000000);
|
|
$a2 = range(100000, 3999999);
|
|
array_intersect($a1, $a2);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Maximum execution time of 1+1 seconds exceeded %s
|