Bug #53230 [Com]: extracting file go to infinite loop

From: Date: Tue, 22 Feb 2011 00:29:45 +0000
Subject: Bug #53230 [Com]: extracting file go to infinite loop
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-158949@lists.php.net to get a copy of this message
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] pajoye@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


Thread (9 messages)

« previous php.bugs (#158949) next »