php-src/ext/zip/tests/oo_close.phpt
Peter Kokot 0eabd5231b Remove unused Git ident attributes from zip extension
$Id attributes were used with SVN. With Git most of the Git ident
attributes in source code files are not used anymore.
2018-07-27 15:49:34 +02:00

24 lines
347 B
PHP

--TEST--
zip::close() function
--SKIPIF--
<?php
if(!extension_loaded('zip')) die('skip');
?>
--FILE--
<?php
$dirname = dirname(__FILE__) . '/';
$zip = new ZipArchive;
if (!$zip->open($dirname . 'test.zip')) {
exit('failed');
}
if ($zip->status == ZIPARCHIVE::ER_OK) {
$zip->close();
echo "ok\n";
} else {
echo "failed\n";
}
?>
--EXPECT--
ok