xref: /PHP-7.3/ext/zip/tests/zip_entry_name.phpt (revision 0eabd523)
1--TEST--
2zip_entry_name() function
3--SKIPIF--
4<?php
5if(!extension_loaded('zip')) die('skip');
6?>
7--FILE--
8<?php
9$zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
10if (!is_resource($zip)) die("Failure");
11$entries = 0;
12while ($entry = zip_read($zip)) {
13  echo zip_entry_name($entry)."\n";
14}
15zip_close($zip);
16
17?>
18--EXPECT--
19foo
20bar
21foobar/
22foobar/baz
23