From 479af1e75d061cb819c7fa5676cce600a848f0e3 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 27 Sep 2004 17:30:46 +0000 Subject: [PATCH] Fixed bug #30249 (Incorrect timeout check). --- run-tests.php | 2 +- run-tests2.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.50.1