#26104 [NEW]: PHP page crash on imap_headerinfo

From: Date: Tue, 04 Nov 2003 01:02:12 +0000
Subject: #26104 [NEW]: PHP page crash on imap_headerinfo
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49922@lists.php.net to get a copy of this message
From:             flensbak at stofanet dot dk
Operating system: Linux 2.4.20
PHP version:      4.3.3
PHP Bug Type:     IMAP related
Bug description:  PHP page crash on imap_headerinfo

Description:
------------
Information about the server can be found at www.yfunet.dk/binfo.php

Certain e-mails apparently crashes the current PHP session - nothing is
sent to the client beyond that point.

It seems the problem is with imap_headerinfo. At least when I disabled the
first imap_headerinfo in the script the echo-statements up until the next
imap_headerinfo were sent to the client.

The only actual clue I have to the problem is the header from the e-mail
generating the problem. It seems to me that the from-line is not as it
should be. I have included the header from the email that causes the
problem:

  Received: from [80.63.53.30] by vmail1.wannafind.dk [80.63.53.30] with
SmartMax MailMax for XXXX@yfu.dk; Tue, 21 Oct 2003 04:31:31 +0200
Return-Path: <webmaster@tradecardsonline.com>
Received: FROM backup-mx.wannafind.net BY vmail1.wannafind.dk ; Tue Oct 21
04:31:30 2003 +0200
Received: from sn2.cwihosting.com (hanz.campus.pinnaclebody.com
[66.216.127.33])
    by backup-mx.wannafind.net (Postfix) with ESMTP id A29A92180B2
    for <tank@yfu.dk>; Tue, 21 Oct 2003 04:31:07 +0200 (CEST)
Received: from 62-151-155-247.tp24.ya.com ([62.151.155.247]
helo=CLELAPTOP)
    by sn2.cwihosting.com with smtp (Exim 4.24)
    id 1ABmIr-0007KH-Pi
    for tank@yfu.dk; Mon, 20 Oct 2003 21:31:22 -0500
Date: Tue, 21 Oct 2003 04:31:20 +0100
Subject: Trade Cards Online
To: XXXX@yfu.dk
From: news from tradecardsonline.com <webmaster@tradecardsonline.com>
Reply-To: webmaster@tradecardsonline.com
X-Mailer: PHP/4.3.1
Message-Id: <E1ABmIr-0007KH-Pi@sn2.cwihosting.com>
X-AntiAbuse: This header was added to track abuse, please include it with
any abuse report
X-AntiAbuse: Primary Hostname - sn2.cwihosting.com
X-AntiAbuse: Original Domain - yfu.dk
X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12]
X-AntiAbuse: Sender Address Domain - tradecardsonline.com
X-UM-Flags: \SEEN


Reproduce code:
---------------
$w_size = imap_num_msg($w_mbox);
for($i = 1; $i < $w_size + 1; $i++) 
  { 
  // comment the next line out and all is well
  $w_header = imap_headerinfo($w_mbox, $i);



Expected result:
----------------
Parsing rest of the file

Actual result:
--------------
Nothing after imap_headerinfo

-- 
Edit bug report at http://bugs.php.net/?id=26104&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26104&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26104&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26104&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26104&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26104&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26104&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26104&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26104&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26104&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26104&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26104&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26104&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26104&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26104&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26104&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26104&r=float


Thread (3 messages)

« previous php.bugs (#49922) next »