ID: 29967 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Documentation problem PHP Version: 5.0.1 New Comment:
This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Added to func_get_args, func_get_arg, func_num_args: "This function can not be used directly as a function parameter. You have to assign the result to a variable and pass that variable instead." I'm not sure why it's not possible. If you insist on telling this in the documentation, ask at internals and reopen this bug ;-). Previous Comments: ------------------------------------------------------------------------ [2004-09-03 10:35:42] [EMAIL PROTECTED] I forgot: it would be nice to know why this doesn't work, e.g. whats the rational behind it. Thanks ------------------------------------------------------------------------ [2004-09-03 10:31:51] [EMAIL PROTECTED] Description: ------------ It should be mentioned on the documentation page that func_get_args() can't be used as a function parameter directly, e.g.: $ret = call_user_func_array('mysql_connect', func_get_args()); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29967&edit=1