diff options
author | Anatol Belski <ab@php.net> | 2018-07-13 20:14:44 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-07-13 20:14:44 +0200 |
commit | dee191ee07193d0f24188f7e0a60697dab1bcb0a (patch) | |
tree | feda69044cddb6b65e2dc35eecab92228e299fc0 /ext/zip/tests | |
parent | f28aeaee057dcf4593bae3572c6fc8febaff6d72 (diff) | |
parent | 141072a838b32f4eba33166666209508ef36ccba (diff) | |
download | php-git-dee191ee07193d0f24188f7e0a60697dab1bcb0a.tar.gz |
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Improve test
Diffstat (limited to 'ext/zip/tests')
-rw-r--r-- | ext/zip/tests/bug76524.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/zip/tests/bug76524.phpt b/ext/zip/tests/bug76524.phpt index f28bfc13f2..e087015c3c 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); |