Edit report at https://bugs.php.net/bug.php?id=52572&edit=1

 ID:                 52572
 Updated by:         paj...@php.net
 Reported by:        dayseye at 21cn dot com
 Summary:            php_zip no recognize some zip format
-Status:             Feedback
+Status:             No Feedback
 Type:               Bug
 Package:            Zip Related
 Operating System:   Win32
 PHP Version:        5.2.14
 Assigned To:        pajoye
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2013-04-01 21:40:09] paj...@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

------------------------------------------------------------------------
[2010-08-10 07:15:35] 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


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=52572&edit=1

Reply via email to