PHP 4.0 Bug #4744: imap_fetch_overview doesn't work as expected
| From: | manu at cappelleri dot net | Date: | Thu, 01 Jun 2000 02:07:03 +0000 |
| Subject: | PHP 4.0 Bug #4744: imap_fetch_overview doesn't work as expected | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19930@lists.php.net to get a copy of this message | ||
From: manu@cappelleri.net
Operating system: Linux - Slackware 7.0
PHP version: 4.0.0 Release
PHP Bug Type: IMAP related
Bug description: imap_fetch_overview doesn't work as expected
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>";