xref: /php-src/ext/zip/tests/bug72660.phpt (revision 90800b62)
1--TEST--
2Bug #72660 (NULL Pointer dereference in zend_virtual_cwd)
3--EXTENSIONS--
4zip
5--SKIPIF--
6<?php
7if(!PHP_ZTS) { die('skip ZTS required'); }
8?>
9--FILE--
10<?php
11$zip = new ZipArchive();
12$zip->open(__DIR__ . "/bug72660.zip", ZIPARCHIVE::CREATE);
13$zip->addPattern("/noexists/");
14?>
15okey
16--CLEAN--
17<?php
18@unlink(__DIR__ . "/bug72660.zip");
19?>
20--EXPECT--
21okey
22