php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55077 $zip->numFiles == 0 ?!
Submitted: 2011-06-29 21:26 UTC Modified: 2013-02-18 00:34 UTC
Votes:3
Avg. Score:4.0 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:0 (0.0%)
From: hi dot laowang at gmail dot com Assigned:
Status: No Feedback Package: Zip Related
PHP Version: 5.3.6 OS: centos
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-06-29 21:26 UTC] hi dot laowang at gmail dot com
Description:
------------
I use ZipArchive to process a Android APK file (also ZIP), But numFiles
== 0 !!

zip file URL:
http://apk.imobile.com.cn/detail.php?a=download&apk_id=915&from=api

Test script:
---------------
$zip = new ZipArchive();
$zip->open('/path/to/file');

echo $zip->numFiles;


Expected result:
----------------
$zip->numFiles > 0

Actual result:
--------------
$zip->numFiles == 0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-29 21:32 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2011-06-29 21:32 UTC] pajoye@php.net
please send me the archive, this link does not work from here.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Apr 08 03:01:24 2020 UTC