Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105754 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15988 invoked from network); 19 May 2019 22:06:37 -0000 Received: from unknown (HELO mail-vs1-f65.google.com) (209.85.217.65) by pb1.pair.com with SMTP; 19 May 2019 22:06:37 -0000 Received: by mail-vs1-f65.google.com with SMTP id m1so7670295vsr.6 for ; Sun, 19 May 2019 12:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NlRDLsDcVlHS52EbvpgUe67jXCwiSMY/W1SzFZANqPM=; b=AjRL7UlPxnUvS+03NTiwrUQ86hnEQ6NeV9RrS55R05JPS8AoN7i1REkofvCd0yTGGn kx4tGckLPnDM1kQMckm/Fs9XkN9rV6S04kSQ1eF/yfXpre64i8xRwG8biNQyLztMGUss JyFSUKAw/Q7kGyf+TXR2S1TuwtkXGUhxFOBy6N8x2do71pT4xxJxLLqLAdZlTcP6aNj6 wTgEFHdkX1BuugavPiIsgrU0jPirgkV3wC7PrTe2RzVaO10pgzF/HQGb7MgsGyuYffjk QRxvn0Yvi4AC+/Nreg689xABH2IqT91Qjs6MxFlgtH0cK+WEGIB/nsWXlxjFGEE3+KmE knKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NlRDLsDcVlHS52EbvpgUe67jXCwiSMY/W1SzFZANqPM=; b=gNBrTXA/WorputGnbZ05Wn/VEIIgnIDYhGJ2c9KKIHO/AefObArk0ObDwYX0+AXzcC jJ5LtUO4ZWHEntBZZYLAXpBZZeH99MnY7lbmTmqqPaZYyr7TgAONGXOLo0IdSLAEeqBg e7OWHOyM5IhOWa/14PScFJAfOuXJuxWNNbBoIavoqSujf6E9ftkysw/CB18nYYT9KLRM pYVr98EILuw9I5wEFUlZIFITjNEvqE85pwWH7b12Ks02F1xx7ccPJpwRhu3iqHfVZ71l MGxXDnel6yYiudlHWYdhTVEkBeOfzRTUYpfFj7e+zCB8XkTWJI+DDhgEi2LhzveFg6Pi RXjQ== X-Gm-Message-State: APjAAAU5trRTlq6jpW9pKL+vzdHDuIkMyh+RwKCxjkVggh7+2NnBkvND 6DhUsoO4tvne5kDkZb9DSmivlBEBmXGIRIj1ncI= X-Google-Smtp-Source: APXvYqwKH8RUerDO1OJAbi3eKOIHlUCYdPqTZlEjECNbd66sbGK9KTg4H8gWzONSslaUvZsHYm4dS47HmbSlM4Cp0GI= X-Received: by 2002:a67:ee12:: with SMTP id f18mr19141798vsp.158.1558293214964; Sun, 19 May 2019 12:13:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 19 May 2019 21:13:25 +0200 Message-ID: To: Dik Takken Cc: PHP Development Content-Type: multipart/alternative; boundary="00000000000088aff3058942696d" Subject: Re: [PHP-DEV] Calling array_merge / array_merge_recursive without arguments From: george.banyard@gmail.com ("G. P. B.") --00000000000088aff3058942696d Content-Type: text/plain; charset="UTF-8" On Sat, 18 May 2019 at 21:37, Dik Takken wrote: > On 17-05-19 22:52, G. P. B. wrote: > > > > So as a side note aren't there maybe some other array functions which > > behave like this? > > > > Good point. I did a quick scan of the source code and came up with a > list of possible candidates for a similar treatment: > > array_map() > array_diff() & friends > array_intersect() & friends > compact() > > While I would not expect these functions to be used a lot with spread > operators in the same way array_push() or array_merge() are used, fixing > them in the same way may still be good for the sake of consistency. > > Any other functions I overlooked? > Doesn't seem there are other relevant array functions which could benefit from this after having a glance at it. Best regards George P. Banyard --00000000000088aff3058942696d--