xref: /PHP-8.1/ext/zip/tests/zip_read.phpt (revision 74859783)
1--TEST--
2zip_read() 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  $entries++;
12}
13zip_close($zip);
14echo "$entries entries";
15
16?>
17--EXPECTF--
18Deprecated: Function zip_open() is deprecated in %s on line %d
19
20Deprecated: Function zip_read() is deprecated in %s on line %d
21
22Deprecated: Function zip_read() is deprecated in %s on line %d
23
24Deprecated: Function zip_read() is deprecated in %s on line %d
25
26Deprecated: Function zip_read() is deprecated in %s on line %d
27
28Deprecated: Function zip_read() is deprecated in %s on line %d
29
30Deprecated: Function zip_close() is deprecated in %s on line %d
314 entries
32