|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26104 PHP page crash on imap_headerinfo
Submitted: 2003-11-03 20:02 UTC Modified: 2003-11-17 18:19 UTC
Avg. Score:4.0 ± 0.8
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: flensbak at stofanet dot dk Assigned:
Status: No Feedback Package: IMAP related
PHP Version: 4.3.3 OS: Linux 2.4.20
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-11-03 20:02 UTC] flensbak at stofanet dot dk
Information about the server can be found at

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 [] by [] with SmartMax MailMax for; Tue, 21 Oct 2003 04:31:31 +0200
Return-Path: <>
Received: FROM BY ; Tue Oct 21 04:31:30 2003 +0200
Received: from ( [])
    by (Postfix) with ESMTP id A29A92180B2
    for <>; Tue, 21 Oct 2003 04:31:07 +0200 (CEST)
Received: from ([] helo=CLELAPTOP)
    by with smtp (Exim 4.24)
    id 1ABmIr-0007KH-Pi
    for; Mon, 20 Oct 2003 21:31:22 -0500
Date: Tue, 21 Oct 2003 04:31:20 +0100
Subject: Trade Cards Online
From: news from <>
X-Mailer: PHP/4.3.1
Message-Id: <>
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname -
X-AntiAbuse: Original Domain -
X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12]
X-AntiAbuse: Sender Address Domain -
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-17 18:19 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun May 16 02:01:24 2021 UTC