Page MenuHomePhabricator

In "array_mergev()", guarantee the "call_user_func_array()" parameter list is a natrual list
ClosedPublic

Authored by epriestley on Feb 8 2021, 6:17 PM.
Tags
None
Referenced Files
F15415912: D21551.id51298.diff
Thu, Mar 20, 8:24 AM
F15408119: D21551.diff
Tue, Mar 18, 9:20 PM
F15405185: D21551.id.diff
Tue, Mar 18, 10:36 AM
F15390185: D21551.id51298.diff
Sat, Mar 15, 5:59 AM
F15387549: D21551.id51297.diff
Sat, Mar 15, 2:35 AM
F15381144: D21551.id51298.diff
Fri, Mar 14, 6:06 AM
Unknown Object (File)
Sun, Feb 23, 9:25 AM
Unknown Object (File)
Sat, Feb 22, 1:03 AM
Subscribers
None

Details

Summary

Ref T13588. The behavior of "call_user_func_array()" has changed in PHP8, and the function now attempts to use array keys as argument names.

This always fails when calling "array_merge()" (which does not accept named parameters), and may cause misbehavior in the general case.

Guarantee the argument is a natural list (with keys "0", "1", "2", ...).

Test Plan

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Feb 8 2021, 6:18 PM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.