summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-07-13 20:14:44 +0200
committerAnatol Belski <ab@php.net>2018-07-13 20:14:44 +0200
commitdee191ee07193d0f24188f7e0a60697dab1bcb0a (patch)
treefeda69044cddb6b65e2dc35eecab92228e299fc0
parentf28aeaee057dcf4593bae3572c6fc8febaff6d72 (diff)
parent141072a838b32f4eba33166666209508ef36ccba (diff)
downloadphp-git-dee191ee07193d0f24188f7e0a60697dab1bcb0a.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Improve test
-rw-r--r--ext/zip/tests/bug76524.phpt5
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);