summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2004-06-01 11:45:46 +0000
committerAndi Gutmans <andi@php.net>2004-06-01 11:45:46 +0000
commit2e19f82a7fee10736cc33337bd0b8662ff341fc7 (patch)
tree0ba9ff537fe6aafe9dd8ce2cd9e3bb9510b9e5fe /Zend/zend.c
parentff3a363d7a067ea07f5099f555d321f5f3340ec7 (diff)
downloadphp-git-2e19f82a7fee10736cc33337bd0b8662ff341fc7.tar.gz
- If user error handler returns "false" then we relay to the built in error
handler
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index b637538c5a..377ab99801 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -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);