]> granicus.if.org Git - php/commitdiff
make sure the test outputs what we want
authorNuno Lopes <nlopess@php.net>
Tue, 20 Jun 2006 21:49:16 +0000 (21:49 +0000)
committerNuno Lopes <nlopess@php.net>
Tue, 20 Jun 2006 21:49:16 +0000 (21:49 +0000)
ext/standard/tests/file/bug37864.phpt

index bb97cef7e20ac0ccd0870ca7f6800404a70be8e6..d74647cc7993943de71665a2acb647d500816e5f 100644 (file)
@@ -3,8 +3,10 @@ Bug #37864 (file_get_contents() leaks on empty file)
 --FILE--
 <?php
        $tmpfname = tempnam("/tmp", "emptyfile");
-       echo file_get_contents($tmpfname), "done.";
+       var_dump(file_get_contents($tmpfname));
+       echo "done.\n";
        unlink($tmpfname);
 ?>
 --EXPECT--
+string(0) ""
 done.