Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105750 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 39294 invoked from network); 18 May 2019 22:30:48 -0000 Received: from unknown (HELO lb1-smtp-cloud7.xs4all.net) (194.109.24.24) by pb1.pair.com with SMTP; 18 May 2019 22:30:48 -0000 Received: from [IPv6:2001:983:6fc5:1:4c62:e0a9:afe8:ab4c] ([IPv6:2001:983:6fc5:1:4c62:e0a9:afe8:ab4c]) by smtp-cloud7.xs4all.net with ESMTPA id S596hcI463qlsS598hYbVF; Sat, 18 May 2019 21:37:30 +0200 To: "G. P. B." Cc: PHP Development References: Message-ID: Date: Sat, 18 May 2019 21:37:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: nl Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfHp5oUqvnFH5eft55P2gFmndF3+lN89bQ1yBRwqBU6xvkZlUxj6JlGOxDpFQhSGYogcwnm890OtRuiKfmBmqzb78dSf6q2l9ETOTv/1Au7vXWV6Immun ONqai4yulfhp0TGNl2HOScyuqfLkeYIMysPmbQpqykZEmO+Y371DJ8bIv8qib+n08e6ql6Hs5Ca5MM9VEbW4UhiAY3TXGsUmycEfSWvW1f6D/vQqX+DcMV9S +4m8IpOmJjQffJ+M1JFNkVh/0qkGYW4qqIfiNQuFm8FZX7Q1MTsJS5l/gKdSmt0RvCIBFEZ67ZKEBUbDNAAX9w== Subject: Re: [PHP-DEV] Calling array_merge / array_merge_recursive without arguments From: d.takken@xs4all.nl (Dik Takken) 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?