Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c
| From: | Stanislav Malyshev | Date: | Thu, 03 Jul 2003 07:58:48 +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-1447@lists.php.net to get a copy of this message | ||
SH>> it actually looks in zend_builtin_functions.c), I think that since this
SH>> function needs to handle both an object, and a class name, getting the
SH>> class entry and accessing it directly off that is a cleaner
Not all objects have a PHP class entry. For example, Java objects can have
no PHP class entry by can still have class name and parent class name. This
is _exactly_ the purpose of get_class_name handler.
The implementation had indeed a bug - it called get_class_entry (not(!)
get_class_name) incorrectly. That's why you could see it working wrong -
because standard Zend obejcts use get_entry, not get_name. I will fix that
bug now.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109