php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dayseye at 21cn dot com
New email:
PHP Version: OS:

 

 [2010-08-10 07:15 UTC] dayseye at 21cn dot com
Description:
------------
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:
---------------
<?php

$a1 = 'a1.zip';
$a2 = 'a2.zip';

$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;
}

?>

a1.zip can be downloaded from http://afeng.open-src.com/a1.zip
a2.zip can be downloaded from http://afeng.open-src.com/a2.zip

Expected result:
----------------
pass a2
pass a1

Actual result:
--------------
error a2 19
pass a1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

  http://snaps.php.net/php-trunk-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

Try from master here:

https://github.com/pierrejoye/php_zip
 [2013-04-01 21:40 UTC] pajoye@php.net
-Status: Assigned +Status: Feedback
 [2013-06-07 06:01 UTC] pajoye@php.net
-Status: Feedback +Status: No Feedback
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC