From: Ilia Alshanetsky Date: Mon, 27 Sep 2004 17:30:47 +0000 (+0000) Subject: MFH: Fixed bug #30249 (Incorrect timeout check). X-Git-Tag: php-5.0.3RC1~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96184fe715ae7918110992d33b7debea1a198ad4;p=php MFH: Fixed bug #30249 (Incorrect timeout check). --- diff --git a/run-tests.php b/run-tests.php index e2073876c3..d6cfdca356 100755 --- a/run-tests.php +++ b/run-tests.php @@ -620,7 +620,7 @@ function system_with_timeout($commandline) $e = null; $n = @stream_select($r, $w, $e, 60); - if ($n == 0) { + if ($n === 0) { /* timed out */ $data .= "\n ** ERROR: process timed out **\n"; proc_terminate($proc); diff --git a/run-tests2.php b/run-tests2.php index 10ecaa4cc7..b214ea0c78 100644 --- a/run-tests2.php +++ b/run-tests2.php @@ -204,7 +204,7 @@ function execute($command, $args=NULL, $input=NULL, $cwd=NULL, $env=NULL) $e = null; $n = @stream_select($r, $w, $e, 60); - if ($n == 0) { + if ($n === 0) { /* timed out */ $data .= "\n ** ERROR: process timed out **\n"; proc_terminate($proc);