Bug #3333: PHP crashes wen I open an empty mailbox

From: Date: Thu, 27 Jan 2000 20:57:19 +0000
Subject: Bug #3333: PHP crashes wen I open an empty mailbox
Groups: php.dev 
Request: Send a blank email to php-dev+get-14966@lists.php.net to get a copy of this message
From: sutter@mygale.org Operating system: NT PHP version: 3.0.14 PHP Bug Type: IMAP related Bug description: PHP crashes wen I open an empty mailbox The following code crashes PHP when my mailbox is empty ! <html> <?php $MAILSERVER= "{pop.mail.com/pop3}"; $link=imap_open($MAILSERVER,"login", "pass"); $headers=imap_headers($link); for($x=1; $x < count($headers); $x++) { $idx=($x-1); echo "<a href=\"view.php3?num=$x\">$headers[$idx]</a><br>"; } ?> </html>

« previous php.dev (#14966) next »