mirror of
https://github.com/php/php-src.git
synced 2025-01-07 03:13:33 +08:00
22 lines
347 B
PHP
22 lines
347 B
PHP
--TEST--
|
|
zip_read() function
|
|
--SKIPIF--
|
|
<?php
|
|
/* $Id$ */
|
|
if(!extension_loaded('zip')) die('skip');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
|
|
if (!is_resource($zip)) die("Failure");
|
|
$entries = 0;
|
|
while ($entry = zip_read($zip)) {
|
|
$entries++;
|
|
}
|
|
zip_close($zip);
|
|
echo "$entries entries";
|
|
|
|
?>
|
|
--EXPECT--
|
|
4 entries
|