com php-src: Improve test: ext/zip/tests/bug76524.phpt

From: Date: Fri, 13 Jul 2018 18:13:51 +0000
Subject: com php-src: Improve test: ext/zip/tests/bug76524.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102546@lists.php.net to get a copy of this message
Commit: 141072a838b32f4eba33166666209508ef36ccba Author: Anatol Belski <ab@php.net> Fri, 13 Jul 2018 20:13:51 +0200 Parents: 99fe18503ad61472ef8f4009a9234bfc2571d027 Branches: PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=141072a838b32f4eba33166666209508ef36ccba Log: Improve test Ensure the filename is non existent indeed. Changed paths: M ext/zip/tests/bug76524.phpt Diff: diff --git a/ext/zip/tests/bug76524.phpt b/ext/zip/tests/bug76524.phpt index f28bfc1..e087015 100644 --- a/ext/zip/tests/bug76524.phpt +++ b/ext/zip/tests/bug76524.phpt @@ -7,7 +7,10 @@ if(!extension_loaded('zip')) die('skip'); --FILE-- <?php -$filename = __DIR__ . '/nonexistent.zip'; +$i = 0; +do { + $filename = __DIR__ . "/nonexistent" . ($i++) . ".zip"; +} while (file_exists($filename)); $zip = new ZipArchive(); $zip->open($filename, ZipArchive::CREATE | ZipArchive::OVERWRITE);

« previous php.cvs (#102546) next »