xref: /PHP-8.3/ext/zip/tests/zip_entry_open.phpt (revision 74859783)
1--TEST--
2zip_entry_open() function
3--EXTENSIONS--
4zip
5--FILE--
6<?php
7$zip    = zip_open(__DIR__."/test_procedural.zip");
8$entry  = zip_read($zip);
9echo zip_entry_open($zip, $entry, "r") ? "OK" : "Failure";
10zip_entry_close($entry);
11zip_close($zip);
12
13?>
14--EXPECTF--
15Deprecated: Function zip_open() is deprecated in %s on line %d
16
17Deprecated: Function zip_read() is deprecated in %s on line %d
18
19Deprecated: Function zip_entry_open() is deprecated in %s on line %d
20OK
21Deprecated: Function zip_entry_close() is deprecated in %s on line %d
22
23Deprecated: Function zip_close() is deprecated in %s on line %d
24