mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-04-28 06:43:13 +02:00
dff57d32cb
- Fixed handling of archives with no entries. - Removed trailing full stops from some error messages. - Substituted zend_error for php_error_docref. - Fixed inconsistent behavior of EOF for streams (reading at file boundaries would could set EOF or not). git-svn-id: http://svn.php.net/repository/pecl/rar/trunk@299945 c90b9560-bf6c-de11-be94-00142212c4b1
16 lines
402 B
PHP
16 lines
402 B
PHP
--TEST--
|
|
RarArchive get iterator on closed file
|
|
--SKIPIF--
|
|
<?php if(!extension_loaded("rar")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$rarF = RarArchive::open(dirname(__FILE__) . '/latest_winrar.rar');
|
|
$rarF->close();
|
|
foreach ($rarF as $k => $rarE) {
|
|
echo "$k. $rarE\n";
|
|
unset($rarE);
|
|
}
|
|
echo "Done.\n";
|
|
--EXPECTF--
|
|
Fatal error: main(): The archive is already closed, cannot give an iterator in %s on line %d
|