mirror of
https://github.com/php/php-src.git
synced 2024-10-21 16:33:44 +00:00
8ad0c6d543
- fix possible leak in statName and statIndex - add addEmptyDir() method - add zip_stat_init,zip_clear_error and zip_file_clear_error - add tests - Fix protos (Hannes) - setComment return value on success (Hannes)
19 lines
330 B
PHP
19 lines
330 B
PHP
--TEST--
|
|
zip_entry_open() function
|
|
--SKIPIF--
|
|
<?php
|
|
/* $Id$ */
|
|
if(!extension_loaded('zip')) die('skip');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
|
|
$entry = zip_read($zip);
|
|
echo zip_entry_open($zip, $entry, "r") ? "OK" : "Failure";
|
|
zip_entry_close($entry);
|
|
zip_close($zip);
|
|
|
|
?>
|
|
--EXPECT--
|
|
OK
|