From e4847a471dfaae60066a3e750b2f333b36a4b879 Mon Sep 17 00:00:00 2001 From: Sean Coates Date: Wed, 3 Aug 2005 20:28:13 +0000 Subject: [PATCH] add note about using these functions as parameters git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@192331 c90b9560-bf6c-de11-be94-00142212c4b1 --- language-snippets.ent | 5 +++++ reference/funchand/functions/func-get-arg.xml | 5 ++++- reference/funchand/functions/func-get-args.xml | 5 ++++- reference/funchand/functions/func-num-args.xml | 5 ++++- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/language-snippets.ent b/language-snippets.ent index 6032e63f90..a0f21b614f 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -61,6 +61,11 @@ directive but instead use other means, such as the &link.superglobals;. etc. have been available. For more information, read the manual section on &link.superglobals;'> +Because this function depends on the +current scope to determine parameter details, it cannot be used as a +function parameter. If you must pass this value, assign the results to a +variable, and pass the variable.'> + You can use a URL as a diff --git a/reference/funchand/functions/func-get-arg.xml b/reference/funchand/functions/func-get-arg.xml index 31a03a13fc..c1128b0f3f 100644 --- a/reference/funchand/functions/func-get-arg.xml +++ b/reference/funchand/functions/func-get-arg.xml @@ -1,5 +1,5 @@ - + @@ -27,6 +27,9 @@ arguments actually passed, a warning will be generated and func_get_arg will return &false;. + + ¬e.funcnoparam; + diff --git a/reference/funchand/functions/func-get-args.xml b/reference/funchand/functions/func-get-args.xml index 9ea49ac5e7..ab4550c37e 100644 --- a/reference/funchand/functions/func-get-args.xml +++ b/reference/funchand/functions/func-get-args.xml @@ -1,5 +1,5 @@ - + @@ -29,6 +29,9 @@ account for default (non-passed) arguments. + + ¬e.funcnoparam; + diff --git a/reference/funchand/functions/func-num-args.xml b/reference/funchand/functions/func-num-args.xml index 6e64e8b6da..edf806ea1d 100644 --- a/reference/funchand/functions/func-num-args.xml +++ b/reference/funchand/functions/func-num-args.xml @@ -1,5 +1,5 @@ - + @@ -22,6 +22,9 @@ its result may be assigned to a variable, which can then be passed to the function. + + ¬e.funcnoparam; +