@@ -82,8 +82,6 @@ ZEND_ARG_TYPE_INFO(0, i, IS_LONG, 0) \
8282ZEND_ARG_VARIADIC_INFO(0, v) \
8383ZEND_END_ARG_INFO()
8484
85- #if PHP_VERSION_ID >= 80100
86-
8785#define ARGINFO_OFFSET_GET (name ) \
8886 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_##name, 0, 1, IS_MIXED, 0) \
8987 ZEND_ARG_TYPE_INFO(0, offset, IS_MIXED, 0) \
@@ -100,102 +98,21 @@ ZEND_END_ARG_INFO()
10098 ZEND_ARG_TYPE_INFO(0, offset, IS_MIXED, 0) \
10199 ZEND_END_ARG_INFO()
102100
103- #elif PHP_VERSION_ID >= 80000
104-
105- #define ARGINFO_OFFSET_GET (name ) \
106- ZEND_BEGIN_ARG_INFO_EX(arginfo_##name, 0, 0, 1) \
107- ZEND_ARG_TYPE_INFO(0, offset, IS_MIXED, 0) \
108- ZEND_END_ARG_INFO()
109-
110- #define ARGINFO_OFFSET_SET (name ) \
111- ZEND_BEGIN_ARG_INFO_EX(arginfo_##name, 0, 0, 2) \
112- ZEND_ARG_TYPE_INFO(0, offset, IS_MIXED, 0) \
113- ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0) \
114- ZEND_END_ARG_INFO()
115-
116- #define ARGINFO_OFFSET_UNSET (name ) \
117- ZEND_BEGIN_ARG_INFO_EX(arginfo_##name, 0, 0, 1) \
118- ZEND_ARG_TYPE_INFO(0, offset, IS_MIXED, 0) \
119- ZEND_END_ARG_INFO()
120-
121- #else
122-
123- #define ARGINFO_OFFSET_GET (name ) \
124- ZEND_BEGIN_ARG_INFO_EX(arginfo_##name, 0, 0, 1) \
125- ZEND_ARG_INFO(0, offset) \
126- ZEND_END_ARG_INFO()
127-
128- #define ARGINFO_OFFSET_SET (name ) \
129- ZEND_BEGIN_ARG_INFO_EX(arginfo_##name, 0, 0, 2) \
130- ZEND_ARG_INFO(0, offset) \
131- ZEND_ARG_INFO(0, value) \
132- ZEND_END_ARG_INFO()
133-
134- #define ARGINFO_OFFSET_UNSET (name ) \
135- ZEND_BEGIN_ARG_INFO_EX(arginfo_##name, 0, 0, 1) \
136- ZEND_ARG_INFO(0, offset) \
137- ZEND_END_ARG_INFO()
138-
139- #endif
140-
141- #if PHP_VERSION_ID >= 80100
142-
143101#define ARGINFO_NONE_RETURN_TYPE (name , type ) \
144102 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_##name, 0, 0, type, 0) \
145103 ZEND_END_ARG_INFO()
146- #else
147-
148- #define ARGINFO_NONE_RETURN_TYPE (name , type ) \
149- ZEND_BEGIN_ARG_INFO_EX(arginfo_##name, 0, 0, 0) \
150- ZEND_END_ARG_INFO()
151-
152- #endif
153104
154- #if PHP_VERSION_ID >= 80000
155105#define DS_BEGIN_ARG_WITH_RETURN_DS_INFO_EX (name , pass_by_ref , required_num_args , class_name , allow_null ) \
156106 static const zend_internal_arg_info arginfo_##name[] = { \
157107 { (const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_INIT_CLASS_CONST(PHP_DS_NS_NAME#class_name, allow_null, 0), pass_by_ref},
158- #elif PHP_VERSION_ID >= 70200
159- #define DS_BEGIN_ARG_WITH_RETURN_DS_INFO_EX (name , pass_by_ref , required_num_args , class_name , allow_null ) \
160- static const zend_internal_arg_info arginfo_##name[] = { \
161- { (const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_ENCODE_CLASS_CONST(PHP_DS_NS_NAME#class_name, allow_null), pass_by_ref, 0 },
162- #else
163- #define DS_BEGIN_ARG_WITH_RETURN_DS_INFO_EX (name , pass_by_ref , required_num_args , class_name , allow_null ) \
164- static const zend_internal_arg_info arginfo_##name[] = { \
165- { (const char*)(zend_uintptr_t)(required_num_args), PHP_DS_NS_NAME#class_name, IS_OBJECT, pass_by_ref, allow_null, 0 },
166- #endif
167108
168- #if PHP_VERSION_ID >= 80000
169109#define DS_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX (name , pass_by_ref , required_num_args , class_name , allow_null ) \
170110 static const zend_internal_arg_info arginfo_##name[] = { \
171111 { (const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_INIT_CLASS_CONST(class_name, allow_null, 0), pass_by_ref},
172- #elif PHP_VERSION_ID >= 70200
173- #define DS_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX (name , pass_by_ref , required_num_args , class_name , allow_null ) \
174- static const zend_internal_arg_info arginfo_##name[] = { \
175- { (const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_ENCODE_CLASS_CONST(class_name, allow_null), pass_by_ref, 0 },
176- #else
177- #define DS_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX (name , pass_by_ref , required_num_args , class_name , allow_null ) \
178- static const zend_internal_arg_info arginfo_##name[] = { \
179- { (const char*)(zend_uintptr_t)(required_num_args), class_name, IS_OBJECT, pass_by_ref, allow_null, 0 },
180- #endif
181112
182- #if PHP_VERSION_ID >= 80100
183113#define DS_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (name , pass_by_ref , required_num_args , type , allow_null ) \
184114 static const zend_internal_arg_info arginfo_##name[] = { \
185115 { (const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_INIT_CODE(type, allow_null, _ZEND_ARG_INFO_FLAGS(pass_by_ref, 0, 0)) },
186- #elif PHP_VERSION_ID >= 80000
187- #define DS_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (name , pass_by_ref , required_num_args , type , allow_null ) \
188- static const zend_internal_arg_info arginfo_##name[] = { \
189- { (const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_INIT_CODE(type, allow_null, _ZEND_ARG_INFO_FLAGS(pass_by_ref, 0)) },
190- #elif PHP_VERSION_ID >= 70200
191- #define DS_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (name , pass_by_ref , required_num_args , type , allow_null ) \
192- static const zend_internal_arg_info arginfo_##name[] = { \
193- { (const char*)(zend_uintptr_t)(required_num_args), ZEND_TYPE_ENCODE(type, allow_null), pass_by_ref, 0 },
194- #else
195- #define DS_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (name , pass_by_ref , required_num_args , type , allow_null ) \
196- static const zend_internal_arg_info arginfo_##name[] = { \
197- { (const char*)(zend_uintptr_t)(required_num_args), NULL, type, pass_by_ref, allow_null, 0 },
198- #endif
199116
200117#define ARGINFO_ZVAL_RETURN_BOOL (name , z ) \
201118 DS_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, 0, 1, _IS_BOOL, 0) \
0 commit comments