xref: /php-src/ext/zip/tests/zip_entry_read.phpt (revision 29f98e74)
1--TEST--
2zip_entry_read() function
3--EXTENSIONS--
4zip
5--FILE--
6<?php
7$zip    = zip_open(__DIR__."/test_procedural.zip");
8$entry  = zip_read($zip);
9if (!zip_entry_open($zip, $entry, "r")) die("Failure");
10echo zip_entry_read($entry);
11zip_entry_close($entry);
12zip_close($zip);
13
14?>
15--EXPECTF--
16Deprecated: Function zip_open() is deprecated since 8.0, use ZipArchive::open() instead in %s on line %d
17
18Deprecated: Function zip_read() is deprecated since 8.0, use ZipArchive::statIndex() instead in %s on line %d
19
20Deprecated: Function zip_entry_open() is deprecated since 8.0 in %s on line %d
21
22Deprecated: Function zip_entry_read() is deprecated since 8.0, use ZipArchive::getFromIndex() instead in %s on line %d
23foo
24
25
26Deprecated: Function zip_entry_close() is deprecated since 8.0 in %s on line %d
27
28Deprecated: Function zip_close() is deprecated since 8.0, use ZipArchive::close() instead in %s on line %d
29