|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2021-04-20 17:00 UTC] cmb@php.net
-Type: Bug
+Type: Documentation Problem
-Package: *General Issues
+Package: Scripting Engine problem
[2021-04-20 17:00 UTC] cmb@php.net
[2021-05-11 06:42 UTC] krakjoe@php.net
-Package: Scripting Engine problem
+Package: Documentation problem
[2021-06-03 02:28 UTC] lufei@php.net
[2023-05-06 03:00 UTC] timkeller at aol dot com
[2023-09-29 06:41 UTC] ta dot nnaowens6 at googlemail dot com
[2025-04-25 08:30 UTC] vrana@php.net
[2025-04-25 08:30 UTC] vrana@php.net
-Status: Open
+Status: Closed
-Package: Documentation problem
+Package: *General Issues
-Assigned To:
+Assigned To: vrana
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 20:00:01 2025 UTC |
Description: ------------ func_get_args() in combination with named args returns an empty array. Test script: --------------- <?php function foo(...$args) { //var_dump($args); var_dump(func_get_args()); } foo(a: 9, b: 99, c: 999); Expected result: ---------------- I expected an array with 3 elements. Probably: array(3) { ["a"]=> int(9) ["b"]=> int(99) ["c"]=> int(999) } Or: array(3) { [0]=> int(9) [1]=> int(99) [2]=> int(999) } Actual result: -------------- array(0) { }