]> granicus.if.org Git - php/commitdiff
fix test cleanup
authorAnatol Belski <ab@php.net>
Wed, 12 Nov 2014 17:05:24 +0000 (18:05 +0100)
committerAnatol Belski <ab@php.net>
Wed, 12 Nov 2014 17:05:24 +0000 (18:05 +0100)
this could leave garbage after it as the test file is removed in
flush (the fd could still be opened)

Zend/tests/bug38779_1.phpt

index eefa952e366b63b5d9c755f70b3c38045bfc055a..e2a5b208c6c99c24417335a6b42eccc4d0cb8420 100644 (file)
@@ -39,6 +39,14 @@ include $filename;
 
 echo "Done\n";
 ?>
+--CLEAN--
+<?php
+
+$filename = dirname(__FILE__)."/bug38779.txt";
+if (file_exists($filename)) {
+       @unlink(dirname(__FILE__)."/bug38779.txt");
+}
+?>
 --EXPECTF--    
 Parse error: %s error%sin %s on line %d
 string(6) "flush!"