Skip to content

Commit

Permalink
Fix #1941
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamsxin committed Oct 5, 2019
1 parent 6e4d017 commit 7993e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernels/ZendEngine3/fcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ int zephir_call_zval_func_aparams(zval *return_value_ptr, zval *func_name,
status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, func_name, rvp, cache_entry, cache_slot, param_count, params);

if (status == FAILURE && !EG(exception)) {
zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined function %s()", Z_TYPE_P(func_name) ? Z_STRVAL_P(func_name) : "undefined");
zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined function %s()", Z_TYPE_P(func_name) == IS_STRING ? Z_STRVAL_P(func_name) : "undefined");
} else if (EG(exception)) {
status = FAILURE;
}
Expand Down

0 comments on commit 7993e2c

Please sign in to comment.