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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 08:01:28 2024 UTC