Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c

From: Date: Thu, 03 Jul 2003 07:27:29 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1446@lists.php.net to get a copy of this message
On Thu, 2003-07-03 at 03:39, Stanislav Malyshev wrote: > SH>> an object, you would get the class name of the current class. Using > SH>> get_class_name() was inappropriate here, as it was getting the class > SH>> name of the current class, not the parent class. > > Please read the API - for example, in file zend_object_handlers.h. > get_class_name has a parameter "int parent" *exactly* for this purpose. Please take a look at the current implementation (not the patch, but how it actually looks in zend_builtin_functions.c), I think that since this function needs to handle both an object, and a class name, getting the class entry and accessing it directly off that is a cleaner implementation. I don't believe you have an accessor for accessing this information off the class_entry - right? -Sterling -- Coffee is the common man's gold, and like gold, it brings to every person the feeling of luxury and nobility. - Sheik Abd-al-Kadir, In Praise of Coffee, 1587

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