From:             
Operating system: Win32
PHP version:      5.2.14
Package:          Zip Related
Bug Type:         Bug
Bug description:php_zip no recognize some zip format

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 bug report at http://bugs.php.net/bug.php?id=52572&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52572&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52572&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52572&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52572&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52572&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52572&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52572&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52572&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52572&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52572&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52572&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52572&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52572&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52572&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52572&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52572&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52572&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52572&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52572&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52572&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52572&r=mysqlcfg

Reply via email to