php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59148 RarArchive::list doesn't return value
Submitted: 2010-04-07 09:38 UTC Modified: 2010-04-07 09:44 UTC
From: tortures at gmail dot com Assigned:
Status: Closed Package: rar (PECL)
PHP Version: 5.3.2 OS: FreeBSD 8.0
Private report: No CVE-ID: None
 [2010-04-07 09:38 UTC] tortures at gmail dot com
Description:
------------
I have a list of archives:
arch.r0
arch.r1
...
arch.r99
arch.rar

But arch.r4, for example, is missed, hence rar archive is not complete for extracting.

I am trying to get list of rar entries from arch.rar using RarArchive::list.


Also, i tried to extract archive by console rar.

[smt@v-4-1453-12 /data/archives]$ rar e arch.rar

RAR 3.91   Copyright (c) 1993-2009 Alexander Roshal   12 Dec 2009

Extracting from arch.rar

Extracting  arch.mkv                                 19%

Extracting from arch.r00

...         arch.mkv                                 39%

Extracting from arch.r01

...         arch.mkv                                 59%

Extracting from arch.r02

...         arch.mkv                                 79%

Extracting from arch.r03

...         arch.mkv                                 99%
Calculating control sums of all volumes.
Cannot find volume arch.r04
arch.mkv - CRC failed
Total errors: 1



Reproduce code:
---------------
$this->archive = RarArchive::open($this->path);
$list = $this->archive->list();

Expected result:
----------------
RarArchive::list must return false or throw Exception.

Actual result:
--------------
PHP freezed on RarArchive::list and PHP captured 100% CPU.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-07 09:44 UTC] cataphract@php.net
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Thank your for your report.

That bug has already been fixed in SVN. See revision 295909. http://svn.php.net/viewvc?view=revision&revision=295909

BTW, RarArchive::list will be renamed in 2.0 final (see bug #17025), so I'd advise you to use rar_list instead.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 27 09:01:25 2020 UTC