Annotation of embedaddon/php/ext/zip/tests/zip_entry_filesize.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: zip_entry_filesize() function
! 3: --SKIPIF--
! 4: <?php
! 5: /* $Id: zip_entry_filesize.phpt 260091 2008-05-21 09:27:41Z pajoye $ */
! 6: if(!extension_loaded('zip')) die('skip');
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10: $zip = zip_open(dirname(__FILE__)."/test_procedural.zip");
! 11: if (!is_resource($zip)) die("Failure");
! 12: $entries = 0;
! 13: while ($entry = zip_read($zip)) {
! 14: echo zip_entry_filesize($entry)."\n";
! 15: }
! 16: zip_close($zip);
! 17:
! 18: ?>
! 19: --EXPECT--
! 20: 5
! 21: 4
! 22: 0
! 23: 27
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>