summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-04-09 14:16:04 +0800
committerXinchen Hui <laruence@php.net>2015-04-09 14:16:04 +0800
commit5fd2f975eee53f379bfe0fc15aa5f9294f767a17 (patch)
tree41d3368586b2b4610637119a0ec5343248579ba2 /Zend/zend.c
parent8d3c4e59886a12f2be78d668efb7376a5b9f0b9e (diff)
downloadphp-git-5fd2f975eee53f379bfe0fc15aa5f9294f767a17.tar.gz
Unnecessary UNDEF
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index a7d456876a..38b5bd6bc2 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -1227,7 +1227,6 @@ static void zend_error_va_list(int type, const char *format, va_list args)
CG(in_compilation) = 0;
}
- ZVAL_UNDEF(&retval);
if (call_user_function_ex(CG(function_table), NULL, &orig_user_error_handler, &retval, 5, params, 1, NULL) == SUCCESS) {
if (Z_TYPE(retval) != IS_UNDEF) {
if (Z_TYPE(retval) == IS_FALSE) {
@@ -1390,7 +1389,7 @@ ZEND_API int zend_execute_scripts(int type, zval *retval, int file_count, ...) /
EG(exception) = NULL;
ZVAL_OBJ(&params[0], old_exception);
ZVAL_COPY_VALUE(&orig_user_exception_handler, &EG(user_exception_handler));
- ZVAL_UNDEF(&retval2);
+
if (call_user_function_ex(CG(function_table), NULL, &orig_user_exception_handler, &retval2, 1, params, 1, NULL) == SUCCESS) {
zval_ptr_dtor(&retval2);
if (EG(exception)) {