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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php dot net at sharpdreams dot com
New email:
PHP Version: OS:

 

 [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 19 06:01:29 2024 UTC