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