@@ -185,18 +185,15 @@ typedef struct _zend_fcall_info_cache {
185
185
#endif
186
186
187
187
#define INIT_CLASS_ENTRY (class_container , class_name , functions ) \
188
- INIT_OVERLOADED_CLASS_ENTRY (class_container, class_name, functions, NULL, NULL, NULL )
188
+ INIT_CLASS_ENTRY_EX (class_container, class_name, sizeof(class_name)-1, functions )
189
189
190
190
#define INIT_CLASS_ENTRY_EX (class_container , class_name , class_name_len , functions ) \
191
- INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, class_name_len, functions, NULL, NULL, NULL, NULL, NULL)
192
-
193
- #define INIT_OVERLOADED_CLASS_ENTRY_EX (class_container , class_name , class_name_len , functions , handle_fcall , handle_propget , handle_propset , handle_propunset , handle_propisset ) \
194
191
{ \
195
192
class_container.name = zend_string_init_interned(class_name, class_name_len, 1); \
196
- INIT_CLASS_ENTRY_INIT_METHODS(class_container, functions, handle_fcall, handle_propget, handle_propset, handle_propunset, handle_propisset ) \
193
+ INIT_CLASS_ENTRY_INIT_METHODS(class_container, functions) \
197
194
}
198
195
199
- #define INIT_CLASS_ENTRY_INIT_METHODS (class_container , functions , handle_fcall , handle_propget , handle_propset , handle_propunset , handle_propisset ) \
196
+ #define INIT_CLASS_ENTRY_INIT_METHODS (class_container , functions ) \
200
197
{ \
201
198
class_container.constructor = NULL; \
202
199
class_container.destructor = NULL; \
@@ -206,16 +203,16 @@ typedef struct _zend_fcall_info_cache {
206
203
class_container.create_object = NULL; \
207
204
class_container.interface_gets_implemented = NULL; \
208
205
class_container.get_static_method = NULL; \
209
- class_container.__call = handle_fcall; \
206
+ class_container.__call = NULL; \
210
207
class_container.__callstatic = NULL; \
211
208
class_container.__tostring = NULL; \
212
- class_container.__get = handle_propget; \
213
- class_container.__set = handle_propset; \
214
- class_container.__unset = handle_propunset; \
215
- class_container.__isset = handle_propisset; \
216
- class_container.__debugInfo = NULL; \
217
- class_container.serialize_func = NULL; \
218
- class_container.unserialize_func = NULL; \
209
+ class_container.__get = NULL; \
210
+ class_container.__set = NULL; \
211
+ class_container.__unset = NULL; \
212
+ class_container.__isset = NULL; \
213
+ class_container.__debugInfo = NULL; \
214
+ class_container.serialize = NULL; \
215
+ class_container.unserialize = NULL; \
219
216
class_container.parent = NULL; \
220
217
class_container.num_interfaces = 0; \
221
218
class_container.traits = NULL; \
@@ -229,15 +226,9 @@ typedef struct _zend_fcall_info_cache {
229
226
class_container.info.internal.builtin_functions = functions; \
230
227
}
231
228
232
- #define INIT_OVERLOADED_CLASS_ENTRY (class_container , class_name , functions , handle_fcall , handle_propget , handle_propset ) \
233
- INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, sizeof(class_name)-1, functions, handle_fcall, handle_propget, handle_propset, NULL, NULL)
234
229
235
230
#define INIT_NS_CLASS_ENTRY (class_container , ns , class_name , functions ) \
236
231
INIT_CLASS_ENTRY(class_container, ZEND_NS_NAME(ns, class_name), functions)
237
- #define INIT_OVERLOADED_NS_CLASS_ENTRY_EX (class_container , ns , class_name , functions , handle_fcall , handle_propget , handle_propset , handle_propunset , handle_propisset ) \
238
- INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, ZEND_NS_NAME(ns, class_name), sizeof(ZEND_NS_NAME(ns, class_name))-1, functions, handle_fcall, handle_propget, handle_propset, handle_propunset, handle_propisset)
239
- #define INIT_OVERLOADED_NS_CLASS_ENTRY (class_container , ns , class_name , functions , handle_fcall , handle_propget , handle_propset ) \
240
- INIT_OVERLOADED_CLASS_ENTRY(class_container, ZEND_NS_NAME(ns, class_name), functions, handle_fcall, handle_propget, handle_propset)
241
232
242
233
#ifdef ZTS
243
234
# define CE_STATIC_MEMBERS (ce ) (((ce)->type==ZEND_USER_CLASS)?(ce)->static_members_table:CG(static_members_table)[(zend_intptr_t)(ce)->static_members_table])
0 commit comments