Bug #61783 [Fbk->Csd]: ZipArchive::getStream() crashes php-fcgi (5.3.10)
Edit report at https://bugs.php.net/bug.php?id=61783&edit=1
ID: 61783
User updated by: james at jamesreno dot com
Reported by: james at jamesreno dot com
Summary: ZipArchive::getStream() crashes php-fcgi (5.3.10)
-Status: Feedback
+Status: Closed
Type: Bug
Package: Zip Related
Operating System: linux
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
Fixed in PHP 5.3.11 (no longer crashes).
Previous Comments:
------------------------------------------------------------------------
[2012-05-01 02:26:47] james at jamesreno dot com
This does seem to be fixed in PHP 5.3.11 - it no longer crashes however :( now
dba_fetch() crashes --- yay. On to another bug fixing fiesta!
Regards,
~James
------------------------------------------------------------------------
[2012-04-29 17:27:14] reeze dot xia at gmail dot com
I ever reproduce it in 5.3.10 but only several times. I can't reproduce it
anymore.
Can you provide more information about the bug? or try lastest version?
------------------------------------------------------------------------
[2012-04-22 04:30:56] laruence@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2012-04-20 09:14:57] james at jamesreno dot com
the second two $zip->'s should have been $zip2->'s :( sorry its late (5am)...
------------------------------------------------------------------------
[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
Thread (6 messages)