cvs: ZendEngine2 / zend_API.h zend_builtin_functions.c zend_object_handlers.h

From: Date: Sun, 09 Jun 2002 14:20:38 +0000
Subject: cvs: ZendEngine2 / zend_API.h zend_builtin_functions.c zend_object_handlers.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-159@lists.php.net to get a copy of this message
phanto Sun Jun 9 10:20:38 2002 EDT Modified files: /ZendEngine2 zend_API.h zend_builtin_functions.c zend_object_handlers.h Log: only check for an available class entry instead of the std_object_handlers on some places #some linuxtag work Index: ZendEngine2/zend_API.h diff -u ZendEngine2/zend_API.h:1.118 ZendEngine2/zend_API.h:1.119 --- ZendEngine2/zend_API.h:1.118 Mon May 20 03:17:30 2002 +++ ZendEngine2/zend_API.h Sun Jun 9 10:20:37 2002 @@ -84,19 +84,7 @@ -#define INIT_CLASS_ENTRY(class_container, class_name, functions) \ - { \ - class_container.name = strdup(class_name); \ - class_container.name_length = sizeof(class_name)-1; \ - class_container.builtin_functions = functions; \ - class_container.constructor = NULL; \ - class_container.destructor = NULL; \ - class_container.clone = NULL; \ - class_container.create_object = NULL; \ - class_container.handle_function_call = NULL; \ - class_container.handle_property_get = NULL; \ - class_container.handle_property_set = NULL; \ - } +#define INIT_CLASS_ENTRY(class_container, class_name, functions) INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, NULL, NULL, NULL) #define INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset) \ { \ Index: ZendEngine2/zend_builtin_functions.c diff -u ZendEngine2/zend_builtin_functions.c:1.125 ZendEngine2/zend_builtin_functions.c:1.126 --- ZendEngine2/zend_builtin_functions.c:1.125 Mon May 13 04:41:55 2002 +++ ZendEngine2/zend_builtin_functions.c Sun Jun 9 10:20:37 2002 @@ -588,7 +588,7 @@ } /* TBI!! new object handlers */ - if(!IS_ZEND_STD_OBJECT(**obj)) { + if(!HAS_CLASS_ENTRY(**obj)) { RETURN_FALSE; } @@ -706,7 +706,7 @@ if (Z_TYPE_PP(class) == IS_OBJECT) { /* TBI!! new object handlers */ - if(!IS_ZEND_STD_OBJECT(**class)) { + if(!HAS_CLASS_ENTRY(**class)) { RETURN_FALSE; } ce = Z_OBJCE_PP(class); @@ -751,7 +751,7 @@ } /* TBI!! new object handlers */ - if(!IS_ZEND_STD_OBJECT(**klass)) { + if(!HAS_CLASS_ENTRY(**klass)) { RETURN_FALSE; } Index: ZendEngine2/zend_object_handlers.h diff -u ZendEngine2/zend_object_handlers.h:1.5 ZendEngine2/zend_object_handlers.h:1.6 --- ZendEngine2/zend_object_handlers.h:1.5 Tue Apr 30 05:56:48 2002 +++ ZendEngine2/zend_object_handlers.h Sun Jun 9 10:20:37 2002 @@ -74,5 +74,6 @@ extern zend_object_handlers std_object_handlers; #define IS_ZEND_STD_OBJECT(z) ((z).type == IS_OBJECT && Z_OBJ_HT(z) == &std_object_handlers) +#define HAS_CLASS_ENTRY(z) (Z_OBJ_HT(z)->get_class_entry != NULL) #endif

« previous php.zend-engine.cvs (#159) next »