]> granicus.if.org Git - php/commitdiff
Fix a typo in the error messages for FFI [skip ci]
authorTyson Andre <tysonandre775@hotmail.com>
Mon, 18 Feb 2019 16:14:42 +0000 (11:14 -0500)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 18 Feb 2019 16:47:41 +0000 (17:47 +0100)
ext/ffi/ffi.c

index 5305a43f7cb894e0156c158f9522d8b2f3547287..9188ccc63f672bce0a8280f3aa246cf69544af6f 100644 (file)
@@ -806,13 +806,13 @@ static void *zend_ffi_create_callback(zend_ffi_type *type, zval *value) /* {{{ *
        }
 
        if (!zend_is_callable_ex(value, NULL, 0, NULL, &fcc, &error)) {
-               zend_throw_error(zend_ffi_exception_ce, "Attempt to assing an invalid callback, %s", error);
+               zend_throw_error(zend_ffi_exception_ce, "Attempt to assign an invalid callback, %s", error);
                return NULL;
        }
 
        arg_count = type->func.args ? zend_hash_num_elements(type->func.args) : 0;
        if (arg_count < fcc.function_handler->common.required_num_args) {
-               zend_throw_error(zend_ffi_exception_ce, "Attempt to assing an invalid callback, insufficient number of arguments");
+               zend_throw_error(zend_ffi_exception_ce, "Attempt to assign an invalid callback, insufficient number of arguments");
                return NULL;
        }