diff options
Diffstat (limited to 'ext/zip/tests/zip_entry_filesize.phpt')
-rw-r--r-- | ext/zip/tests/zip_entry_filesize.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/zip/tests/zip_entry_filesize.phpt b/ext/zip/tests/zip_entry_filesize.phpt new file mode 100644 index 0000000..b8d8820 --- /dev/null +++ b/ext/zip/tests/zip_entry_filesize.phpt @@ -0,0 +1,23 @@ +--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 |