From:             raja at aonic dot net
Operating system: 
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  Syntax error in example code for imap_fetch_overview

Description:
------------
There is an syntax error in Example 966. imap_fetch_overview()

<?php
// Fetch an overview for all messages in INBOX
$result = imap_fetch_overview($mbox,"1:{$MC->Nmsgs}",0);
foreach ($result => $overview) {
   echo "#{$overview->msgno} ({$overview->date}) - From:
{$overview->from}
   {$overview->subject}\n";
}
?>

foreach ($result => $overview) should be: 
foreach ($result as $overview)


-- 
Edit bug report at http://bugs.php.net/?id=40807&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40807&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40807&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40807&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40807&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40807&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40807&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40807&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40807&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40807&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40807&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40807&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40807&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40807&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40807&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40807&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40807&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40807&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40807&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40807&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40807&r=mysqlcfg

Reply via email to