|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-12-19 08:01 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2019-12-19 08:01 UTC] requinix@php.net
[2019-12-19 08:54 UTC] imbolk at gmail dot com
[2019-12-19 08:58 UTC] d8150650 at urhen dot com
[2019-12-19 14:13 UTC] imbolk at gmail dot com
[2019-12-19 14:41 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 07:00:01 2025 UTC |
Description: ------------ It seems to me that there is an inconsistency in the PHP syntax associated with T_ELLIPSIS. Test script: --------------- $a = [[1,2,3], [4,5,6]]; var_dump(...($a)); var_dump(...(...($a))); Expected result: ---------------- array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } array(3) { [0]=> int(4) [1]=> int(5) [2]=> int(6) } array(6) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) [5]=> int(6) } Actual result: -------------- array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } array(3) { [0]=> int(4) [1]=> int(5) [2]=> int(6) } PHP Parse error: syntax error, unexpected '...' (T_ELLIPSIS) in Command line code on lineā¦