Skip to content

Commit

Permalink
Merge pull request #2157 from zephir-lang/fix-cufa-reference
Browse files Browse the repository at this point in the history
#2111 - Fix cufa reference
  • Loading branch information
AlexNDRmac authored Mar 5, 2021
2 parents c2456fc + f619794 commit 831be89
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kernels/ZendEngine3/fcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,10 @@ int zephir_call_user_func_array_noex(zval *return_value, zval *handler, zval *pa

zend_fcall_info_args_clear(&fci, 1);
}

if (EG(exception)) {
status = SUCCESS;
}
#else
zend_execute_data *frame = EG(current_execute_data);
if (!zend_is_callable_at_frame(handler, NULL, frame, 0, &fci_cache, &is_callable_error)) {
Expand All @@ -641,14 +645,10 @@ int zephir_call_user_func_array_noex(zval *return_value, zval *handler, zval *pa
fci.named_params = NULL;

zend_fcall_info_args(&fci, params);
zend_call_function(&fci, &fci_cache);
status = zend_call_function(&fci, &fci_cache);
zend_fcall_info_args_clear(&fci, 1);
#endif

if (EG(exception)) {
status = SUCCESS;
}

return status;
}

Expand Down

0 comments on commit 831be89

Please sign in to comment.