1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00
Files
archived-php-src/ext/zip/tests/bug72660.phpt

22 lines
359 B
PHP

--TEST--
Bug #72660 (NULL Pointer dereference in zend_virtual_cwd)
--EXTENSIONS--
zip
--SKIPIF--
<?php
if(!PHP_ZTS) { 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