2020-06-19 09:40:31 +00:00
|
|
|
/* This is a generated file, edit the .stub.php file instead.
|
2021-07-16 10:46:43 +00:00
|
|
|
* Stub hash: e3b480674671a698814db282c5ea34d438fe519d */
|
2019-10-15 12:30:23 +00:00
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Closure___construct, 0, 0, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-05-19 11:56:30 +00:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Closure_bind, 0, 2, Closure, 1)
|
2019-10-15 12:30:23 +00:00
|
|
|
ZEND_ARG_OBJ_INFO(0, closure, Closure, 0)
|
2020-07-12 10:40:37 +00:00
|
|
|
ZEND_ARG_TYPE_INFO(0, newThis, IS_OBJECT, 1)
|
2020-09-21 12:45:31 +00:00
|
|
|
ZEND_ARG_TYPE_MASK(0, newScope, MAY_BE_OBJECT|MAY_BE_STRING|MAY_BE_NULL, "\"static\"")
|
2019-10-15 12:30:23 +00:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-05-19 11:56:30 +00:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Closure_bindTo, 0, 1, Closure, 1)
|
2020-07-12 10:40:37 +00:00
|
|
|
ZEND_ARG_TYPE_INFO(0, newThis, IS_OBJECT, 1)
|
2020-09-21 12:45:31 +00:00
|
|
|
ZEND_ARG_TYPE_MASK(0, newScope, MAY_BE_OBJECT|MAY_BE_STRING|MAY_BE_NULL, "\"static\"")
|
2019-10-15 12:30:23 +00:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-05-25 15:30:49 +00:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Closure_call, 0, 1, IS_MIXED, 0)
|
2020-07-12 10:40:37 +00:00
|
|
|
ZEND_ARG_TYPE_INFO(0, newThis, IS_OBJECT, 0)
|
2020-09-28 20:19:20 +00:00
|
|
|
ZEND_ARG_VARIADIC_TYPE_INFO(0, args, IS_MIXED, 0)
|
2019-10-15 12:30:23 +00:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-05-19 11:56:30 +00:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Closure_fromCallable, 0, 1, Closure, 0)
|
2020-08-14 08:22:42 +00:00
|
|
|
ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
|
2019-10-15 12:30:23 +00:00
|
|
|
ZEND_END_ARG_INFO()
|
2020-05-19 11:56:30 +00:00
|
|
|
|
|
|
|
ZEND_METHOD(Closure, __construct);
|
|
|
|
ZEND_METHOD(Closure, bind);
|
2020-09-19 17:04:35 +00:00
|
|
|
ZEND_METHOD(Closure, bindTo);
|
2020-05-19 11:56:30 +00:00
|
|
|
ZEND_METHOD(Closure, call);
|
|
|
|
ZEND_METHOD(Closure, fromCallable);
|
|
|
|
|
|
|
|
static const zend_function_entry class_Closure_methods[] = {
|
|
|
|
ZEND_ME(Closure, __construct, arginfo_class_Closure___construct, ZEND_ACC_PRIVATE)
|
|
|
|
ZEND_ME(Closure, bind, arginfo_class_Closure_bind, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
2020-09-19 17:04:35 +00:00
|
|
|
ZEND_ME(Closure, bindTo, arginfo_class_Closure_bindTo, ZEND_ACC_PUBLIC)
|
2020-05-19 11:56:30 +00:00
|
|
|
ZEND_ME(Closure, call, arginfo_class_Closure_call, ZEND_ACC_PUBLIC)
|
|
|
|
ZEND_ME(Closure, fromCallable, arginfo_class_Closure_fromCallable, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
|
|
|
ZEND_FE_END
|
|
|
|
};
|
2021-02-12 22:33:09 +00:00
|
|
|
|
2021-02-15 21:14:36 +00:00
|
|
|
static zend_class_entry *register_class_Closure(void)
|
2021-02-12 22:33:09 +00:00
|
|
|
{
|
|
|
|
zend_class_entry ce, *class_entry;
|
|
|
|
|
|
|
|
INIT_CLASS_ENTRY(ce, "Closure", class_Closure_methods);
|
2024-08-24 10:36:54 +00:00
|
|
|
class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE);
|
2021-02-12 22:33:09 +00:00
|
|
|
|
|
|
|
return class_entry;
|
|
|
|
}
|