ID:               20254
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: Linux (2.4.18)
 PHP Version:      4.3.0-dev
 New Comment:

So it works? Only crashes with Apache2 ?



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

[2002-11-08 00:08:24] [EMAIL PROTECTED]

CLI (command line) php test was all right.

apache2 configured with --prefix=/usr/local/apache2 --enable-so

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

[2002-11-07 18:53:37] [EMAIL PROTECTED]

Try this with the CLI (command line) php. Maybe another thread-safety
issue..? How did you configure apache2?


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

[2002-11-06 08:42:27] [EMAIL PROTECTED]

Your second bt shows that it's not an IMAP specific problem, which is
interesting that it manifests itself in IMAP only.

Can you reproduce this with non Apache2 as well (using the latest CVS
of course)?  I know you probably hate me for asking this.

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

[2002-11-05 23:34:00] [EMAIL PROTECTED]

I deleted many html tags and php code.
Ctrl+F5(reload) gives good result or crash.

$ cat test.php
<?php
    $mailbox = imap_open("{localhost:143}"."INBOX.test",
"[EMAIL PROTECTED]", "******");
    $object = imap_fetchstructure($mailbox, 1);

    $header = imap_header($mailbox, 1);

    $from = $header->from[0]->personal;
    if(!$from) $from = $header->$from[0]->mailbox;

    $subject = htmlspecialchars(chop($header->Subject));
    if(!$subject) $subject = "Null !!";

    $to = $header->to[0]->personal;
    if(!$to) $to = $header->to[0]->mailbox;

    echo("Subject: $subject<br>");
    echo("Date : " . $header->Date . "<br>");
    echo("From : $from<br>");
    echo("To : $to<br>");

    imap_close($mailbox);
?>

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

[2002-11-05 14:29:25] [EMAIL PROTECTED]

The last error implies crash somewhere in the Apache 2 code. Does this
crash happen on any particular script, if so, could you please provide
the smallest possible version of such a script that can be used to
replicate the problem.

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

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/20254

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

Reply via email to