[PHP4BETA] CVS update: php4/ext/com

From: Date: Fri, 28 May 1999 11:09:39 +0000
Subject: [PHP4BETA] CVS update: php4/ext/com
Groups: php.version4 
Request: Send a blank email to php-version4+get-1146@lists.php.net to get a copy of this message
Date: Friday May 28, 1999 @ 7:09 Author: zeev Update of /repository/php4/ext/com In directory php:/tmp/cvs-serv4149/ext/com Modified Files: COM.c Log Message: * 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. Index: php4/ext/com/COM.c diff -u php4/ext/com/COM.c:1.4 php4/ext/com/COM.c:1.5 --- php4/ext/com/COM.c:1.4 Fri May 21 06:05:43 1999 +++ php4/ext/com/COM.c Fri May 28 07:09:39 1999 @@ -879,15 +879,14 @@ 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); } -- PHP 4 Beta

« previous php.version4 (#1146) next »