Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105930 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 4587 invoked from network); 14 Jun 2019 20:08:22 -0000 Received: from unknown (HELO mail-qt1-f182.google.com) (209.85.160.182) by pb1.pair.com with SMTP; 14 Jun 2019 20:08:22 -0000 Received: by mail-qt1-f182.google.com with SMTP id s15so3330194qtk.9 for ; Fri, 14 Jun 2019 10:21:49 -0700 (PDT) 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=t9qriRBxBGvUNu1Qul3zhZIFe3pzWVtUOQjo9dplbnc=; b=o1FUwFq4w+bgmah8AsHIB3AP7lMg87nMUoge69A1dcNjUH7yP/g54tgwoL+jOI+7Tm L5pWMUuQytuEG+DePBeYlRgi0ou3yFBuIKsZHsSTAI/UfauGW28r2ftWq2ZEBx9bOTOA TVQkCoD8yJQshd2mDbAZMnuVhYdgwqyLt6EdjGigm1RLJBp1tkeA2qNe2vV9Q+qdXLtf vqCnzbM2d1t1f/BUfUAjUMXVoX3Friu23FdFnbVTjVI/gYm3rOKxND05rHPAwmkwFU5O sRCupalEfQZ8RZd6q34oyBdpDiz1xEu8VqFCNmVq4hHl+746lckkmm8a5RxnxcJucTAn 1OAw== X-Gm-Message-State: APjAAAVxzG9R5VoUbsFVoRERHeTC8J8drHg9jdZQAkrDh5d3d5IoKO/z b7tvMmjMxdX7OcpGE0MisQ3tjiaSLuHrvADN1dFNVw== X-Google-Smtp-Source: APXvYqysodGVvlzwBSAKyAlG4955itGucZ6EFSnqeFkrKhLkkwy/1vvQNqKqJE0DJvvKJrkNknVfNE55fYcS8l1d3Ug= X-Received: by 2002:a0c:879d:: with SMTP id 29mr9228855qvj.91.1560532908699; Fri, 14 Jun 2019 10:21:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 14 Jun 2019 12:21:37 -0500 Message-ID: To: Benjamin Morel Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000af091e058b4be16c" Subject: Re: [PHP-DEV] Allow zero parameters in array_merge()? From: pollita@php.net (Sara Golemon) --000000000000af091e058b4be16c Content-Type: text/plain; charset="UTF-8" On Fri, Jun 14, 2019 at 12:15 PM Benjamin Morel wrote: > I'm wondering if there's any reason why array_merge() doesn't allow zero > arrays to be passed? > > array_merge(); // Warning: array_merge() expects at least 1 parameter, > 0 given > > It would be reasonable IMO to return an empty array in this case. > I don't see any issue with this plan. I say do it. -Sara --000000000000af091e058b4be16c--