summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index c3a2a1b63f..906f0666ed 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -1198,6 +1198,7 @@ ZEND_FUNCTION(set_error_handler)
ZVAL_COPY(&EG(user_error_handler), &(fci.function_name));
EG(user_error_handler_error_reporting) = (int)error_type;
+ zend_release_fcall_info_cache(&fcc);
}
/* }}} */
@@ -1253,6 +1254,7 @@ ZEND_FUNCTION(set_exception_handler)
}
ZVAL_COPY(&EG(user_exception_handler), &(fci.function_name));
+ zend_release_fcall_info_cache(&fcc);
}
/* }}} */