summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/imap/php_imap.c3
1 files changed, 3 insertions, 0 deletions
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();