1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 06:21:12 +02:00
Files
archived-php-src/ext/zip/tests/zip_entry_open.phpt
Máté Kocsis f3b1f342c8 Deprecate the procedural API of ext/zip
Closes GH-5746
2020-06-23 17:39:29 +02:00

26 lines
642 B
PHP

--TEST--
zip_entry_open() function
--SKIPIF--
<?php
if(!extension_loaded('zip')) die('skip');
?>
--FILE--
<?php
$zip = zip_open(__DIR__."/test_procedural.zip");
$entry = zip_read($zip);
echo zip_entry_open($zip, $entry, "r") ? "OK" : "Failure";
zip_entry_close($entry);
zip_close($zip);
?>
--EXPECTF--
Deprecated: Function zip_open() is deprecated in %s on line %d
Deprecated: Function zip_read() is deprecated in %s on line %d
Deprecated: Function zip_entry_open() is deprecated in %s on line %d
OK
Deprecated: Function zip_entry_close() is deprecated in %s on line %d
Deprecated: Function zip_close() is deprecated in %s on line %d