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

apache2 crashes more frequently(?) than apach1.

if i try 10-20 times, one time crashes with apache2.
on apache1, try 20-30 times, one time crash.


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

[2002-11-08 06:48:28] [EMAIL PROTECTED]

So it works? Only crashes with Apache2 ?


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

[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);
?>

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

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