mirror of
https://github.com/php/php-src.git
synced 2024-12-13 03:44:17 +08:00
24 lines
357 B
Plaintext
24 lines
357 B
Plaintext
|
--TEST--
|
||
|
zip_entry_filesize() 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)) {
|
||
|
echo zip_entry_filesize($entry)."\n";
|
||
|
}
|
||
|
zip_close($zip);
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
5
|
||
|
4
|
||
|
0
|
||
|
27
|