mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- If user error handler returns "false" then we relay to the built in error
handler
This commit is contained in:
parent
ff3a363d7a
commit
2e19f82a7f
@ -974,7 +974,7 @@ ZEND_API void zend_error(int type, const char *format, ...)
|
||||
|
||||
if (call_user_function_ex(CG(function_table), NULL, orig_user_error_handler, &retval, 5, params, 1, NULL TSRMLS_CC)==SUCCESS) {
|
||||
if (retval) {
|
||||
if (Z_TYPE_P(retval) != IS_NULL && !zend_is_true(retval)) {
|
||||
if (Z_TYPE_P(retval) == IS_BOOL && Z_LVAL_P(retval) == 0) {
|
||||
zend_error_cb(type, error_filename, error_lineno, format, args);
|
||||
}
|
||||
zval_ptr_dtor(&retval);
|
||||
|
Loading…
Reference in New Issue
Block a user