cvs: phpdoc /en language-snippets.ent /en/reference/funchand/functions func-get-arg.xml func-get-args.xml func-num-args.xml

From: Date: Wed, 03 Aug 2005 20:28:13 +0000
Subject: cvs: phpdoc /en language-snippets.ent /en/reference/funchand/functions func-get-arg.xml func-get-args.xml func-num-args.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969369470@lists.php.net to get a copy of this message
sean Wed Aug 3 16:28:13 2005 EDT Modified files: /phpdoc/en language-snippets.ent /phpdoc/en/reference/funchand/functions func-get-arg.xml func-get-args.xml func-num-args.xml Log: add note about using these functions as parameters http://cvs.php.net/diff.php/phpdoc/en/language-snippets.ent?r1=1.152&r2=1.153&ty=u Index: phpdoc/en/language-snippets.ent diff -u phpdoc/en/language-snippets.ent:1.152 phpdoc/en/language-snippets.ent:1.153 --- phpdoc/en/language-snippets.ent:1.152 Thu Jul 21 17:37:48 2005 +++ phpdoc/en/language-snippets.ent Wed Aug 3 16:28:11 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.152 $ --> +<!-- $Revision: 1.153 $ --> <!-- Keep 'em sorted --> @@ -61,6 +61,11 @@ etc. have been available. For more information, read the manual section on &link.superglobals;</para></note>'> +<!ENTITY note.funcnoparam '<note><para>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.</para></note>'> + <!-- Tips --> <!ENTITY tip.fopen-wrapper '<tip><simpara>You can use a URL as a http://cvs.php.net/diff.php/phpdoc/en/reference/funchand/functions/func-get-arg.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc/en/reference/funchand/functions/func-get-arg.xml diff -u phpdoc/en/reference/funchand/functions/func-get-arg.xml:1.7 phpdoc/en/reference/funchand/functions/func-get-arg.xml:1.8 --- phpdoc/en/reference/funchand/functions/func-get-arg.xml:1.7 Fri Sep 10 12:38:02 2004 +++ phpdoc/en/reference/funchand/functions/func-get-arg.xml Wed Aug 3 16:28:12 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --> <refentry id="function.func-get-arg"> <refnamediv> @@ -27,6 +27,9 @@ arguments actually passed, a warning will be generated and <function>func_get_arg</function> will return &false;. </simpara> + + &note.funcnoparam; + <para> <informalexample> <programlisting role="php"> http://cvs.php.net/diff.php/phpdoc/en/reference/funchand/functions/func-get-args.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc/en/reference/funchand/functions/func-get-args.xml diff -u phpdoc/en/reference/funchand/functions/func-get-args.xml:1.9 phpdoc/en/reference/funchand/functions/func-get-args.xml:1.10 --- phpdoc/en/reference/funchand/functions/func-get-args.xml:1.9 Wed Feb 9 10:26:06 2005 +++ phpdoc/en/reference/funchand/functions/func-get-args.xml Wed Aug 3 16:28:13 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --> <refentry id="function.func-get-args"> <refnamediv> @@ -29,6 +29,9 @@ account for default (non-passed) arguments. </simpara> </note> + + &note.funcnoparam; + <para> <informalexample> <programlisting role="php"> http://cvs.php.net/diff.php/phpdoc/en/reference/funchand/functions/func-num-args.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc/en/reference/funchand/functions/func-num-args.xml diff -u phpdoc/en/reference/funchand/functions/func-num-args.xml:1.6 phpdoc/en/reference/funchand/functions/func-num-args.xml:1.7 --- phpdoc/en/reference/funchand/functions/func-num-args.xml:1.6 Fri Sep 10 12:38:02 2004 +++ phpdoc/en/reference/funchand/functions/func-num-args.xml Wed Aug 3 16:28:13 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --> <refentry id="function.func-num-args"> <refnamediv> @@ -22,6 +22,9 @@ its result may be assigned to a variable, which can then be passed to the function. </simpara> + + &note.funcnoparam; + <para> <informalexample> <programlisting role="php">

« previous php.doc (#969369470) next »