From: Jani Taskinen Date: Tue, 11 Dec 2007 12:26:43 +0000 (+0000) Subject: MFH:- Revert previous patch, it was correct to do this, error is logged if logging... X-Git-Tag: RELEASE_1_3_1~523 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14ca778ed9a722f51a2e6bc9ae0375c0a800f322;p=php MFH:- Revert previous patch, it was correct to do this, error is logged if logging is enabled --- diff --git a/ext/standard/html.c b/ext/standard/html.c index feb5add121..dbacf6bb13 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -1132,7 +1132,9 @@ PHPAPI char *php_escape_html_entities_ex(unsigned char *old, int oldlen, int *ne if(status == FAILURE) { /* invalid MB sequence */ efree(replaced); - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid multibyte sequence in argument"); + if(!PG(display_errors)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid multibyte sequence in argument"); + } *newlen = 0; return STR_EMPTY_ALLOC(); }