|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52572 php_zip no recognize some zip format
Submitted: 2010-08-10 07:15 UTC Modified: 2013-06-07 06:01 UTC
From: dayseye at 21cn dot com Assigned: pajoye (profile)
Status: No Feedback Package: Zip Related
PHP Version: 5.2.14 OS: Win32
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: dayseye at 21cn dot com
New email:
PHP Version: OS:


 [2010-08-10 07:15 UTC] dayseye at 21cn dot com
Some zip files can't be opened by php_zip while they can be open by normal zip utility like haozip, 7-z, winrar, eg.

Test script:

$a1 = '';
$a2 = '';

$zip = @zip_open($a2);
if (is_resource($zip)) {
    echo 'pass a2';
} else {
    echo 'error a2 ' . $zip;

    echo '<br />';

$zip = @zip_open($a1);
if (is_resource($zip)) {
    echo 'pass a1';
} else {
    echo 'error a1 ' . $zip;

?> can be downloaded from can be downloaded from

Expected result:
pass a2
pass a1

Actual result:
error a2 19
pass a1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-11 00:17 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: pajoye
 [2013-04-01 21:40 UTC]
Please try using this snapshot:
For Windows:

Try from master here:
 [2013-04-01 21:40 UTC]
-Status: Assigned +Status: Feedback
 [2013-06-07 06:01 UTC]
-Status: Feedback +Status: No Feedback
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jul 07 09:01:26 2020 UTC