Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117658 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72181 invoked from network); 2 May 2022 11:00:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 May 2022 11:00:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CB0881804D5 for ; Mon, 2 May 2022 05:37:06 -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, 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-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (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 ; Mon, 2 May 2022 05:37:06 -0700 (PDT) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-2f7c424c66cso146271147b3.1 for ; Mon, 02 May 2022 05:37:06 -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:content-transfer-encoding; bh=Fz1JxbUmn3bFdMVHGnrHnGMmVwuPs0JqUND95P6VTg8=; b=ZMkywLT4ACnA0qKaCAgZ2hnIlbFCssNWh2Eu6kg2DsT0TL2nsCzdJp+yWqXZqzAmz1 rJw5VRkQS9M2RiGCLP4f+X6BCNiRGKnHYysvp2N9V0xWZA3v9wUr1KheqYqHSZNI/F5e AWGaz7tE9L8dr5s/ctGbOzG6Ub+R1PgAP5t1MPpDp2LYheKaKHy8uGZDPaLWzHaXVE1j RPEvTnuFLT+FUdJJza98lVvGrZH9dOjuHzSOKQn/0pbcio5Ugku21yz8rI0Ma4LbzPRr 2stNcwoNpGEJN/0d7Gsjo7HBBqrN/ed+hPRUQuCFcrRvh3zdwdBP3+fEzDvaN98GqxDy EbFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Fz1JxbUmn3bFdMVHGnrHnGMmVwuPs0JqUND95P6VTg8=; b=wnftl1Kch1RaW3T5ibg3+G4IIVu8JqXsvPVcQY3XElGx+igBli0Y1hzcZwE/gezKUP NnrBCQAELDWO3DwRnp9kDGjc88EtNilzdpqOjzfodvszqqSVFoKKjb/dBGoxJY+7LBk2 gjVaFfAISIvO14WoDMshK/Qvs3NpQmP2oKisX+UDHRAyC4ZgMDHEBM/7qp0ZR2/PpMqq pTear1QaHms0WOMjN/jQgLG/D+WkrMpNPLxhYiFH1ruS+pPsiQ13FWYY4PInzatzfvcd Uqqcokz/vaPABnBEslr2ocXQFVKRuzvUQpi0/x3vSrJWfJOdbQ50hlzYYsa64pE+VnlP kGIA== X-Gm-Message-State: AOAM532XMPVtlNzpHeKZd7QbwW4LJNbxsJ3fR+l53UhjOi+JmjeilMaU 3mWlWXtxR0/fi13RH9d+muOsixTqTPx5p0MeuQ== X-Google-Smtp-Source: ABdhPJzddWqg8xzrwCRWEzYbsqchlneSlYJ078+6TskGHlXn2oNrGkOKl5zn5F+WJ/ruXjL1Y6BSj2qKV0idYkImSEQ= X-Received: by 2002:a81:1215:0:b0:2f4:e248:844c with SMTP id 21-20020a811215000000b002f4e248844cmr10496274yws.205.1651495025894; Mon, 02 May 2022 05:37:05 -0700 (PDT) MIME-Version: 1.0 References: <62317B01.90907@adviesenzo.nl> <3F016525-CCDE-4229-9260-7C76A6FF42E1@cschneid.com> In-Reply-To: Date: Mon, 2 May 2022 14:36:58 +0200 Message-ID: To: =?UTF-8?Q?Alexandru_P=C4=83tr=C4=83nescu?= Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Deprecated partially supported callables: should is_callable() throw a deprecation notice ? From: guilliam.xavier@gmail.com (Guilliam Xavier) On Mon, May 2, 2022 at 1:57 PM Alexandru P=C4=83tr=C4=83nescu wrote: > On Mon, May 2, 2022 at 2:15 PM Guilliam Xavier wrote: >> I too would rather have "extra" deprecation notices in 8.2 than >> *sudden errors / silent behavior changes* in 9.0 (for the callable >> type declaration / the is_callable() function)... > > The point is that this is not an usual deprecation, something that will c= hange 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". This has already been said earlier, and answered: On Wed, Apr 20, 2022 at 12:22 AM Claude Pache wrot= e: > > Le 19 avr. 2022 =C3=A0 20:20, Andreas Hennings a = =C3=A9crit : > > =EF=BB=BFA deprecation warning on is_callable() would imply that in a f= uture > > version of PHP that call will be illegal. > > No, in the case of `is_callable()`, the deprecation warning will imply t= hat, in a future version of PHP, the behaviour will change. There are prec= edents of deprecation warning for changing behaviour: https://3v4l.org/Iqo4= N Regards, --=20 Guilliam Xavier