Date: 11/01/02
- Next message: Rui Hirokawa: "[PHP-DOC] cvs: phpdoc /en/reference/mbstring/functions mb-output-handler.xml"
- Previous message: thle <email protected>: "[PHP-DOC] #16397 [Com]: domxml_unlink_node()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: leon <email protected>
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-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Rui Hirokawa: "[PHP-DOC] cvs: phpdoc /en/reference/mbstring/functions mb-output-handler.xml"
- Previous message: thle <email protected>: "[PHP-DOC] #16397 [Com]: domxml_unlink_node()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

