* 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.
This commit is contained in:
Zeev Suraski 1999-05-28 11:09:39 +00:00
parent f1f4e6f478
commit 7a167cd0c1
5 changed files with 64 additions and 48 deletions

View file

@ -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);
}