From 96184fe715ae7918110992d33b7debea1a198ad4 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 27 Sep 2004 17:30:47 +0000 Subject: [PATCH] MFH: 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