xref: /PHP-7.4/ext/zip/tests/zip_entry_open.phpt (revision 26dfce7f)
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--EXPECT--
17OK
18