Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112125 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 27276 invoked from network); 26 Oct 2020 15:18:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Oct 2020 15:18:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F39B6180508 for ; Mon, 26 Oct 2020 07:36:57 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 26 Oct 2020 07:36:57 -0700 (PDT) Received: by mail-wm1-f48.google.com with SMTP id c194so11894364wme.2 for ; Mon, 26 Oct 2020 07:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=LwZKMkNY0owV5DwmWPA9Xq57VIk4F9/vXJ+4brwSMWM=; b=kLS7y6pg/v88Uk1RRBkrrvmzcPUcJkAdna0lXU77BxyQSNCUyhVtSxhLyQYzJUNJ3Z FrogGevEPYJfZiI7nUccvmYXVcleEVsGOw+2jhx/hzrT2ZmNY5uwern27O5xC2VWTDB3 vPqi5Gtlf5SrDpotnfCzgtWdFcSPnLiPxY3CnLKfavsWC7fYwSpmHnX8vkKjpEcBalUx mn/WpXjvDaA4i6rg7JOFVXgjnsl6qVZsNy2w8mNnVsFPikUD6laTkMl35WjsXmqVaaON ghGhoCsjCE8j+06hTS5UTA6L22EH5MLXpaFi/LAzNusy3nxV6WGPLS7eVg+NnMXx8z7R I8Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=LwZKMkNY0owV5DwmWPA9Xq57VIk4F9/vXJ+4brwSMWM=; b=chBVvBhEPGZ+aa9j+QpA7hzoWBbQV5jlLLgQiId5TlbxCA4p8vPCqSHRrTt+Nh1Bie K8Ka1r7FxdC3+q36Pp2r/d1DvfQ7yAoEWBgPY85FsUx7iqTWjzVXDcONWJkQLdZPIl+g 89awNKODNJ2LllkdeEdufjOF9pnb28V4GaJa5Y8ZViLQ+rGoNNsJHTnDDp0dZkruK7KU YIrToajecrsaE6YNwj1Z+m/NvfuS/Djzpy1zErEPOaz6DJhJTUv8le8e94iMnAW/OnZH o3xC0Y5gey6maSdFjieOWPp26BLcrRvSpNNY9/MLJeeSaMs/0qeenBfy7Jkh0kC2JjHW SJPw== X-Gm-Message-State: AOAM531CszJ5NZaHl15Bv80EMGoKECOUmf9qXjGp4N9enNWShRcvU+5i 1iFa8fZMdEMMj9DdOY1zAmpY9YHq0jw= X-Google-Smtp-Source: ABdhPJxFEJflK8vUTWB9LWCXcB48dyCsAHt7EI47HVzCrjzsljY4aGCEANaYvPiEUPLbnc2pmqC+3Q== X-Received: by 2002:a7b:c00a:: with SMTP id c10mr7440539wmb.119.1603723015248; Mon, 26 Oct 2020 07:36:55 -0700 (PDT) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id 30sm23573749wrr.35.2020.10.26.07.36.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Oct 2020 07:36:54 -0700 (PDT) To: internals@lists.php.net References: Message-ID: Date: Mon, 26 Oct 2020 14:36:52 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Subject: Re: [PHP-DEV] Bug #80248 - Swapping parameter names during inheritance does not throw From: rowan.collins@gmail.com (Rowan Tommins) On 26/10/2020 13:12, Michael Voříšek - ČVUT FEL wrote: > I am writing regarding bug 80248. > Currently, PHP 8 allows parameter reuse at different position, which I > belive is very dangerous, as passed parameters may be passed in a > different order with different object impl. Hi Michael, Yes, this was one of the most discussed aspects of named parameters. There were a few proposals for how it should work, but in the end none of them gained consensus, and Nikita decided to keep things simple. I suggest having a look at the RFC [https://wiki.php.net/rfc/named_params] and its main discussion thread [https://externals.io/message/110004] to see the pros and cons of various alternatives. Since none of these were adopted in the proposal, it's not clear that this could be considered a bug, rather than a feature change, so there'd need to be a very strong justification for re-visiting it this close to 8.0 availability. Regards, -- Rowan Tommins (né Collins) [IMSoP]