diff options
-rw-r--r-- | ext/standard/tests/array/bug76778.phpt | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/ext/standard/tests/array/bug76778.phpt b/ext/standard/tests/array/bug76778.phpt index e213961ce2..60f42b744d 100644 --- a/ext/standard/tests/array/bug76778.phpt +++ b/ext/standard/tests/array/bug76778.phpt @@ -1,24 +1,16 @@ --TEST-- Bug #76778 (array_reduce leaks memory if callback throws exception) ---SKIPIF-- -<?php -if (getenv("SKIP_SLOW_TESTS")) die('skip slow test'); -?> ---INI-- -memory_limit=128M --FILE-- <?php -for ($i = 0; $i < 100; $i++) { - try { - array_reduce( - [1], - function ($carry, $item) { - throw new Exception; - }, - range(1, 200000) - ); - } catch (Exception $e) { - } +try { + array_reduce( + [1], + function ($carry, $item) { + throw new Exception; + }, + range(1, 3) + ); +} catch (Exception $e) { } ?> ===DONE=== |