#48217 [NEW]: ZipArchive->open unable to open certain zip files
From: mb at smartftp dot com
Operating system: Windows Vista
PHP version: 5.2CVS-2009-05-10 (snap)
PHP Bug Type: Zip Related
Bug description: ZipArchive->open unable to open certain zip files
Description:
------------
ZipArchive is unable to open a zip file containing 247 files and 4
folders.
I have created a .zip file using ZipArchive. This is all good. However
when trying to open this zip archive ZipArchive->open fails with error 11.
The zip file looks good since I'm able to open it with WinRAR etc.
The test.zip with the test.php is provided in the following archive:
http://www.smartftp.com/upload/zipbug.zip
Regards,
Mat
SmartFTP
Reproduce code:
---------------
$extract = new ZipArchive;
$open = $extract->open($file, ZIPARCHIVE::CHECKCONS);
if($open === TRUE)
{
print("ok");
}
else
{
print("error");
// readfile always works. Thus no permission problem.
readfile($file);
}
Expected result:
----------------
ok
Actual result:
--------------
error
and output of file.
--
Edit bug report at http://bugs.php.net/?id=48217&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48217&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48217&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48217&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48217&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48217&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48217&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48217&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48217&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48217&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48217&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48217&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48217&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48217&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48217&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48217&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48217&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48217&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48217&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48217&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48217&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48217&r=mysqlcfg
Thread (2 messages)
- mb at smartftp dot com