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
