Skip to content

Commit 5fd2f97

Browse files
committed
Unnecessary UNDEF
1 parent 8d3c4e5 commit 5fd2f97

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,6 @@ static void zend_error_va_list(int type, const char *format, va_list args)
12271227
CG(in_compilation) = 0;
12281228
}
12291229

1230-
ZVAL_UNDEF(&retval);
12311230
if (call_user_function_ex(CG(function_table), NULL, &orig_user_error_handler, &retval, 5, params, 1, NULL) == SUCCESS) {
12321231
if (Z_TYPE(retval) != IS_UNDEF) {
12331232
if (Z_TYPE(retval) == IS_FALSE) {
@@ -1390,7 +1389,7 @@ ZEND_API int zend_execute_scripts(int type, zval *retval, int file_count, ...) /
13901389
EG(exception) = NULL;
13911390
ZVAL_OBJ(&params[0], old_exception);
13921391
ZVAL_COPY_VALUE(&orig_user_exception_handler, &EG(user_exception_handler));
1393-
ZVAL_UNDEF(&retval2);
1392+
13941393
if (call_user_function_ex(CG(function_table), NULL, &orig_user_exception_handler, &retval2, 1, params, 1, NULL) == SUCCESS) {
13951394
zval_ptr_dtor(&retval2);
13961395
if (EG(exception)) {

0 commit comments

Comments
 (0)