xref: /php-src/ext/zip/tests/zip_read.phpt (revision 29f98e74)
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 since 8.0, use ZipArchive::open() instead in %s on line %d
19
20Deprecated: Function zip_read() is deprecated since 8.0, use ZipArchive::statIndex() instead in %s on line %d
21
22Deprecated: Function zip_read() is deprecated since 8.0, use ZipArchive::statIndex() instead in %s on line %d
23
24Deprecated: Function zip_read() is deprecated since 8.0, use ZipArchive::statIndex() instead in %s on line %d
25
26Deprecated: Function zip_read() is deprecated since 8.0, use ZipArchive::statIndex() instead in %s on line %d
27
28Deprecated: Function zip_read() is deprecated since 8.0, use ZipArchive::statIndex() instead in %s on line %d
29
30Deprecated: Function zip_close() is deprecated since 8.0, use ZipArchive::close() instead in %s on line %d
314 entries
32