From:             
Operating system: archlinux x86_64
PHP version:      5.3.3
Package:          Zip Related
Bug Type:         Bug
Bug description:extracting file go to infinite loop

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 bug report at http://bugs.php.net/bug.php?id=53230&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53230&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53230&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53230&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53230&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53230&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53230&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53230&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53230&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53230&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53230&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53230&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53230&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53230&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53230&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53230&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53230&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53230&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53230&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53230&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53230&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53230&r=mysqlcfg

Reply via email to