#30063 [NEW]: call_user_func callable for instance methods, but not documented

From: Date: Sat, 11 Sep 2004 02:46:20 +0000
Subject: #30063 [NEW]: call_user_func callable for instance methods, but not documented
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969363975@lists.php.net to get a copy of this message
From: aqsalter at westnet dot com dot au Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: call_user_func callable for instance methods, but not documented Description: ------------ the current documentation for call_user_func and call_user_func_array does not mention that it can be used for calling instances as well... There is some information in one of the comments to call_user_func. Reproduce code: --------------- <?php class provider { function myfunction($x) { echo "burak was at $x\n"; } } $x= new provider(); call_user_func(array($x,'myfunction'),"a conference"); ?> Expected result: ---------------- burak was at a conference Actual result: -------------- The documentation does not mention that you can use call_user_func with instance methods. -- Edit bug report at http://bugs.php.net/?id=30063&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30063&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30063&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30063&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30063&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30063&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30063&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30063&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30063&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30063&r=support Expected behavior: http://bugs.php.net/fix.php?id=30063&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30063&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30063&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30063&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30063&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30063&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30063&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30063&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30063&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30063&r=mysqlcfg

« previous php.doc (#969363975) next »