php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56595 mailparse_msg_parse/ fastcgi/ lighttpd
Submitted: 2005-10-13 20:23 UTC Modified: 2005-10-24 06:17 UTC
From: peterp at podbox dot co dot za Assigned:
Status: Closed Package: mailparse (PECL)
PHP Version: 5.0.3 OS: FreeBSD 5.4/amd64
Private report: No CVE-ID: None
 [2005-10-13 20:23 UTC] peterp at podbox dot co dot za
Description:
------------
This code works under Apache 1.3, bit gives me a this error under fastcgi+lighttpd:

2005-10-14 02:06:14: (mod_fastcgi.c.2196) unexpected end-of-file (perhaps the fastcgi process died): pid: 59742 fcgi-fd: 7 remote-fd: 6


Reproduce code:
---------------
$mBox = imap_open(MCENTRE_HOST, $_SESSION['U'], $_SESSION['P']);

$Message = imap_fetchheader($mBox, $mId);
$Message .= imap_body($mBox, $mId);

$mParse = mailparse_msg_create();
	
mailparse_msg_parse($mParse,$Message); // this code breaks.

Expected result:
----------------
Except the "$Message" to be parsed.

Actual result:
--------------
2005-10-14 02:06:36: (mod_fastcgi.c.2196) unexpected end-of-file (perhaps the fastcgi process died): pid: 59742 fcgi-fd: 7 remote-fd: 6 
2005-10-14 02:06:36: (mod_fastcgi.c.3005) response not sent, request sent: 970 connection-fd: 6 fcgi-fd: 7

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-13 23:28 UTC] wez@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

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 PECL better.

A stack trace and a copy of the message (tar it up and put it online somewhere that I can download it) will help a great deal.
 [2005-10-24 06:17 UTC] peterp at podbox dot co dot za
I disabled a whole bunch of extensions that I wasn't using and now it's working fine. I tried to generate a backtrace, but it didn't seem to work correctly. Just had a bunch of "???????" instead of traces.

Thanks Wez.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 11:01:24 2019 UTC