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

 ID:                 53230
 Comment by:         tbrasta at gmail dot com
 Reported by:        vincent dot gibault at gmail dot com
 Summary:            extracting file go to infinite loop
 Status:             Open
 Type:               Bug
 Package:            Zip Related
 Operating System:   archlinux x86_64
 PHP Version:        5.3.3
 Block user comment: N
 Private report:     N

 New Comment:

Your file is corrupted. It contains invalid crc, compressed and
uncompressed data lenghts of archived file.

It is libzip related bug. More details here
http://nih.at/listarchive/libzip-discuss/msg00074.html.


Previous Comments:
------------------------------------------------------------------------
[2010-11-03 21:25:32] vincent dot gibault at gmail dot com

Hello,



here is the link: http://www.corrida-noel-issy.com/bug.zip

------------------------------------------------------------------------
[2010-11-02 22:37:59] paj...@php.net

Please provide a link to the zip you are using for this bug.

------------------------------------------------------------------------
[2010-11-02 22:06:20] vincent dot gibault at gmail dot com

Description:
------------
The files joined contained: the script example.php and the archive
example.zip.



I can unzip the example.zip with the following commandlines:

unzip example.php

iconv -f UTF16 -t UTF8 data

( show the data xml values ).



But the test script failed to unzip the compressed file.

Test script:
---------------
$zip = new ZipArchive ();

$zip->open( 'example.zip' );

$f = $zip->getStream ('data');

 while (!feof($f)) {

  echo fgets($f);

} 

fclose($f);

$zip->close();

Expected result:
----------------
not to go in infinite loop.

Actual result:
--------------
don't work. Please send me an email to have the example.zip


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



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

Reply via email to