- Fix error display (Stas: PG(display_errors) is handled by the php_error_docref() function :)

This commit is contained in:
Jani Taskinen 2007-12-11 11:28:43 +00:00
parent 65cf3fc3e1
commit efc8a64eb3

View File

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