com php-src: fix test cleanup: Zend/tests/bug38779_ 1.phpt

From: Date: Wed, 12 Nov 2014 17:05:24 +0000
Subject: com php-src: fix test cleanup: Zend/tests/bug38779_ 1.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83069@lists.php.net to get a copy of this message
Commit: 29b28f7ce617c41be09db6f40fdc26e782bb882e Author: Anatol Belski <ab@php.net> Wed, 12 Nov 2014 18:05:24 +0100 Parents: d7a00464686b5f4009a2248e9b010737c19cb13a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=29b28f7ce617c41be09db6f40fdc26e782bb882e Log: fix test cleanup this could leave garbage after it as the test file is removed in flush (the fd could still be opened) Changed paths: M Zend/tests/bug38779_1.phpt Diff: diff --git a/Zend/tests/bug38779_1.phpt b/Zend/tests/bug38779_1.phpt index eefa952..e2a5b20 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!"

« previous php.cvs (#83069) next »