#20871 [Opn->Fbk]: Apache restarts with no output

From: Date: Sat, 18 Jan 2003 07:11:18 +0000
Subject: #20871 [Opn->Fbk]: Apache restarts with no output
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30449@lists.php.net to get a copy of this message
 ID:               20871
 Updated by:       sniper@php.net
 Reported By:      ctocopok@fond-darina.ru
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: win2K
 PHP Version:      4.3.0-dev
 New Comment:

Does the crash happen with any email you're trying to get?
And please add short example script here too and information
about the imap/pop3 server you're connecting to.
(Version, etc.)




Previous Comments:
------------------------------------------------------------------------

[2002-12-23 09:03:21] ctocopok@fond-darina.ru

imap_fetchbody() fails. 

I had to add some code to the script to make it write all it's output
to some file on disk (i simply cloned "echo" with "fputs").

Now it seems that the imap_fetchbody() function makes apache restart
(and PHP - to crash). Sorry for previous mishinting.

------------------------------------------------------------------------

[2002-12-19 16:37:35] ctocopok@fond-darina.ru

Sorry for bothering. Any good news on the subject?

------------------------------------------------------------------------

[2002-12-11 05:48:21] ctocopok@fond-darina.ru

<?
$port="110";
$server="localhost";
$uname="test";
$passw="1234";

phpinfo(); //to start the output

$mbox = imap_open ("{".$server.":".$port."/pop3}INBOX",
"$uname",
"$passw");
echo imap_last_error()."<br>";

$totmsg=imap_num_msg($mbox); //still works
if ($totmsg>0) echo "some messages found<br>";

$headers=imap_search($mbox, "FROM @", 0);//fails
$headers=imap_headers($mbox);//fails

//any of above would 'crash'.


if (is_array($headers))echo "Total messages found:
".count($headers)."/$totmsg<br>";
?>

------------------------------------------------------------------------

[2002-12-11 05:14:11] sniper@php.net

Please provide a short, complete and self-contained example
script which can be used to reproduce this.


------------------------------------------------------------------------

[2002-12-11 04:22:02] ctocopok@fond-darina.ru

I'd be glad to know if any measures are being taken in order to fix the
buggie. 
I hope that you at least succeeded reproduction of the bug.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/20871

-- 
Edit this bug report at http://bugs.php.net/?id=20871&edit=1



Thread (15 messages)

« previous php.bugs (#30449) next »