Doc #71113 [Asn->Csd]: Undocumented behavior of func_get_arg(s)

From: Date: Thu, 17 Dec 2015 09:46:10 +0000
Subject: Doc #71113 [Asn->Csd]: Undocumented behavior of func_get_arg(s)
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12944@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71113&edit=1 ID: 71113 Updated by: cmb@php.net Reported by: kogleron at gmail dot com Summary: Undocumented behavior of func_get_arg(s) -Status: Assigned +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: OS X 10.11.1 PHP Version: 7.0.0 Assigned To: cmb Block user comment: N Private report: N 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. Previous Comments: ------------------------------------------------------------------------ [2015-12-17 09:45:45] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=338280 Log: fixed #71113: Undocumented behavior of func_get_arg(s) ------------------------------------------------------------------------ [2015-12-14 09:11:26] laruence@php.net this has been documented in https://github.com/php/php-src/blob/PHP-7.0.0/UPGRADING#L190 maybe the document should be updated thanks ------------------------------------------------------------------------ [2015-12-14 08:19:22] kogleron at gmail dot com Description: ------------ Possibility to modify results from func_get_args() inside a function. Test script: --------------- <?php function foo($params){ print_r(['Before' => func_get_args()]); $params['from_foo1'] = 2; print_r(['After' => func_get_args()]); } foo(['from_global' => 1]); Expected result: ---------------- Array ( [Before] => Array ( [0] => Array ( [from_global] => 1 ) ) ) Array ( [After] => Array ( [0] => Array ( [from_global] => 1 ) ) ) Actual result: -------------- Array ( [Before] => Array ( [0] => Array ( [from_global] => 1 ) ) ) Array ( [After] => Array ( [0] => Array ( [from_global] => 1 [from_foo1] => 2 ) ) ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71113&edit=1

« previous php.doc.bugs (#12944) next »