mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-03-24 13:02:06 +01:00
git-svn-id: http://svn.php.net/repository/pecl/rar/trunk@300084 c90b9560-bf6c-de11-be94-00142212c4b1
21 lines
383 B
PHP
21 lines
383 B
PHP
--TEST--
|
|
RarArchive has_property handler is given a closed archive
|
|
--SKIPIF--
|
|
<?php if(!extension_loaded("rar")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$f1 = dirname(__FILE__) . "/latest_winrar.rar";
|
|
$a = RarArchive::open($f1);
|
|
$a->close();
|
|
|
|
var_dump(isset($a[0]));
|
|
|
|
echo "\n";
|
|
echo "Done.\n";
|
|
--EXPECTF--
|
|
Warning: main(): The archive is already closed in %s on line %d
|
|
bool(false)
|
|
|
|
Done.
|