Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117670 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 16230 invoked from network); 5 May 2022 12:00:18 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 May 2022 12:00:18 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5A93B180041 for ; Thu, 5 May 2022 06:37:46 -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=0.6 required=5.0 tests=BAYES_50,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, T_SCC_BODY_TEXT_LINE 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-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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, 5 May 2022 06:37:45 -0700 (PDT) Received: by mail-wr1-f53.google.com with SMTP id c11so6148101wrn.8 for ; Thu, 05 May 2022 06:37:45 -0700 (PDT) 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=b9cIZXL9g7hgS69SRPRX8TZJAKI0X1iNpRTFHU4Nnl0=; b=Z1zBvad0ezYXLf8Xxf8HsJ9MhMY8wTw//VNFExhL3QgJlC7r36CnphNeGRQ8YwxnYL 6lQ5Ex+cONfsf0Lo/bNQgtfezpbVhqCorI6EwDVTjHugXOG+wTOc9c8cVVfUa42BXcZI PVqq15XqPyrt++zXTNPafFpoTtreAGOtpMB+AvIIgLvVLWsg34qHCsHjfy35h07kzR2a Lix2w3IlXr1a16rDHksPWEZTg82mZueMFXeHPHzes6NTtZzLsZQhFWyEOQTxwItS6a9p I2hVCO24uQRo2f+czQsV6SuJUVADJ5NZuAgB53/wf97B3KlqfcCUzUyelNLKUzzXtnH1 xpDw== 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=b9cIZXL9g7hgS69SRPRX8TZJAKI0X1iNpRTFHU4Nnl0=; b=P7udRDbyCrVpp/+c1dHZI1pVcfyKgRIsxSvpn4k2QUFm54hllcGTDwoA2mMDxHg8T/ RLY5bE10bWdd1SU51TKD6tVnx/OfOCJVFiVpmHWZaXnQxABGZbpROyJeuFlUFq8HgsAZ kb2XBWxiu8+0UpAs0Jzp3YFSlUEwmi54Tr+STAZJMdB03bUxKNN1uuAjn1aolTW0fCzv /NS3NOXA6p8dF3MgH0IDD5MHTJuegfsRkZIWwReYS1vKLg1tau+SWacx00h9SkjBCALK n9sp/7hkAMJgu7HcYlwZXsFfdDQVsqOiUkqdpH1lj/AX7DN8OvLR2BKdQFa85BkVozD/ Epvw== X-Gm-Message-State: AOAM531ALiWXJEYtbkYt9FdcSkecBvR0gCaPNdOH9rl2WWXJ9VilCQca HHYgTyGH72sE7YlwuO0q/MJ8B3lPGXo= X-Google-Smtp-Source: ABdhPJz9Ai5pmyFaPf9tESigkzzMwGSowI7+fKIW5wg0iTy1xwMxA7NgnM3GqQ729XZtqdvfeS00pA== X-Received: by 2002:a5d:610b:0:b0:20a:e00b:5e46 with SMTP id v11-20020a5d610b000000b0020ae00b5e46mr20753325wrt.293.1651757864455; Thu, 05 May 2022 06:37:44 -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 h3-20020a5d6883000000b0020c5253d91asm1228399wru.102.2022.05.05.06.37.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 May 2022 06:37:43 -0700 (PDT) Message-ID: <58c44cba-3a99-7b86-2eaf-eab0ee0ddb67@gmail.com> Date: Thu, 5 May 2022 14:37:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-GB To: internals@lists.php.net References: <62317B01.90907@adviesenzo.nl> <3F016525-CCDE-4229-9260-7C76A6FF42E1@cschneid.com> <44517fe1-21da-41ce-0c9d-d69c2b4bf6f9@gmail.com> <62736292.2000506@adviesenzo.nl> In-Reply-To: <62736292.2000506@adviesenzo.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Deprecated partially supported callables: should is_callable() throw a deprecation notice ? From: rowan.collins@gmail.com (Rowan Tommins) On 05/05/2022 06:37, Juliette Reinders Folmer wrote: > I was going to mention the same example as the precedent ;-) Another relevant precedent, since the original RFC talked about keeping things "side-effect free", is that passing "99 red balloons" to an "int" parameter raised an E_NOTICE in PHP 7.x, so a "callable" parameter raising an E_DEPRECATED should be fine. > Either way, how will this get picked up now ? What are the next steps > to put this thing in motion ? > > (Note: please don't suggest for me to create a PR - I'm a PHP dev, not > a C-dev) If nobody else does, I can have a look at the implementation, which I think should be fairly straight-forward. However, since the current behaviour was explicitly mentioned in the accepted RFC, and the response here wasn't immediately unanimous, it's probably sensible to write it up as its own RFC to be voted on. It doesn't need to say much, just summarise the key points from this discussion. See https://wiki.php.net/rfc/howto for the steps, and feel free to send me a message off-list if you want a hand drafting or proof-reading it. Regards, -- Rowan Tommins [IMSoP]