#20216 [NEW]: is_callable needs documentation

From: Date: Fri, 01 Nov 2002 22:53:24 +0000
Subject: #20216 [NEW]: is_callable needs documentation
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969349401@lists.php.net to get a copy of this message
From: leon@leonatkinson.com Operating system: RH 7.3 PHP version: 4CVS-2002-11-01 PHP Bug Type: Documentation problem Bug description: is_callable needs documentation Please add a description of is_callable to the documentation. Here are some rough notes about how what this function does. This function wraps zend_is_callable. The first argument is the name of a function or method. Class an object methods are specified by passing an array with two elements: class or object and method name. The second argument seems to be for checking syntax only, but I can't figure out how to make is_callable return FALSE when the second argument is TRUE. The third argument receives the "callable name". In the example below it's "a::b". Note, however, that despite the implication that a::b() is a callable static method, this is not the case. <? class a { var $c; function b() { return($this->c); } } $d = new a; if(is_callable(array($d, 'b'), FALSE, $name)) { print($name); } ?> -- Edit bug report at http://bugs.php.net/?id=20216&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20216&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20216&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20216&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20216&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20216&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20216&r=support Expected behavior: http://bugs.php.net/fix.php?id=20216&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20216&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20216&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20216&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20216&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20216&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20216&r=isapi

« previous php.doc (#969349401) next »