mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
23 lines
306 B
PHP
23 lines
306 B
PHP
--TEST--
|
|
zip::close() function
|
|
--EXTENSIONS--
|
|
zip
|
|
--FILE--
|
|
<?php
|
|
|
|
$dirname = __DIR__ . '/';
|
|
$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
|