xref: /php-src/ext/zip/tests/zip_entry_open.phpt (revision 29f98e74)
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 since 8.0, use ZipArchive::open() instead in %s on line %d
16
17Deprecated: Function zip_read() is deprecated since 8.0, use ZipArchive::statIndex() instead in %s on line %d
18
19Deprecated: Function zip_entry_open() is deprecated since 8.0 in %s on line %d
20OK
21Deprecated: Function zip_entry_close() is deprecated since 8.0 in %s on line %d
22
23Deprecated: Function zip_close() is deprecated since 8.0, use ZipArchive::close() instead in %s on line %d
24