Edit report at https://bugs.php.net/bug.php?id=34392&edit=1
ID: 34392 Comment by: wclssdn at yeah dot net Reported by: php dot net at sharpdreams dot com Summary: Similiar to __isset, we need an __ismethod for __call overload Status: Open Type: Feature/Change Request Package: Feature/Change Request Operating System: Win32 PHP Version: 5CVS-2005-09-06 (snap) Block user comment: N Private report: N New Comment: method_exists() Previous Comments: ------------------------------------------------------------------------ [2005-09-06 16:27:10] php dot net at sharpdreams dot com Description: ------------ I cannot expect this to come any time soon, maybe for 6CVS. For isset() and unset() we now have __isset and __unset overload methods. We need another magic method for method_exists, e.g., __ismethod (or a similiar name, __iscallable, etc). Reproduce code: --------------- <?php class Foo { public function __call( $method, $args ) { // some magic with $methods } public function __ismethod( $method ) { // returns true or false if $method is a // valid method } } ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=34392&edit=1