#33053 [Opn->Bgs]: @imap_open shows errors

From: Date: Thu, 19 May 2005 06:17:00 +0000
Subject: #33053 [Opn->Bgs]: @imap_open shows errors
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79188@lists.php.net to get a copy of this message
ID: 33053 Updated by: sniper@php.net Reported By: cajus at naasa dot net -Status: Open +Status: Bogus Bug Type: IMAP related Operating System: Debian GNU/Linux Sarge PHP Version: 4.3.10 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. See bug #33039 (same issue..) Previous Comments: ------------------------------------------------------------------------ [2005-05-19 07:10:55] cajus at naasa dot net In Debian, log_errors seems to be set to Off by default. I've noticed that defining a dummy error handler before hides the message - but this is no real solution: 8<------------------------------------------ function eh($errno, $errstr, $errfile, $errline) {} ... $tmp= set_error_handler('eh'); $mbox = @imap_open($c, $a, $p, OP_HALFOPEN); set_error_handler($tmp); ... 8<------------------------------------------ ------------------------------------------------------------------------ [2005-05-19 00:32:44] iliaa@php.net Is error logging enabled and if so can PHP write to the error log file? ------------------------------------------------------------------------ [2005-05-18 12:57:18] cajus at naasa dot net Description: ------------ When connecting IMAP servers via imap_open, I'm hiding messages. This doesn't not work for imap_open, neither with error_reporting(0), nor with @. Reproduce code: --------------- $mbox = @imap_open($cfg['connect'], $admin, $password, OP_HALFOPEN); Expected result: ---------------- No output Actual result: -------------- Notice: (null)(): Connection failed to vserver-02.test.net, 143: Connection refused (errflg=2) in Unknown on line 0 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33053&edit=1

« previous php.bugs (#79188) next »