summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-11-12 18:05:24 +0100
committerAnatol Belski <ab@php.net>2014-11-12 18:05:24 +0100
commit29b28f7ce617c41be09db6f40fdc26e782bb882e (patch)
tree842c45854f0d25ffc50e3f52d2839454d3ad6627 /Zend/tests
parentd7a00464686b5f4009a2248e9b010737c19cb13a (diff)
downloadphp-git-29b28f7ce617c41be09db6f40fdc26e782bb882e.tar.gz
fix test cleanup
this could leave garbage after it as the test file is removed in flush (the fd could still be opened)
Diffstat (limited to 'Zend/tests')
-rw-r--r--Zend/tests/bug38779_1.phpt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zend/tests/bug38779_1.phpt b/Zend/tests/bug38779_1.phpt
index eefa952e36..e2a5b208c6 100644
--- a/Zend/tests/bug38779_1.phpt
+++ b/Zend/tests/bug38779_1.phpt
@@ -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!"