xref: /PHP-7.0/ext/zip/tests/zip_read.phpt (revision 664d102a)
1--TEST--
2zip_read() function
3--SKIPIF--
4<?php
5/* $Id$ */
6if(!extension_loaded('zip')) die('skip');
7?>
8--FILE--
9<?php
10$zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
11if (!is_resource($zip)) die("Failure");
12$entries = 0;
13while ($entry = zip_read($zip)) {
14  $entries++;
15}
16zip_close($zip);
17echo "$entries entries";
18
19?>
20--EXPECT--
214 entries
22