From 9950eaecd702af7092f1e815bd64ae1433fd5ed6 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 24 Nov 2001 15:32:00 +0000 Subject: Honor error_reporting (in general and @ in particular) for IMAP notices --- ext/imap/php_imap.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/imap/php_imap.c') diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 7d2bb5c12f..ddd456e53b 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -4078,6 +4078,9 @@ void mm_log(char *str, long errflg) TSRMLS_FETCH(); /* Author: CJH */ + if (!(EG(error_reporting) & E_NOTICE)) { + return; + } if (errflg != NIL) { /* CJH: maybe put these into a more comprehensive log for debugging purposes? */ if (IMAPG(imap_errorstack) == NIL) { IMAPG(imap_errorstack) = mail_newerrorlist(); -- cgit v1.2.1