Is there a cleaner way to find out if a parameter that was passed into a
function is a certin type. Currently i use.
strcmp(Z_OBJCE_P(val)-name, class)
- Brad
__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
Hi,
how does
if (Z_TYPE_P(val) == IS_OBJECT) { ...
work for you?
- Markus
On Sun, May 05, 2002 at 09:55:24AM -0700, brad lafountain wrote :
Is there a cleaner way to find out if a parameter that was passed into a
function is a certin type. Currently i use.
Im looking for the exact type.. not if is an object or not.
I want to know that is a class of type myClass
i just found zend_check_class
/*
* C'est une UGLY HACK.
*/
if (ce-refcount == expected_ce-refcount) {
If you can get a zend_class_entry * to the class you want to check again
then ce-refcount will be unique-per-class. In Engine 2 ce itself will be
unique.
Andi
At 10:03 05/05/2002 -0700, brad lafountain wrote:
Im looking for the exact type.. not if is an object or not.
I want to know that
A.
I didn't know that refcount for a ce was unique.. I thought it had something
to do with how many instances of the object have been created.
thanks for the info.. it will work for me.
- Brad
--- Andi Gutmans [EMAIL PROTECTED] wrote:
If you can get a zend_class_entry * to the