Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105738 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 87387 invoked from network); 17 May 2019 23:45:57 -0000 Received: from unknown (HELO mail-ua1-f44.google.com) (209.85.222.44) by pb1.pair.com with SMTP; 17 May 2019 23:45:57 -0000 Received: by mail-ua1-f44.google.com with SMTP id d4so3202628uaj.7 for ; Fri, 17 May 2019 13:52:26 -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=lmOJh4nTkcd2q7EFCNzSCtgJ9rzi7ALIYsPn0lArxkI=; b=t17FIFQUbMzIAYYfTAGP316Datc5Bp+Oa8OV4mkUi3mWFvnSr02mj+1sNf1X4QGuGW zrYia1ihIJfLoc2QzT/xyyZfi1Zk5+Duv5yHn61qx4K00R45NWfHee73wILH/Ip0+vDu 9Yz8EUyhF+yl8Vh9KhPP4YaWELoI+hhu/9PphqcLx1+L+LDsBxLWSPitFQJ6O7irtCqE CB7a3VrK8mIkuaev/v67LBPWDCsOUWCyhKFWyi8SJDyS4K8La3/wN4wUPnUuugwLhjC1 U+gWHnk/2tOfLdz5PrsaZmFlIQfGZA2KPdyMn/iLi4YIbwOi8P3RxgY/7OpZwDw2OeK7 N4SQ== 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=lmOJh4nTkcd2q7EFCNzSCtgJ9rzi7ALIYsPn0lArxkI=; b=svbMGP4C9vt9NcgqX1gjnywcwCDi5SjQBijAx/ReDQfytmbe72F6h2wr1nOC+CBPaH pZNoxieOL4+mfUCnPS28tgzTICJj+fF6iWJcd+tdRCpHgUZUfEs7QKX9aU/KZlTO1nIp FrRowevnym+TsZd430HAPtFVyEKoNfI5DM8Foetare89FnE9KhLIAhazv2VHFyyY7YZD RRnPXGvkybK1Nn4iHIU2IsrK8j9wRXBKgv/qwzKms56oqvPLmoNF7ftgj5PCDIUav1WS 2rY+u4tQ9Hr5NrMOh/QUQw0HPQvizUhlGCw0TfDF2VzSNeryhbgxxTW4lRJKc6lQbaqP Y84w== X-Gm-Message-State: APjAAAWh6D8Bfy1Y3BkGGRmWH6ZK0Z07jT4cp59B75Pxz3wZRsLloy6b JhSI1FMOT0mLgAmzYGs6NlHGhwxuMRyF3GrSI00= X-Google-Smtp-Source: APXvYqwFdiW5/wSi+SEO7ODghcvRMlq9irxO/ie4A3ehvLIqGo54XwZ6xXwOOWnF2o1xYIBX9ggINI6Lh8lVYJvofsY= X-Received: by 2002:ab0:7453:: with SMTP id p19mr6667417uaq.15.1558126346329; Fri, 17 May 2019 13:52:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 17 May 2019 22:52:14 +0200 Message-ID: To: Dik Takken Cc: PHP Development Content-Type: multipart/alternative; boundary="00000000000063638205891b8f69" Subject: Re: [PHP-DEV] Calling array_merge / array_merge_recursive without arguments From: george.banyard@gmail.com ("G. P. B.") --00000000000063638205891b8f69 Content-Type: text/plain; charset="UTF-8" On Fri, 17 May 2019 at 21:53, Dik Takken wrote: > Hello, > > I just created a pull request that changes the array_merge / > array_merge_recursive functions such that they allow being called > without arguments: > > https://github.com/php/php-src/pull/4175 > > This is my first attempt to contribute, feedback is highly appreciated. > > please advise on how to proceed. > > Regards, > Dik Takken > Good catch, I do like the idea it is a bit in the same spirit in how as of PHP 7.3 array_unshift and array_push can be called without arguments now. So as a side note aren't there maybe some other array functions which behave like this? Best Regards George P. Banyard --00000000000063638205891b8f69--