From:             
Operating system: linux
PHP version:      5.3.10
Package:          Zip Related
Bug Type:         Bug
Bug description:ZipArchive::getStream() crashes php-fcgi (5.3.10)

Description:
------------
When php is running in fcgi mode ZipArchive::getStream() causes PHP to
crash.

Test script:
---------------
<?
 $zip = new ZipArchive();
 $zip->open("/tmp/test.zip",ZIPARCHIVE::CREATE);
 $zip->addFromString("test.txt","This is a test");
 $zip->close();
 unset($zip);

 $zip2 = new ZipArchive();
 $zip->open("/tmp/test.zip");
 $fd = $zip->getStream("test.txt");  // CRASH
?>



Expected result:
----------------
Zip to return file handle.

Actual result:
--------------
PHP Crashes (webserver reports *498 recv() failed (104: Connection reset by
peer) 
while reading response header from upstream) and returns 502 Bad Gateway...

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

Reply via email to