From 6644bd005f94993d9e479c02ab1acd650e1181a8 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Thu, 23 Aug 2018 12:44:06 +0200 Subject: [PATCH] Simplify regression test There's no need to actually try to trigger an out-of-memory condition to proof the leak; instead we can simply rely on the Zend MM to report the memory leaks in debug mode (at least on Linux). Therefore we simplify the regression test, which also makes it run much faster. --- ext/standard/tests/array/bug76778.phpt | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/ext/standard/tests/array/bug76778.phpt b/ext/standard/tests/array/bug76778.phpt index e213961ce2d..60f42b744d9 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-- - ---INI-- -memory_limit=128M --FILE-- ===DONE===