From: Ilia Alshanetsky Date: Mon, 27 Sep 2004 17:30:46 +0000 (+0000) Subject: Fixed bug #30249 (Incorrect timeout check). X-Git-Tag: PRE_NEW_VM_GEN_PATCH~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=479af1e75d061cb819c7fa5676cce600a848f0e3;p=php 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);