/src/php-src/Zend/zend_fibers_arginfo.h
Line | Count | Source |
1 | | /* This is a generated file, edit the .stub.php file instead. |
2 | | * Stub hash: e82bbc8e81fe98873a9a5697a4b38e63a24379da */ |
3 | | |
4 | | ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Fiber___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_Fiber_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_Fiber_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_TYPE_INFO_EX(arginfo_class_Fiber_throw, 0, 1, IS_MIXED, 0) |
17 | | ZEND_ARG_OBJ_INFO(0, exception, Throwable, 0) |
18 | | ZEND_END_ARG_INFO() |
19 | | |
20 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Fiber_isStarted, 0, 0, _IS_BOOL, 0) |
21 | | ZEND_END_ARG_INFO() |
22 | | |
23 | | #define arginfo_class_Fiber_isSuspended arginfo_class_Fiber_isStarted |
24 | | |
25 | | #define arginfo_class_Fiber_isRunning arginfo_class_Fiber_isStarted |
26 | | |
27 | | #define arginfo_class_Fiber_isTerminated arginfo_class_Fiber_isStarted |
28 | | |
29 | | ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Fiber_getReturn, 0, 0, IS_MIXED, 0) |
30 | | ZEND_END_ARG_INFO() |
31 | | |
32 | | ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Fiber_getCurrent, 0, 0, Fiber, 1) |
33 | | ZEND_END_ARG_INFO() |
34 | | |
35 | | #define arginfo_class_Fiber_suspend arginfo_class_Fiber_resume |
36 | | |
37 | | ZEND_BEGIN_ARG_INFO_EX(arginfo_class_FiberError___construct, 0, 0, 0) |
38 | | ZEND_END_ARG_INFO() |
39 | | |
40 | | ZEND_METHOD(Fiber, __construct); |
41 | | ZEND_METHOD(Fiber, start); |
42 | | ZEND_METHOD(Fiber, resume); |
43 | | ZEND_METHOD(Fiber, throw); |
44 | | ZEND_METHOD(Fiber, isStarted); |
45 | | ZEND_METHOD(Fiber, isSuspended); |
46 | | ZEND_METHOD(Fiber, isRunning); |
47 | | ZEND_METHOD(Fiber, isTerminated); |
48 | | ZEND_METHOD(Fiber, getReturn); |
49 | | ZEND_METHOD(Fiber, getCurrent); |
50 | | ZEND_METHOD(Fiber, suspend); |
51 | | ZEND_METHOD(FiberError, __construct); |
52 | | |
53 | | static const zend_function_entry class_Fiber_methods[] = { |
54 | | ZEND_ME(Fiber, __construct, arginfo_class_Fiber___construct, ZEND_ACC_PUBLIC) |
55 | | ZEND_ME(Fiber, start, arginfo_class_Fiber_start, ZEND_ACC_PUBLIC) |
56 | | ZEND_ME(Fiber, resume, arginfo_class_Fiber_resume, ZEND_ACC_PUBLIC) |
57 | | ZEND_ME(Fiber, throw, arginfo_class_Fiber_throw, ZEND_ACC_PUBLIC) |
58 | | ZEND_ME(Fiber, isStarted, arginfo_class_Fiber_isStarted, ZEND_ACC_PUBLIC) |
59 | | ZEND_ME(Fiber, isSuspended, arginfo_class_Fiber_isSuspended, ZEND_ACC_PUBLIC) |
60 | | ZEND_ME(Fiber, isRunning, arginfo_class_Fiber_isRunning, ZEND_ACC_PUBLIC) |
61 | | ZEND_ME(Fiber, isTerminated, arginfo_class_Fiber_isTerminated, ZEND_ACC_PUBLIC) |
62 | | ZEND_ME(Fiber, getReturn, arginfo_class_Fiber_getReturn, ZEND_ACC_PUBLIC) |
63 | | ZEND_ME(Fiber, getCurrent, arginfo_class_Fiber_getCurrent, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) |
64 | | ZEND_ME(Fiber, suspend, arginfo_class_Fiber_suspend, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) |
65 | | ZEND_FE_END |
66 | | }; |
67 | | |
68 | | static const zend_function_entry class_FiberError_methods[] = { |
69 | | ZEND_ME(FiberError, __construct, arginfo_class_FiberError___construct, ZEND_ACC_PUBLIC) |
70 | | ZEND_FE_END |
71 | | }; |
72 | | |
73 | | static zend_class_entry *register_class_Fiber(void) |
74 | 16 | { |
75 | 16 | zend_class_entry ce, *class_entry; |
76 | | |
77 | 16 | INIT_CLASS_ENTRY(ce, "Fiber", class_Fiber_methods); |
78 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE); |
79 | | |
80 | 16 | return class_entry; |
81 | 16 | } |
82 | | |
83 | | static zend_class_entry *register_class_FiberError(zend_class_entry *class_entry_Error) |
84 | 16 | { |
85 | 16 | zend_class_entry ce, *class_entry; |
86 | | |
87 | 16 | INIT_CLASS_ENTRY(ce, "FiberError", class_FiberError_methods); |
88 | 16 | class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Error, ZEND_ACC_FINAL); |
89 | | |
90 | 16 | return class_entry; |
91 | 16 | } |