|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-12-14 09:11 UTC] laruence@php.net
-Package: *Programming Data Structures
+Package: Documentation problem
[2015-12-14 09:11 UTC] laruence@php.net
[2015-12-17 09:13 UTC] cmb@php.net
-Summary: Problems with func_get_args
+Summary: Undocumented behavior of func_get_arg(s)
-Assigned To:
+Assigned To: cmb
[2015-12-17 09:14 UTC] cmb@php.net
-Type: Bug
+Type: Documentation Problem
[2015-12-17 09:45 UTC] cmb@php.net
[2015-12-17 09:46 UTC] cmb@php.net
-Status: Assigned
+Status: Closed
[2015-12-17 09:46 UTC] cmb@php.net
[2020-02-07 06:07 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 20:00:01 2025 UTC |
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 ) ) )