]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Wed, 21 Feb 2007 22:08:08 +0000 (22:08 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 21 Feb 2007 22:08:08 +0000 (22:08 +0000)
ext/standard/tests/file/bug27508.phpt

index 5374a0dcbcf65d4537a0b237f193488caa41d32e..cc46a3e3e3607d650fb92759a9255027b0518a00 100644 (file)
@@ -54,12 +54,13 @@ debug_zval_dump(feof($fp));
 rewind($fp);
 echo ftell($fp) . "\n";
 debug_zval_dump(feof($fp));
-while (!feof($fp)) {
+while ($fp && !feof($fp)) {
     echo fgets($fp);
 }
 fclose($fp);
 
 unlink($tn);
+?>
 --EXPECT--
 bool(false) refcount(1)
 0