Edit report at https://bugs.php.net/bug.php?id=61783&edit=1
ID: 61783 Comment by: james at jamesreno dot com Reported by: james at jamesreno dot com Summary: ZipArchive::getStream() crashes php-fcgi (5.3.10) Status: Open Type: Bug Package: Zip Related Operating System: linux PHP Version: 5.3.10 Block user comment: N Private report: N New Comment: the second two $zip->'s should have been $zip2->'s :( sorry its late (5am)... Previous Comments: ------------------------------------------------------------------------ [2012-04-20 09:08:21] james at jamesreno dot com 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 this bug report at https://bugs.php.net/bug.php?id=61783&edit=1