1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 07:02:33 +02:00

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

This commit is contained in:
Zeev Suraski
2001-11-24 15:32:00 +00:00
parent a3ef7170b1
commit 9950eaecd7

View File

@@ -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();