Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115921 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51446 invoked from network); 2 Sep 2021 17:31:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Sep 2021 17:31:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 56DC41804C8 for ; Thu, 2 Sep 2021 11:07:34 -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,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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, 2 Sep 2021 11:07:33 -0700 (PDT) Received: by mail-pf1-f169.google.com with SMTP id s29so2290739pfw.5 for ; Thu, 02 Sep 2021 11:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t/YGnTLc9uSa+3eGGz+21Dfa7bSNPw+4zt0xPJLtQx8=; b=U2LqbARFICPsJG2k1Rr+2yQYA612QOfN/79rRl9xUHRa93QsLqXK4m5PjbIBP3ZGhf Br3DRS6lZHlCwF/byfrqG7SjRpzxUbRbUYk9kO+GNd2IHNQ69Low8UBWkQGRpwYgP3F6 qmMOe2JCy35sRuvnj8SSV3aQE+y3tPFkTqwNNlQhqdZtO9XR+hHBURb2yPwJXtm/Rotn QkLU6n0JztkQkSIyvwigqBZ/oEFYbxx52NcrbMBvsaXmpqW7FR2mZWrzmzkLZhs2Bois 8eC+Xry5fwYb0gu/LWoluRUA4u5yu3eQ1ZXyRW5rBKsrBrSO7Gda4xYModeQYxLnO15k OO2w== 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=t/YGnTLc9uSa+3eGGz+21Dfa7bSNPw+4zt0xPJLtQx8=; b=UgOaTRTu0Ns10q0Lj8FdTwgsXeKIt9CXKHljylkJJOeduXwSqJ3645Ouzoy1uTIz29 jKZooZ0IznqW+Ot7KL0vXuSJcUV8dZLJPlTPQ8usvtU4d5y3VYalLNxjXxKsg7WbKsG2 mAN3q/6THcy6ujjVFX+iyTSDhG1z4H8ix0dDS/cdMBPajm1ZJjMoXT9dl82m48qDiziK Javz8rdRrAQxm8Yp2l4R438PfpQeLAVv2/z5678u3+r+x0VbNAs4D/OmtxqS56TbpHTV vs7Qlwfvjp+Ewqjoz0iK1Vu0mH3NLVkouxkkfVnr+HSL9zqDJvr5deWf2rFVnwHpsgHp loCw== X-Gm-Message-State: AOAM532oYrS+UnFudnMp5lcBFdzMOcUXVlFwbLbBJnoujElu3pE1Hesh RQUc6ZqH7bGrCs/1xoa6HfcpROeTB8U2VhafrOc= X-Google-Smtp-Source: ABdhPJxk0N6MzIezW4XSrW6ZI+51DALJS/+8GUopQ0XaMys68CBMtrcNAxDbTCMPgfOgvhidhvMcDlVdzu/Q4robgCA= X-Received: by 2002:a65:6283:: with SMTP id f3mr4374888pgv.369.1630606049760; Thu, 02 Sep 2021 11:07:29 -0700 (PDT) MIME-Version: 1.0 References: <20210902170608.07b09817@mcmic-probook.opensides.be> In-Reply-To: Date: Thu, 2 Sep 2021 15:07:18 -0300 Message-ID: To: Nikita Popov Cc: =?UTF-8?Q?C=C3=B4me_Chilliet?= , PHP internals Content-Type: multipart/alternative; boundary="0000000000005d581a05cb070eb9" Subject: Re: [PHP-DEV] [RFC] Deprecate partially supported callables From: flaviohbatista@gmail.com (=?UTF-8?Q?Fl=C3=A1vio_Heleno?=) --0000000000005d581a05cb070eb9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Sep 2, 2021 at 12:46 PM Nikita Popov wrote: > On Thu, Sep 2, 2021 at 5:06 PM C=C3=B4me Chilliet < > come.chilliet@fusiondirectory.org> wrote: > > > Le Thu, 2 Sep 2021 16:32:32 +0200, > > Nikita Popov a =C3=A9crit : > > > > > Hi internals, > > > > > > Currently, there are some callables that are accepted by the "callabl= e" > > > type, but which cannot be used with $callable() syntax. This RFC > proposes > > > to deprecate support for such "callables": > > > > > > https://wiki.php.net/rfc/deprecate_partially_supported_callables > > > > It took me some time to understand that this was not a proposal to remo= ve > > support for all array/string representation of callables. > > This should be made clearer if possible, maybe even list the callable > kinds > > which will not be deprecated. > > > > Yeah, I definitely have no intention of deprecating string/array callable= s > in general. If something works in $callable(), then it's going to continu= e > working. Added the following note: > > > Normal "function", "Foo::method", ["Foo", "method"] and [new Foo, > "method"] style callables are unaffected by this change. > > Regards, > Nikita > With this, PHP walks another step towards a much needed cleanup. From me this is a more than welcome change. --=20 Atenciosamente, Fl=C3=A1vio Heleno --0000000000005d581a05cb070eb9--