Skip to content

Commit

Permalink
Merge pull request #1952 from dreamsxin/1941
Browse files Browse the repository at this point in the history
Fix #1941
  • Loading branch information
sergeyklay authored Oct 5, 2019
2 parents 6e4d017 + 7993e2c commit 3cedc6c
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 3cedc6c

Please sign in to comment.