mirror of
https://github.com/php/php-src.git
synced 2026-03-29 11:42:17 +02:00
- Fix error display (Stas: PG(display_errors) is handled by the php_error_docref() function :)
This commit is contained in:
@@ -1135,9 +1135,7 @@ PHPAPI char *php_escape_html_entities_ex(unsigned char *old, int oldlen, int *ne
|
||||
if(status == FAILURE) {
|
||||
/* invalid MB sequence */
|
||||
efree(replaced);
|
||||
if(!PG(display_errors)) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid multibyte sequence in argument");
|
||||
}
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid multibyte sequence in argument");
|
||||
*newlen = 0;
|
||||
return STR_EMPTY_ALLOC();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user