|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #34392 Similiar to __isset, we need an __ismethod for __call overload
Submitted: 2005-09-06 16:27 UTC Modified: 2015-01-18 04:22 UTC
Avg. Score:3.6 ± 1.3
Reproduced:6 of 7 (85.7%)
Same Version:3 (50.0%)
Same OS:1 (16.7%)
From: php dot net at sharpdreams dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5CVS-2005-09-06 (snap) OS: Win32
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-09-06 16:27 UTC] php dot net at sharpdreams dot com
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:

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



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-30 07:30 UTC] wclssdn at yeah dot net
 [2015-01-07 22:33 UTC]
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues
 [2015-01-07 22:33 UTC]
Please update your requirements if you think does not meet the needs in this issue.
 [2015-01-18 04:22 UTC] php-bugs at lists dot php dot net
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.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Aug 12 10:01:25 2020 UTC