php.net |  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
Votes:3
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: flensbak at stofanet dot dk
New email:
PHP Version: OS:

 

 [2003-11-03 20:02 UTC] flensbak at stofanet dot dk
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-17 18:19 UTC] sniper@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 18:01:30 2024 UTC