xref: /PHP-8.3/ext/zend_test/fiber_arginfo.h (revision c547fc18)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 8cd7626122b050585503ccebe370a61781ff83f2 */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class__ZendTestFiber___construct, 0, 0, 1)
5 	ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
6 ZEND_END_ARG_INFO()
7 
8 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class__ZendTestFiber_start, 0, 0, IS_MIXED, 0)
9 	ZEND_ARG_VARIADIC_TYPE_INFO(0, args, IS_MIXED, 0)
10 ZEND_END_ARG_INFO()
11 
12 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class__ZendTestFiber_resume, 0, 0, IS_MIXED, 0)
13 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_MIXED, 0, "null")
14 ZEND_END_ARG_INFO()
15 
16 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class__ZendTestFiber_pipeTo, 0, 1, _ZendTestFiber, 0)
17 	ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
18 ZEND_END_ARG_INFO()
19 
20 #define arginfo_class__ZendTestFiber_suspend arginfo_class__ZendTestFiber_resume
21 
22 
23 static ZEND_METHOD(_ZendTestFiber, __construct);
24 static ZEND_METHOD(_ZendTestFiber, start);
25 static ZEND_METHOD(_ZendTestFiber, resume);
26 static ZEND_METHOD(_ZendTestFiber, pipeTo);
27 static ZEND_METHOD(_ZendTestFiber, suspend);
28 
29 
30 static const zend_function_entry class__ZendTestFiber_methods[] = {
31 	ZEND_ME(_ZendTestFiber, __construct, arginfo_class__ZendTestFiber___construct, ZEND_ACC_PUBLIC)
32 	ZEND_ME(_ZendTestFiber, start, arginfo_class__ZendTestFiber_start, ZEND_ACC_PUBLIC)
33 	ZEND_ME(_ZendTestFiber, resume, arginfo_class__ZendTestFiber_resume, ZEND_ACC_PUBLIC)
34 	ZEND_ME(_ZendTestFiber, pipeTo, arginfo_class__ZendTestFiber_pipeTo, ZEND_ACC_PUBLIC)
35 	ZEND_ME(_ZendTestFiber, suspend, arginfo_class__ZendTestFiber_suspend, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
36 	ZEND_FE_END
37 };
38 
register_class__ZendTestFiber(void)39 static zend_class_entry *register_class__ZendTestFiber(void)
40 {
41 	zend_class_entry ce, *class_entry;
42 
43 	INIT_CLASS_ENTRY(ce, "_ZendTestFiber", class__ZendTestFiber_methods);
44 	class_entry = zend_register_internal_class_ex(&ce, NULL);
45 	class_entry->ce_flags |= ZEND_ACC_FINAL;
46 
47 	return class_entry;
48 }
49