Detect zval instance of class/subclass
| From: | Mark Skilbeck | Date: | Wed, 22 Sep 2010 18:35:17 +0000 |
| Subject: | Detect zval instance of class/subclass | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-7676@lists.php.net to get a copy of this message | ||
Hi, all.
I was wondering - supposing a function takes a parameter that can be either TypeA or TypeB, or any subclass thereof, what is the best way
to check for this requirement? Initially I was just comparing the names in the class entry, but, of course, that won't work for subclassed objects.
--
Mark Skilbeck
mahcuz.com