Testing the existence of a method
| From: | Eric van der Vlist | Date: | Wed, 05 Jan 2000 15:54:49 +0000 |
| Subject: | Testing the existence of a method | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-8926@lists.php.net to get a copy of this message | ||
Hi,
With PHP3 (3.0.11), I was using gettype to test if a method was
available (the return code was "user function" when the method was
existing, "unknown type" if not).
With PHP4 (latest CVS), gettype returns "unknown type" in all the cases
(when the method exists or not).
Is there another way to test the existence of a method with PHP4 ?
Thanks
Eric
--
------------------------------------------------------------------------
Eric van der Vlist Dyomedea
http://www.dyomedea.com http://www.ducotede.com
------------------------------------------------------------------------