Files
php-rar/tests/006.phpt
cataphract 7da530c6e3 Added error handling with exceptions.
Introduction of RarException.
Added rar_solid_get
RarEntry and RarArchive cannot be instantiated in user space.
Quite some refactoring.

git-svn-id: http://svn.php.net/repository/pecl/rar/trunk@292412 c90b9560-bf6c-de11-be94-00142212c4b1
2009-12-21 14:04:56 +00:00

23 lines
413 B
PHP

--TEST--
RarEntry::getCrc() method in multi-volume archives (PECL bug #9470)
--SKIPIF--
<?php if(!extension_loaded("rar")) print "skip"; ?>
--FILE--
<?php
$rar_file1 = rar_open(dirname(__FILE__).'/multi.part1.rar');
$list = rar_list($rar_file1);
echo $list[0]->getCrc()."\n";
echo $list[1]->getCrc()."\n";
echo $list[2]->getCrc()."\n";
echo "\n";
echo "Done\n";
?>
--EXPECTF--
52b28202
f2c79881
bcbce32e
Done