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

From: Date: Thu, 17 Dec 2015 09:45:42 +0000
Subject: svn: /phpdoc/en/trunk/ language-snippets.ent reference/funchand/functions/func-get-arg.xml reference/funchand/functions/func-get-args.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13897@lists.php.net to get a copy of this message
cmb Thu, 17 Dec 2015 09:45:42 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=338280 Log: fixed #71113: Undocumented behavior of func_get_arg(s) Bug: https://bugs.php.net/71113 (Assigned) Undocumented behavior of func_get_arg(s) Changed paths: U phpdoc/en/trunk/language-snippets.ent U phpdoc/en/trunk/reference/funchand/functions/func-get-arg.xml U phpdoc/en/trunk/reference/funchand/functions/func-get-args.xml Modified: phpdoc/en/trunk/language-snippets.ent =================================================================== --- phpdoc/en/trunk/language-snippets.ent 2015-12-17 09:40:54 UTC (rev 338279) +++ phpdoc/en/trunk/language-snippets.ent 2015-12-17 09:45:42 UTC (rev 338280) @@ -46,7 +46,8 @@ called if there is an uncaught exception thrown in a previous callback.</para></note>'> <!ENTITY note.funcbyref '<note xmlns="http://docbook.org/ns/docbook"><para>If the arguments are passed by reference, -any changes to the arguments will be reflected in the values returned by this function.</para></note>'> +any changes to the arguments will be reflected in the values returned by this function. As of PHP 7 +the current values will also be returned if the arguments are passed by value.</para></note>'> <!ENTITY note.funcnoparam '<note xmlns="http://docbook.org/ns/docbook"><para>Because this function depends on the current scope to determine parameter details, it cannot be used as a Modified: phpdoc/en/trunk/reference/funchand/functions/func-get-arg.xml =================================================================== --- phpdoc/en/trunk/reference/funchand/functions/func-get-arg.xml 2015-12-17 09:40:54 UTC (rev 338279) +++ phpdoc/en/trunk/reference/funchand/functions/func-get-arg.xml 2015-12-17 09:45:42 UTC (rev 338280) @@ -187,9 +187,16 @@ ?> ]]> </programlisting> - &example.outputs; + &example.outputs.7; <screen> As passed : 'bar' +After change : 'baz' +As passed : 'bar' +After change : 'baz' + </screen> + &example.outputs.5; + <screen> +As passed : 'bar' After change : 'bar' As passed : 'bar' After change : 'baz' Modified: phpdoc/en/trunk/reference/funchand/functions/func-get-args.xml =================================================================== --- phpdoc/en/trunk/reference/funchand/functions/func-get-args.xml 2015-12-17 09:40:54 UTC (rev 338279) +++ phpdoc/en/trunk/reference/funchand/functions/func-get-args.xml 2015-12-17 09:45:42 UTC (rev 338280) @@ -178,18 +178,33 @@ ?> ]]> </programlisting> - &example.outputs; + &example.outputs.7; <screen> As passed : array ( 0 => 'bar', ) After change : array ( + 0 => 'baz', +) +As passed : array ( 0 => 'bar', ) +After change : array ( + 0 => 'baz', +) + </screen> + &example.outputs.5; + <screen> As passed : array ( 0 => 'bar', ) After change : array ( + 0 => 'bar', +) +As passed : array ( + 0 => 'bar', +) +After change : array ( 0 => 'baz', ) </screen>

« previous php.doc.cvs (#13897) next »