Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117669 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94649 invoked from network); 5 May 2022 04:00:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 May 2022 04:00:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 291B918054B for ; Wed, 4 May 2022 22:37:29 -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=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL,STOX_BOUND_090909_B, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS36483 23.83.208.0/21 X-Spam-Virus: No X-Envelope-From: Received: from dragonfly.birch.relay.mailchannels.net (dragonfly.birch.relay.mailchannels.net [23.83.209.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 4 May 2022 22:37:28 -0700 (PDT) X-Sender-Id: a2hosting|x-authuser|juliette@adviesenzo.nl Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 703D180B2D for ; Thu, 5 May 2022 05:37:26 +0000 (UTC) Received: from nlss2.a2hosting.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id 63C3480EEA for ; Thu, 5 May 2022 05:37:25 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1651729045; a=rsa-sha256; cv=none; b=xR7TDgPncciAf45lsjsAZGjosdg306g0JP5eRQk+DExLW5c0Ni0uE1WH+7pSvfAcBwMGzy dY9qHXUfWxZkvh5Jl7tFFLx8QzxY8POCLRSiCNMb7/VJkAly9jpxZPEM0H7LkrkyYDLLWK imAHRPOMCAM0Bv9+jG79lOutaEoOP1l1XYJa+i8l0D7JNdRPYVHLFUWxCnvBJmYhJKKon/ SMRVGG6oFC7LAc2zNAx+EHNmdImMrUKBvfpreXO0ZYGVhK0qnb2+rAOxB5RRC2pdEoke3H nR0v77vbGfvbzD8cNLTOCwYMAssmOK8ShBS/dI6GOX15vI0N1JCT8P9x1oopkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1651729045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Laq13s7HfQzTRQmNITw5sdvpeEMyfJPdlOhOjdzByiI=; b=ikmcMKs7xdWS3qAU6QujNs3//YqSN0Ov6+IJE/yuMjfiqMOloo0HB1Gf75HHxaIMZWaQvc RT0af4e7ehgvEjOw8+iJAYnElQRWVEwU7MXnGBNQIHJoY4g3S6P7Gx6kT85Amm0c1fDs4R xGUaXsR+BTz+lQpGTJCAioL1RJqZa1oVIdo1eiIcndwjL2Ju7b+Z4AI8TNhf2I9jKkUSik SQyRm71j3fnlJWTcO7GWFN0jox+rpVq5VupQBJjeIlcpEyKxWmvI9jrPa0q1Jh90ZrKCne /ZbUNmrqrIn+9S6ACxlf+Lw72N3aN3L/oKd9oYkLp4tlorb62KUN3Xvnlc4Sww== ARC-Authentication-Results: i=1; rspamd-847dd8955c-kqwwd; auth=pass smtp.auth=a2hosting smtp.mailfrom=php-internals_nospam@adviesenzo.nl X-Sender-Id: a2hosting|x-authuser|juliette@adviesenzo.nl X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|juliette@adviesenzo.nl X-MailChannels-Auth-Id: a2hosting X-Dime-Attack: 2f8fb3f3220acbde_1651729045909_1761184264 X-MC-Loop-Signature: 1651729045909:3167597188 X-MC-Ingress-Time: 1651729045909 Received: from nlss2.a2hosting.com (nlss2.a2hosting.com [209.124.66.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.115.45.49 (trex/6.7.1); Thu, 05 May 2022 05:37:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=adviesenzo.nl; s=default; h=Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Laq13s7HfQzTRQmNITw5sdvpeEMyfJPdlOhOjdzByiI=; b=MS/Y4u85vCKUhvXHnrZ6vspEAa 3/mv548Gcv7MUNB7dzQD/i0UCHdu35QkO2rIbvaN6xYW2VU4B/av7vYkPb5AeV8YHZ44Q2GEdmYqX fPW0zvNg2LONAnfMi8tlFfH1y0xDtunhXWAXa4iK9KkzcBQjrf77H+5PK4Ynm/Yh7oHU=; Received: from 86-154-178-143.ftth.glasoperator.nl ([143.178.154.86]:55785 helo=[192.168.1.104]) by nlss2.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nmUB1-00AHQT-FW for internals@lists.php.net; Thu, 05 May 2022 07:37:23 +0200 To: internals@lists.php.net References: <62317B01.90907@adviesenzo.nl> <3F016525-CCDE-4229-9260-7C76A6FF42E1@cschneid.com> <44517fe1-21da-41ce-0c9d-d69c2b4bf6f9@gmail.com> Message-ID: <62736292.2000506@adviesenzo.nl> Date: Thu, 5 May 2022 07:37:22 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <44517fe1-21da-41ce-0c9d-d69c2b4bf6f9@gmail.com> Content-Type: multipart/alternative; boundary="------------080904050905040907070801" X-AuthUser: juliette@adviesenzo.nl Subject: Re: ***SPAM*** Re: [PHP-DEV] Deprecated partially supported callables: should is_callable() throw a deprecation notice ? From: php-internals_nospam@adviesenzo.nl (Juliette Reinders Folmer) --------------080904050905040907070801 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 2-5-2022 14:43, Rowan Tommins wrote: > On 02/05/2022 12:56, Alexandru Pătrănescu wrote: >> The point is that this is not an usual deprecation, something that will >> change to an error in the future. >> In the end, it's just a change in behavior with no error before or >> after. >> It does not fit the "deprecation". > > > That was my instinct too, but Juliette's analysis elsewhere on the > thread has convinced me that it is very likely that anyone seeing this > deprecation would want to change their code, rather than allowing it > to change behaviour in 9.0. > > Perhaps a reasonable comparison is the change in precedence of the > concatenation operator > [https://wiki.php.net/rfc/concatenation_precedence]. The expression > ("sum: " . $a + $b) is valid in PHP 7 and PHP 8, but has different > results; PHP 7.4 included a deprecation notice because users would > almost certainly want to choose which behaviour they wanted. > > The difference in this case is that the code change probably won't > happen in the same place as the is_callable() function call, but > somewhere further up the stack. For instance, a framework function > might accept arbitrary values and test them with is_callable; an > application using that framework might pass "parent::foo", which will > change behaviour in 9.0. It is the application's author who will > benefit from the deprecation notice, so they can pass a different > value whose behaviour isn't going to change. > I was going to mention the same example as the precedent ;-) 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) --------------080904050905040907070801--