xref: /PHP-8.3/ext/zip/tests/zip_entry_name.phpt (revision 74859783)
1--TEST--
2zip_entry_name() function
3--EXTENSIONS--
4zip
5--FILE--
6<?php
7$zip = zip_open(__DIR__."/test_procedural.zip");
8if (!is_resource($zip)) die("Failure");
9$entries = 0;
10while ($entry = zip_read($zip)) {
11  echo zip_entry_name($entry)."\n";
12}
13zip_close($zip);
14
15?>
16--EXPECTF--
17Deprecated: Function zip_open() is deprecated in %s on line %d
18
19Deprecated: Function zip_read() is deprecated in %s on line %d
20
21Deprecated: Function zip_entry_name() is deprecated in %s on line %d
22foo
23
24Deprecated: Function zip_read() is deprecated in %s on line %d
25
26Deprecated: Function zip_entry_name() is deprecated in %s on line %d
27bar
28
29Deprecated: Function zip_read() is deprecated in %s on line %d
30
31Deprecated: Function zip_entry_name() is deprecated in %s on line %d
32foobar/
33
34Deprecated: Function zip_read() is deprecated in %s on line %d
35
36Deprecated: Function zip_entry_name() is deprecated in %s on line %d
37foobar/baz
38
39Deprecated: Function zip_read() is deprecated in %s on line %d
40
41Deprecated: Function zip_close() is deprecated in %s on line %d
42