Bug #52572 [Opn->Asn]: php_zip no recognize some zip format

From: Date: Tue, 10 Aug 2010 22:17:47 +0000
Subject: Bug #52572 [Opn->Asn]: php_zip no recognize some zip format
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-153315@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52572&edit=1

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



Previous Comments:
------------------------------------------------------------------------
[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 http://bugs.php.net/bug.php?id=52572&edit=1


Thread (4 messages)

« previous php.bugs (#153315) next »