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

index cc4c8b87b675fdaab058089d659fb423ade01713..88354c15c6f732b8327e4911985ca440191db035 100644 (file)
@@ -57,12 +57,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