]> granicus.if.org Git - php/commitdiff
- Revert piece of MFH that shows an inconsistency - actually we should fix
authorMarcus Boerger <helly@php.net>
Fri, 9 Dec 2005 00:22:21 +0000 (00:22 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 9 Dec 2005 00:22:21 +0000 (00:22 +0000)
  this fread() issue.

run-tests.php

index ccf5bcd2ccad6927ff7208f4b640f8a21f2c77a4..c10beea7a2d10a660f1061bb1dc27d9ef0f243c7 100755 (executable)
@@ -784,7 +784,7 @@ function system_with_timeout($commandline)
                        return $data;
                } else if ($n > 0) {
                        $line = fread($pipes[1], 8192);
-                       if ($line === false) {
+                       if (strlen($line) == 0) {
                                /* EOF */
                                break;
                        }