ID:               33053
 User updated by:  cajus at naasa dot net
 Reported By:      cajus at naasa dot net
-Status:           Feedback
+Status:           Open
 Bug Type:         IMAP related
 Operating System: Debian GNU/Linux Sarge
 PHP Version:      4.3.10
 New Comment:

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<------------------------------------------


Previous Comments:
------------------------------------------------------------------------

[2005-05-19 00:32:44] [EMAIL PROTECTED]

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

Reply via email to