Browse Source

Honor error_reporting (in general and @ in particular) for IMAP notices

experimental/ZendEngine2
Zeev Suraski 25 years ago
parent
commit
9950eaecd7
  1. 3
      ext/imap/php_imap.c

3
ext/imap/php_imap.c

@ -4078,6 +4078,9 @@ void mm_log(char *str, long errflg)
TSRMLS_FETCH(); TSRMLS_FETCH();
/* Author: CJH */ /* 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 (errflg != NIL) { /* CJH: maybe put these into a more comprehensive log for debugging purposes? */
if (IMAPG(imap_errorstack) == NIL) { if (IMAPG(imap_errorstack) == NIL) {
IMAPG(imap_errorstack) = mail_newerrorlist(); IMAPG(imap_errorstack) = mail_newerrorlist();

Loading…
Cancel
Save