mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-03-26 05:52:06 +01:00
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
15 lines
270 B
PHP
15 lines
270 B
PHP
--TEST--
|
|
RarArchive::open() basic test
|
|
--SKIPIF--
|
|
<?php if(!extension_loaded("rar")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$arch = RarArchive::open(dirname(__FILE__) . "/dirlink_unix.rar");
|
|
var_dump(get_class($arch));
|
|
|
|
|
|
echo "Done\n";
|
|
--EXPECTF--
|
|
string(10) "RarArchive"
|
|
Done
|