mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-04-24 04:48:05 +02:00
5d1aafd746
git-svn-id: http://svn.php.net/repository/pecl/rar/trunk@300084 c90b9560-bf6c-de11-be94-00142212c4b1
29 lines
506 B
PHP
29 lines
506 B
PHP
--TEST--
|
|
rar_close is called twice
|
|
--SKIPIF--
|
|
<?php if(!extension_loaded("rar")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$f1 = dirname(__FILE__) . "/latest_winrar.rar";
|
|
$a = RarArchive::open($f1);
|
|
|
|
echo $a."\n";
|
|
|
|
$a->close();
|
|
echo $a."\n";
|
|
|
|
$a->close();
|
|
echo $a."\n";
|
|
|
|
echo "\n";
|
|
echo "Done.\n";
|
|
--EXPECTF--
|
|
RAR Archive "%slatest_winrar.rar"
|
|
RAR Archive "%slatest_winrar.rar" (closed)
|
|
|
|
Warning: RarArchive::close(): The archive is already closed in %s on line %d
|
|
RAR Archive "%slatest_winrar.rar" (closed)
|
|
|
|
Done.
|