php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4744 imap_fetch_overview doesn't work as expected
Submitted: 2000-06-01 04:07 UTC Modified: 2000-06-19 20:14 UTC
From: manu at cappelleri dot net Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.0 Release OS: Linux - Slackware 7.0
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: manu at cappelleri dot net
New email:
PHP Version: OS:

 

 [2000-06-01 04:07 UTC] manu at cappelleri dot net
Using imap_fetch_overview() causes a strange behaviour in the way the FROM header is treated.

$val->from in the following script grows every time, instead of being reset.


$result = imap_fetch_overview ($mbox, $list, 0);
echo "<TABLE><TR><TD>Id</TD><TD>From</TD><TD>Subject</TD><TD>Date</TD><TD>Size</TD></TR>\n";
flush();
while ( list($key,$val) = each ($result)) {
echo "<TR><TD>$tmp" . $val->msgno . "$xtmp</TD><TD>$tmp" . htmlspecialchars($val->from) . "$xtmp</TD><TD>$tmp" . $val->subject . "$xtmp</TD><TD>$tmp" . $val->date . "$xtmp</TD><TD>$tmp" . $val->size . "$xtmp</TD></TR>\n";
}
echo "</TABLE>";

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-19 20:14 UTC] rasmus at cvs dot php dot net
This was fixed recently.  Grab a snapshot from http://snaps.php.net and try again.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 06:01:38 2025 UTC