mirror of
https://github.com/php/php-src.git
synced 2024-12-12 19:33:31 +08:00
24 lines
369 B
PHP
24 lines
369 B
PHP
--TEST--
|
|
zip_entry_compressedsize() 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_compressedsize($entry)."\n";
|
|
}
|
|
zip_close($zip);
|
|
|
|
?>
|
|
--EXPECT--
|
|
5
|
|
4
|
|
0
|
|
24
|