summaryrefslogtreecommitdiff
path: root/ext/rpc/com/COM.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-05-28 11:09:39 +0000
committerZeev Suraski <zeev@php.net>1999-05-28 11:09:39 +0000
commit7a167cd0c1f6ee7c0dce0196b5ca9209a54f534c (patch)
tree93bd58936ab1c7d70e8641f5c02667e37477e775 /ext/rpc/com/COM.c
parentf1f4e6f478450a3398817fd55c647c9277944609 (diff)
downloadphp-git-7a167cd0c1f6ee7c0dce0196b5ca9209a54f534c.tar.gz
* Use new Zend macros for standardized definition of classes.
* Reverse bogus shutdown order. * Use the new object/class support of Zend to make the dir functions work again.
Diffstat (limited to 'ext/rpc/com/COM.c')
-rw-r--r--ext/rpc/com/COM.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/ext/rpc/com/COM.c b/ext/rpc/com/COM.c
index 8e93d7dbd4..404d069fb4 100644
--- a/ext/rpc/com/COM.c
+++ b/ext/rpc/com/COM.c
@@ -879,15 +879,14 @@ void php_COM_call_function_handler(INTERNAL_FUNCTION_PARAMETERS, zend_property_r
void php_register_COM_class()
{
- zend_class_entry class_entry, *registered_class;
+ zend_class_entry com_class_entry;
- class_entry.name = strdup("COM");
- class_entry.name_length = sizeof("COM")-1;
+ INIT_OVERLOADED_CLASS_ENTRY(com_class_entry, "COM", NULL,
+ php_COM_call_function_handler,
+ php_COM_get_property_handler,
+ php_COM_set_property_handler);
- class_entry.handle_property_get = php_COM_get_property_handler;
- class_entry.handle_property_set = php_COM_set_property_handler;
- class_entry.handle_function_call = php_COM_call_function_handler;
- registered_class = register_internal_class(&class_entry);
+ register_internal_class(&com_class_entry);
}