#20254 [Opn->Fbk]: imap_header() crash with bad Reply-To

From: Date: Fri, 08 Nov 2002 12:48:29 +0000
Subject: #20254 [Opn->Fbk]: imap_header() crash with bad Reply-To
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24337@lists.php.net to get a copy of this message
ID: 20254 Updated by: sniper@php.net Reported By: woonuk@xenoinfo.com -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] 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); ?> ------------------------------------------------------------------------ [2002-11-05 14:29:25] iliaa@php.net 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

« previous php.bugs (#24337) next »