It's callback, not callable.
All checks were successful
The build was successful.

This commit is contained in:
2019-03-24 09:31:19 +01:00
parent a87471e1e3
commit fa295b9437
2 changed files with 3 additions and 3 deletions

View File

@@ -6029,7 +6029,7 @@ PH7_PRIVATE int PH7_VmIsCallable(ph7_vm *pVm, ph7_value *pValue, int CallInvoke)
* Return
* TRUE if name is callable, FALSE otherwise.
*/
static int vm_builtin_is_callable(ph7_context *pCtx, int nArg, ph7_value **apArg) {
static int vm_builtin_is_callback(ph7_context *pCtx, int nArg, ph7_value **apArg) {
ph7_vm *pVm;
int res;
if(nArg < 1) {
@@ -10795,7 +10795,7 @@ static const ph7_builtin_func aVmFunc[] = {
{ "func_get_args", vm_builtin_func_get_args },
{ "func_get_args_byref", vm_builtin_func_get_args_byref },
{ "function_exists", vm_builtin_func_exists },
{ "is_callable", vm_builtin_is_callable },
{ "is_callback", vm_builtin_is_callback },
{ "get_defined_functions", vm_builtin_get_defined_func },
{ "register_autoload_handler", vm_builtin_register_autoload_handler },
{ "register_shutdown_function", vm_builtin_register_shutdown_function },