12345678910111213141516171819202122232425262728293031 |
- --TEST--
- zip_read() function
- --EXTENSIONS--
- zip
- --FILE--
- <?php
- $zip = zip_open(__DIR__."/test_procedural.zip");
- if (!is_resource($zip)) die("Failure");
- $entries = 0;
- while ($entry = zip_read($zip)) {
- $entries++;
- }
- zip_close($zip);
- echo "$entries entries";
- ?>
- --EXPECTF--
- Deprecated: Function zip_open() is deprecated in %s on line %d
- Deprecated: Function zip_read() is deprecated in %s on line %d
- Deprecated: Function zip_read() is deprecated in %s on line %d
- Deprecated: Function zip_read() is deprecated in %s on line %d
- Deprecated: Function zip_read() is deprecated in %s on line %d
- Deprecated: Function zip_read() is deprecated in %s on line %d
- Deprecated: Function zip_close() is deprecated in %s on line %d
- 4 entries
|