]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #30249 (Incorrect timeout check).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 27 Sep 2004 17:30:47 +0000 (17:30 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 27 Sep 2004 17:30:47 +0000 (17:30 +0000)
run-tests.php
run-tests2.php

index e2073876c35587a21b3424937a993dba37928b29..d6cfdca3561f026fffc93857a06f0b9c778a6616 100755 (executable)
@@ -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);
index 10ecaa4cc7eb2f3d5a8646adbc98ba872c34717f..b214ea0c7852261bcf9e387ace995aa9e47c5941 100644 (file)
@@ -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);