xref: /php-src/ext/zip/tests/bug_gh8781.phpt (revision 218a93b8)
1--TEST--
2Bug GH-8781 (ZipArchive deletes zip file with no contents)
3--EXTENSIONS--
4zip
5--FILE--
6<?php
7touch($file = __DIR__ . '/bug_gh8781.zip');
8var_dump(is_file($file));
9
10$zip = new ZipArchive();
11$zip->open($file, ZipArchive::CREATE | ZipArchive::OVERWRITE);
12$zip->close();
13
14var_dump(is_file($file));
15?>
16--EXPECT--
17bool(true)
18bool(false)
19
20