#20254 [Fbk->Opn]: imap_header() crash with bad Reply-To
| From: | woonuk at xenoinfo dot com | Date: | Wed, 13 Nov 2002 05:34:52 +0000 |
| Subject: | #20254 [Fbk->Opn]: imap_header() crash with bad Reply-To | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24780@lists.php.net to get a copy of this message | ||
ID: 20254
User updated by: woonuk@xenoinfo.com
Reported By: woonuk@xenoinfo.com
-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] sniper@php.net
So it works? Only crashes with Apache2 ?
------------------------------------------------------------------------
[2002-11-08 00:08:24] woonuk@xenoinfo.com
CLI (command line) php test was all right.
apache2 configured with --prefix=/usr/local/apache2 --enable-so
------------------------------------------------------------------------
[2002-11-07 18:53:37] sniper@php.net
Try this with the CLI (command line) php. Maybe another thread-safety
issue..? How did you configure apache2?
------------------------------------------------------------------------
[2002-11-06 08:42:27] kalowsky@php.net
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] woonuk@xenoinfo.com
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",
"woonuk@home.xenoinfo.com", "******");
$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