Req #34392 [Com]: Similiar to __isset, we need an __ismethod for __call overload
| From: | wclssdn at yeah dot net | Date: | Fri, 30 Sep 2011 07:30:20 +0000 |
| Subject: | Req #34392 [Com]: Similiar to __isset, we need an __ismethod for __call overload | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163991@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
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