mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Fix error display (Stas: PG(display_errors) is handled by the php_error_docref() function :)
This commit is contained in:
parent
65cf3fc3e1
commit
efc8a64eb3
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user