struct _zend_class_entry {
char type;
zend_string *name;
- struct _zend_class_entry *parent;
+ zend_class_entry *parent;
int refcount;
uint32_t ce_flags;
HashTable properties_info;
HashTable constants_table;
- union _zend_function *constructor;
- union _zend_function *destructor;
- union _zend_function *clone;
- union _zend_function *__get;
- union _zend_function *__set;
- union _zend_function *__unset;
- union _zend_function *__isset;
- union _zend_function *__call;
- union _zend_function *__callstatic;
- union _zend_function *__tostring;
- union _zend_function *__debugInfo;
- union _zend_function *serialize_func;
- union _zend_function *unserialize_func;
+ zend_function *constructor;
+ zend_function *destructor;
+ zend_function *clone;
+ zend_function *__get;
+ zend_function *__set;
+ zend_function *__unset;
+ zend_function *__isset;
+ zend_function *__call;
+ zend_function *__callstatic;
+ zend_function *__tostring;
+ zend_function *__debugInfo;
+ zend_function *serialize_func;
+ zend_function *unserialize_func;
/* allocated only if class implements Iterator or IteratorAggregate interface */
zend_class_iterator_funcs *iterator_funcs_ptr;
int (*interface_gets_implemented)(zend_class_entry *iface, zend_class_entry *class_type); /* a class implements this interface */
};
zend_object_iterator *(*get_iterator)(zend_class_entry *ce, zval *object, int by_ref);
- union _zend_function *(*get_static_method)(zend_class_entry *ce, zend_string* method);
+ zend_function *(*get_static_method)(zend_class_entry *ce, zend_string* method);
/* serializer callbacks */
int (*serialize)(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data);
zend_string_release_ex(lcname, 0);
RETURN_TRUE;
} else {
- union _zend_function *func = NULL;
+ zend_function *func = NULL;
if (Z_TYPE_P(klass) == IS_OBJECT
&& Z_OBJ_HT_P(klass)->get_method != NULL
uint32_t fn_flags;
zend_string *function_name;
zend_class_entry *scope;
- union _zend_function *prototype;
+ zend_function *prototype;
uint32_t num_args;
uint32_t required_num_args;
zend_arg_info *arg_info;
};
typedef struct _zend_class_iterator_funcs {
- union _zend_function *zf_new_iterator;
- union _zend_function *zf_valid;
- union _zend_function *zf_current;
- union _zend_function *zf_key;
- union _zend_function *zf_next;
- union _zend_function *zf_rewind;
+ zend_function *zf_new_iterator;
+ zend_function *zf_valid;
+ zend_function *zf_current;
+ zend_function *zf_key;
+ zend_function *zf_next;
+ zend_function *zf_rewind;
} zend_class_iterator_funcs;
BEGIN_EXTERN_C()
INTERNAL_FUNCTION_PARAM_PASSTHRU);
}
-static union _zend_function *com_method_get(zend_object **object_ptr, zend_string *name, const zval *key)
+static zend_function *com_method_get(zend_object **object_ptr, zend_string *name, const zval *key)
{
zend_internal_function f, *fptr = NULL;
- union _zend_function *func;
+ zend_function *func;
DISPID dummy;
php_com_dotnet_object *obj = (php_com_dotnet_object*)*object_ptr;
return ret;
}
-static union _zend_function *com_constructor_get(zend_object *object)
+static zend_function *com_constructor_get(zend_object *object)
{
php_com_dotnet_object *obj = (php_com_dotnet_object *) object;
static zend_internal_function c, d, v;
f.num_args = 0; \
f.fn_flags = 0; \
f.handler = ZEND_FN(fn); \
- return (union _zend_function*)&f;
+ return (zend_function*)&f;
switch (obj->ce->name->val[0]) {
#if HAVE_MSCOREE_H
return NULL;
}
-static union _zend_function *saproxy_method_get(zend_object **object, zend_string *name, const zval *key)
+static zend_function *saproxy_method_get(zend_object **object, zend_string *name, const zval *key)
{
/* no methods */
return NULL;
return FAILURE;
}
-static union _zend_function *saproxy_constructor_get(zend_object *object)
+static zend_function *saproxy_constructor_get(zend_object *object)
{
/* user cannot instantiate */
return NULL;
/* "prototype" may be undefined if "scope" isn't set */
if (op_array->scope && op_array->prototype) {
if ((persist_ptr = zend_shared_alloc_get_xlat_entry(op_array->prototype))) {
- op_array->prototype = (union _zend_function*)persist_ptr;
+ op_array->prototype = (zend_function*)persist_ptr;
}
} else {
op_array->prototype = NULL;
return 1;
}
-static union _zend_function *dbh_method_get(zend_object **object, zend_string *method_name, const zval *key)
+static zend_function *dbh_method_get(zend_object **object, zend_string *method_name, const zval *key)
{
zend_function *fbc = NULL;
pdo_dbh_object_t *dbh_obj = php_pdo_dbh_fetch_object(*object);
}
}
-static union _zend_function *dbstmt_method_get(zend_object **object_pp, zend_string *method_name, const zval *key)
+static zend_function *dbstmt_method_get(zend_object **object_pp, zend_string *method_name, const zval *key)
{
zend_function *fbc = NULL;
zend_string *lc_method_name;
return stmt->std.properties;
}
-static union _zend_function *row_method_get(
+static zend_function *row_method_get(
zend_object **object_pp,
zend_string *method_name, const zval *key)
{
return FAILURE;
}
-static union _zend_function *row_get_ctor(zend_object *object)
+static zend_function *row_get_ctor(zend_object *object)
{
zend_throw_exception_ex(php_pdo_get_exception(), 0, "You may not create a PDORow manually");
return NULL;
/* Register SoapClient class */
/* BIG NOTE : THIS EMITS AN COMPILATION WARNING UNDER ZE2 - handle_function_call deprecated.
- soap_call_function_handler should be of type struct _zend_function, not (*handle_function_call).
+ soap_call_function_handler should be of type zend_function, not (*handle_function_call).
*/
{
INIT_CLASS_ENTRY(ce, PHP_SOAP_CLIENT_CLASSNAME, soap_client_functions);
}
} /* }}} */
-static union _zend_function *spl_recursive_it_get_method(zend_object **zobject, zend_string *method, const zval *key)
+static zend_function *spl_recursive_it_get_method(zend_object **zobject, zend_string *method, const zval *key)
{
- union _zend_function *function_handler;
+ zend_function *function_handler;
spl_recursive_it_object *object = spl_recursive_it_from_obj(*zobject);
zend_long level = object->level;
zval *zobj;
}
#endif
-static union _zend_function *spl_dual_it_get_method(zend_object **object, zend_string *method, const zval *key)
+static zend_function *spl_dual_it_get_method(zend_object **object, zend_string *method, const zval *key)
{
- union _zend_function *function_handler;
+ zend_function *function_handler;
spl_dual_it_object *intern;
intern = spl_dual_it_from_obj(*object);
}
/* }}} */
-static union _zend_function *incomplete_class_get_method(zend_object **object, zend_string *method, const zval *key) /* {{{ */
+static zend_function *incomplete_class_get_method(zend_object **object, zend_string *method, const zval *key) /* {{{ */
{
zval zobject;