ID: 30063 Updated by: [EMAIL PROTECTED] Reported By: aqsalter at westnet dot com dot au Status: Open Bug Type: Documentation problem PHP Version: Irrelevant New Comment:
I don't know what is meant by "calling instances", I assume he means "ability to call a method of a class" - This information should be present, but not on this page. I think we need some information about the "callback" type. This information really isn't specific to call_user_func, either. I suggest we pop a language.types.callback page in, and link it somehow from pages that use a callback function. Previous Comments: ------------------------------------------------------------------------ [2004-09-11 04:46:18] aqsalter at westnet dot com dot au 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 this bug report at http://bugs.php.net/?id=30063&edit=1