xref: /PHP-8.0/ext/zip/tests/zip_entry_open.phpt (revision f3b1f342)
1--TEST--
2zip_entry_open() 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);
11echo zip_entry_open($zip, $entry, "r") ? "OK" : "Failure";
12zip_entry_close($entry);
13zip_close($zip);
14
15?>
16--EXPECTF--
17Deprecated: Function zip_open() is deprecated in %s on line %d
18
19Deprecated: Function zip_read() is deprecated in %s on line %d
20
21Deprecated: Function zip_entry_open() is deprecated in %s on line %d
22OK
23Deprecated: Function zip_entry_close() is deprecated in %s on line %d
24
25Deprecated: Function zip_close() is deprecated in %s on line %d
26