On Tue, 15 Jul 2003, Hartmut Holzgraefe wrote:
> Index: php-src/ext/standard/tests/file/proc_open01.phpt
> diff -u php-src/ext/standard/tests/file/proc_open01.phpt:1.1
> php-src/ext/standard/tests/file/proc_open01.phpt:1.2
> --- php-src/ext/standard/tests/file/proc_open01.phpt:1.1 Sun Jul 13 04:03:46
> 2003
> +++ php-src/ext/standard/tests/file/proc_open01.phpt Tue Jul 15 12:55:44 2003
> @@ -19,7 +23,12 @@
> 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) {
Please take take of the whitespace issues.
regards,
Derick
--
"Interpreting what the GPL actually means is a job best left to those
that read the future by examining animal entrails."
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
International PHP Magazine http://php-mag.net/
-------------------------------------------------------------------------
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php