1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-29 02:02:40 +01:00
phorge-arcanist/src/utils
epriestley 239ad5c55d In "array_mergev()", guarantee the "call_user_func_array()" parameter list is a natrual list
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:
  - Behavior unchanged under PHP7.
  - User reports fixed behavior under PHP8, see <https://discourse.phabricator-community.org/t/daemon-fails-on-php-8-0-2-in-utils-php-array-merge-call-w-fix/4568>.
  - See T13588.

Maniphest Tasks: T13588

Differential Revision: https://secure.phabricator.com/D21551
2021-02-08 10:19:52 -08:00
..
__tests__ Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8 2021-01-11 04:49:54 +00:00
AbstractDirectedGraph.php Remove final from private functions for PHP 8 compatibility 2021-01-10 22:05:20 +00:00
CaseInsensitiveArray.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilArray.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilArrayCheck.php Allow PhutilArrayCheck to accept a list of objects as a context 2020-05-30 03:37:42 -07:00
PhutilArrayWithDefaultValue.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilBufferedIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilCallbackFilterIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilChunkedIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilCowsay.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilDirectedScalarGraph.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilEditDistanceMatrix.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilExampleBufferedIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilExecutionEnvironment.php Merge utility/support changes from "wilds" to "master" 2020-02-13 14:10:09 -08:00
PhutilHashingIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilLunarPhase.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilProxyIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilRope.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilSortVector.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilStreamIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilSystem.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilUTF8StringTruncator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
utf8.php Fix an issue where "phutil_utf8v()" could fatal when passed an integer 2020-10-16 09:22:22 -07:00
utils.php In "array_mergev()", guarantee the "call_user_func_array()" parameter list is a natrual list 2021-02-08 10:19:52 -08:00
viewutils.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00