mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +08:00
24 lines
367 B
PHP
24 lines
367 B
PHP
--TEST--
|
|
zip_entry_name() function
|
|
--SKIPIF--
|
|
<?php
|
|
/* $Id$ */
|
|
if(!extension_loaded('zip')) die('skip');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
|
|
if (!is_resource($zip)) die("Failure");
|
|
$entries = 0;
|
|
while ($entry = zip_read($zip)) {
|
|
echo zip_entry_name($entry)."\n";
|
|
}
|
|
zip_close($zip);
|
|
|
|
?>
|
|
--EXPECT--
|
|
foo
|
|
bar
|
|
foobar/
|
|
foobar/baz
|