Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c
| From: | Stanislav Malyshev | Date: | Thu, 03 Jul 2003 07:39:12 +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-1445@lists.php.net to get a copy of this message | ||
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.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109