xref: /PHP-8.3/ext/zip/tests/zip_entry_read.phpt (revision 74859783)
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 in %s on line %d
17
18Deprecated: Function zip_read() is deprecated in %s on line %d
19
20Deprecated: Function zip_entry_open() is deprecated in %s on line %d
21
22Deprecated: Function zip_entry_read() is deprecated in %s on line %d
23foo
24
25
26Deprecated: Function zip_entry_close() is deprecated in %s on line %d
27
28Deprecated: Function zip_close() is deprecated in %s on line %d
29