From:             php dot net at sharpdreams dot com
Operating system: Win32
PHP version:      5CVS-2005-09-06 (snap)
PHP Bug Type:     Feature/Change Request
Bug description:  Similiar to __isset, we need an __ismethod for __call overload

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 bug report at http://bugs.php.net/?id=34392&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34392&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34392&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34392&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34392&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34392&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34392&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34392&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34392&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34392&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34392&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34392&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34392&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34392&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34392&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34392&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34392&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34392&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34392&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34392&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34392&r=mysqlcfg

Reply via email to