From c54542ee8fc4a5b2f01083e198da34abc8fa5c72 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 10 Sep 2004 14:50:48 +0000 Subject: [PATCH] Can't be used as a function parameter (bug #29967) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168312 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/funchand/functions/func-get-arg.xml | 4 +++- reference/funchand/functions/func-get-args.xml | 4 +++- reference/funchand/functions/func-num-args.xml | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/reference/funchand/functions/func-get-arg.xml b/reference/funchand/functions/func-get-arg.xml index ca5959ca5a..f09f8a6018 100644 --- a/reference/funchand/functions/func-get-arg.xml +++ b/reference/funchand/functions/func-get-arg.xml @@ -1,5 +1,5 @@ - + @@ -18,6 +18,8 @@ function's argument list. Function arguments are counted starting from zero. func_get_arg will generate a warning if called from outside of a function definition. + 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. If arg_num is greater than the number of diff --git a/reference/funchand/functions/func-get-args.xml b/reference/funchand/functions/func-get-args.xml index 39c12c9cc4..667f49f31d 100644 --- a/reference/funchand/functions/func-get-args.xml +++ b/reference/funchand/functions/func-get-args.xml @@ -1,5 +1,5 @@ - + @@ -19,6 +19,8 @@ member of the current user-defined function's argument list. func_get_args will generate a warning if called from outside of a function definition. + 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. diff --git a/reference/funchand/functions/func-num-args.xml b/reference/funchand/functions/func-num-args.xml index 7be3aa94cb..bcd4f5f3e0 100644 --- a/reference/funchand/functions/func-num-args.xml +++ b/reference/funchand/functions/func-num-args.xml @@ -1,5 +1,5 @@ - + @@ -18,6 +18,8 @@ Returns the number of arguments passed into the current user-defined function. func_num_args will generate a warning if called from outside of a user-defined function. + 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.