Req #34392 [Fbk->NoF]: Similiar to __isset, we need an __ismethod for __call overload
| From: | php-bugs at lists dot php dot net | Date: | Sun, 18 Jan 2015 04:22:17 +0000 |
| Subject: | Req #34392 [Fbk->NoF]: Similiar to __isset, we need an __ismethod for __call overload | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-190013@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: php-bugs@lists.php.net
Reported by: php dot net at sharpdreams dot com
Summary: Similiar to __isset, we need an __ismethod for __call
overload
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: *General Issues
Operating System: Win32
PHP Version: 5CVS-2005-09-06 (snap)
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2015-01-07 22:33:06] danack@php.net
Please update your requirements if you think http://php.net/manual/en/function.method-exists.php
does not meet the needs in this issue.
------------------------------------------------------------------------
[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