is_callable and method_exists always true when __call is defined
| From: | Davey Shafik | Date: | Sat, 09 Jul 2005 04:08:03 +0000 |
| Subject: | is_callable and method_exists always true when __call is defined | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-17203@lists.php.net to get a copy of this message | ||
Dear all,
I came across something when I found this bug (http://bugs.php.net/bug.php?id=33621).
Should is_callable() and method_exists() always return true when the method doesn't *really* exist? i.e. it would only be called via __call()
Is it possible to add an argument to make it only check "real" methods at the very least? Or some way to additionally distinguish between these
two things?
- Davey