Req #34392 [Opn->Fbk]: Similiar to __isset, we need an __ismethod for __call overload

From: Date: Wed, 07 Jan 2015 22:33:06 +0000
Subject: Req #34392 [Opn->Fbk]: Similiar to __isset, we need an __ismethod for __call overload
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189718@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=34392&edit=1 ID: 34392 Updated by: danack@php.net Reported by: php dot net at sharpdreams dot com Summary: Similiar to __isset, we need an __ismethod for __call overload -Status: Open +Status: Feedback Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Win32 PHP Version: 5CVS-2005-09-06 (snap) Block user comment: N Private report: N New Comment: Please update your requirements if you think http://php.net/manual/en/function.method-exists.php does not meet the needs in this issue. Previous Comments: ------------------------------------------------------------------------ [2011-09-30 07:30:20] wclssdn at yeah dot net method_exists() ------------------------------------------------------------------------ [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

« previous php.bugs (#189718) next »