Re: [PHP-DEV] is_callable and method_exists always true when __call is defined

2005-07-09 Thread M. Sokolewicz
I would expect is_callable() to return true (since it is callable), but method_exists() to return false (since it doesn't really exist, it's magic)... at least, that's what would make most sense to me... Marcus Boerger wrote: Hello Davey, if you ask me it is stupid to return true because __

Re: [PHP-DEV] is_callable and method_exists always true when __call is defined

2005-07-09 Thread Marcus Boerger
Hello Davey, if you ask me it is stupid to return true because __call exists since the user can pretty easy do that by adding one more check. But he can in no way query if the function really exists or not (well he can use reflection but that is thousand times slower...) regards marcus Saturda

[PHP-DEV] is_callable and method_exists always true when __call is defined

2005-07-08 Thread Davey Shafik
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 che