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