Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115920 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 43956 invoked from network); 2 Sep 2021 15:09:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Sep 2021 15:09:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 082731804DB for ; Thu, 2 Sep 2021 08:45:47 -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_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-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.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, 2 Sep 2021 08:45:46 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id k13so5297080lfv.2 for ; Thu, 02 Sep 2021 08:45:46 -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=m1NIYjUj9zc61SyNfJvGhMVBarxhj+FmOUJ3nutLEGc=; b=UQmSZVoa+91Uld5+n88JFI+1gIHyeM0D72oHt3E3ddoTiGc4JJl0JuyTazx5aDOWQI P4qTu/RqCfk+P7aaJalkMFlYMKbK353Sz+rkHkqO7JUSeE1CLz9P3e4uLbKXqlxn1J7i ibFxREX4Lprw8hWLoh0Lye45CTGUj0N3xTjhXRqzQZ/E7zSBNr5LR9vYyv/bFOpx8eLu hgtmUCspLFO721zgVgDR9QDOAlDuLGj8eJYx0QJTzOihhdcNvqTCDM84HwXuTWgx/Hp+ 4s7FMI5MOvskKbROOUGDDEK8t9+fDHVc0zGVnBzM6E/XSDtvYFNtfUm+kVM5v0XenCgT iBgQ== 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=m1NIYjUj9zc61SyNfJvGhMVBarxhj+FmOUJ3nutLEGc=; b=QKynXZFiBUnUHrbD4jG6gVF4gECs4e0T/7kHs0Kq1UhXS4oywV7qE0S727vZ2dov98 pTi62p7pgjedWBCbnMsef/HYx/0oT4PqjQqVixBXOuaiz+7sPY/yG7vEncQPwH23cQ6l 8nJF4TCyAjX/Zebq44Vy0UFawSrMHqNQgO/dB5ENJQv2JfW6nCRtkZ+EPW6ns+WpcA4y h0ZaZJGcrPQ7MeF8sPHdXHp494PpI1azX3WfyqkF75jmjjYKr1OyyuCRyQfVpIGZPh0k mptRU6tp1MXSj5TMk1SzVsUFYRCNzrtvDrZ6iMid5pJJ76tsY3dVYkDrOeL+kiBMLO+m x3WA== X-Gm-Message-State: AOAM5337n4MR+XGFTEoB/dJ/HhE+ZqZsk29EJQC3HOI7gcO2m6P5I7pj xr2vvs55VQNDvv+GGU0w23qZRHAyfUDQKOxtZhKadIlGEsc= X-Google-Smtp-Source: ABdhPJydc0V1wG3CpVrrl9FLkRSp1wVWWAr/sM418Nk/t9xwBhNgSlMuWFLadxzBxppWHEDboi4/3xV+h2RYH1QzNhg= X-Received: by 2002:a05:6512:3882:: with SMTP id n2mr1701968lft.315.1630597541648; Thu, 02 Sep 2021 08:45:41 -0700 (PDT) MIME-Version: 1.0 References: <20210902170608.07b09817@mcmic-probook.opensides.be> In-Reply-To: <20210902170608.07b09817@mcmic-probook.opensides.be> Date: Thu, 2 Sep 2021 17:45:24 +0200 Message-ID: To: =?UTF-8?Q?C=C3=B4me_Chilliet?= Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000003ddf3d05cb0513f8" Subject: Re: [PHP-DEV] [RFC] Deprecate partially supported callables From: nikita.ppv@gmail.com (Nikita Popov) --0000000000003ddf3d05cb0513f8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 "callable" > > type, but which cannot be used with $callable() syntax. This RFC propos= es > > 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 remove > support for all array/string representation of callables. > This should be made clearer if possible, maybe even list the callable kin= ds > which will not be deprecated. > Yeah, I definitely have no intention of deprecating string/array callables in general. If something works in $callable(), then it's going to continue working. Added the following note: > Normal "function", "Foo::method", ["Foo", "method"] and [new Foo, "method"] style callables are unaffected by this change. Regards, Nikita --0000000000003ddf3d05cb0513f8--