Bug #17999 Updated: imap_last_error() does not return anything

From: Date: Wed, 26 Jun 2002 23:32:00 +0000
Subject: Bug #17999 Updated: imap_last_error() does not return anything
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12178@lists.php.net to get a copy of this message
ID: 17999 Updated by: sniper@php.net Reported By: tomas.styblo@jet2web.cz -Status: Open +Status: Closed Bug Type: IMAP related Operating System: FreeBSD 4.5 PHP Version: 4.2.1 New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-06-26 14:06:52] tomas.styblo@jet2web.cz In PHP 4.2.1, the imap_last_error() function does not work anymore, when related imap_open() is prefixed with "@". It does not return anything. Simple test case: <? $username = 'user'; $password = 'passwd'; $host = 'host'; # some nonexistent host $port = 143; $proto = 'imap'; if ($con = @imap_open('{'.$host.':'.$port.'/'.$proto.'}', $username, $password, OP_HALFOPEN)) { print "Connected\n"; } else { $err = imap_last_error(); print "Error: $err\n"; } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17999&edit=1

« previous php.bugs (#12178) next »