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