From 9aa1cce14659b8e5d3a92aebbcf2d6a7cb9e630c Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Tue, 15 Jul 2003 17:05:03 +0000 Subject: [PATCH] MFH --- ext/standard/tests/file/proc_open01.phpt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ext/standard/tests/file/proc_open01.phpt b/ext/standard/tests/file/proc_open01.phpt index ab41a35819..d1e066e092 100644 --- a/ext/standard/tests/file/proc_open01.phpt +++ b/ext/standard/tests/file/proc_open01.phpt @@ -4,8 +4,12 @@ proc_open() regression test 1 (proc_open() leak) array('pipe', 'r'), 1 => array('pipe', 'w')), $pipes ); @@ -19,7 +23,12 @@ fwrite($pipes[0], $test_string); fflush($pipes[0]); fclose($pipes[0]); $cnt = ''; +$n=0; for ($left = strlen($test_string); $left > 0;) { + if (++$n >1000) { + print "terminated after 1000 iterations\n"; + break; + } $read_fds = array($pipes[1]); $retval = stream_select($read_fds, $write_fds = NULL, $exp_fds = NULL, 1); if ($retval === false) { -- 2.40.0