Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116612 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42889 invoked from network); 9 Dec 2021 20:06:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Dec 2021 20:06:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AFD1818053D for ; Thu, 9 Dec 2021 13:07:40 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 ; Thu, 9 Dec 2021 13:07:40 -0800 (PST) Received: by mail-wm1-f45.google.com with SMTP id p3-20020a05600c1d8300b003334fab53afso7554877wms.3 for ; Thu, 09 Dec 2021 13:07:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=5Rxgwi7cUD2C3CnKwQ94ulnWmd9kC4yIOlIoJvkhkt8=; b=jTi/gEzh8zlk3HfDeVlZEhOy9wai2mvGX8eePi8sXc0VwZCYlHFTl/L4mj6geO06hR EXZBHWQegCRlUns7K3629iamnAxi6qadsChbQothJeuIVzPllvKcQKFDFu5m4CWrNJn+ PO3lBPeGtVxEjP3X+Fc9K64X5yI9J4c6ktfD9LqCUZqlHS4C4TMxqc3gDfHjcKXhikEg dEFtYb5SWXNT82VcxDEQtyecnHmhC/hOJRe9jfXOCLWcfGFrxV/T67UDz7JebNvY3L1P YiG1lrGJh6DH8mmFngUhUzcOtK4zYtX2MgHNhc/mLDFgViBsjrey5nBtS66H4zH21YRK 26IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=5Rxgwi7cUD2C3CnKwQ94ulnWmd9kC4yIOlIoJvkhkt8=; b=P1KHMXz7qnAX0WJ46vGXqt0YY6sveOLISuKifLtDZRJ0Y9GILHVGFDnMnKc8LhF99N NcMNeAaTsyw6fPcIttQT4ym4NKi+jyhtq+19XhTbrYIFzr9fJFctZjamu49nR6q99BhZ vHCS9MeMRb0XTh5yHOpiYaQYkm+o4GpPQBFSBtO6daMdUICTKjL6S05Aet6N0q+J0Jch Jy9Rb5e7mdMt3FPerjOvx0CIk1T0Yvrawfu/CQgHl+W2EVAiaLwPbPSEH5xwM41yoMXJ I+QkR/9JYSrP7c2eIDCrHplf4z2m6ieEAtmR/T/8eh5R7f6IsGSBX9sr/+YNYn7PoNR1 Y0kw== X-Gm-Message-State: AOAM532tX0B7IbjxE4/om4jRyJX9QQI67/plbzS5Ft1pubTiNoJrXcMt ja8kU0BmeQdno+nsj9TqQnQPRyCC2jQ= X-Google-Smtp-Source: ABdhPJzwypWVwK32Vwd0acyNESYaNY71j7IRqDn2H8CL72q2WnBwkICkMRF81d/9hqEKHld2bGrceA== X-Received: by 2002:a1c:2053:: with SMTP id g80mr10868817wmg.3.1639084058787; Thu, 09 Dec 2021 13:07:38 -0800 (PST) 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 r17sm11141273wmq.5.2021.12.09.13.07.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Dec 2021 13:07:38 -0800 (PST) Message-ID: <534ec3aa-571d-c6f7-f276-c9f71ce15890@gmail.com> Date: Thu, 9 Dec 2021 21:07:37 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Content-Language: en-GB To: internals@lists.php.net References: <02ba01d7ecbc$c0e13370$42a39a50$@webkr.de> <39fe7e98-30c0-200f-e545-df0e334f7bea@gmx.de> In-Reply-To: <39fe7e98-30c0-200f-e545-df0e334f7bea@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Allow default parameters before non-default ones? From: rowan.collins@gmail.com (Rowan Tommins) On 09/12/2021 12:45, Christoph M. Becker wrote: > The new behavior has been introduced[1] quite a while after this mail > had been sent. I agree with the idea outlined in the commit message. > > I suggest to document that in the migration guide, and in the manual proper. Good spot. I guess it does make sense to treat this as an accident in 8.0, rather than a feature that was added and then immediately removed. I've raised a PR to add this to the Migration Guide, and update the general description of optional parameters: https://github.com/php/doc-en/pull/1191 For some reason, the CI build failed on that PR, but on unrelated files, so I'm not sure if it's my fault or not. Regards, -- Rowan Tommins [IMSoP]