php.net |  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
Votes:9
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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
19 + 42 = ?
Subscribe to this entry?

 
 [2005-09-06 16:27 UTC] 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
   }
}

?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-30 07:30 UTC] wclssdn at yeah dot net
method_exists()
 [2015-01-07 22:33 UTC] danack@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues
 [2015-01-07 22:33 UTC] 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.
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 22:01:29 2024 UTC