Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:112870
Return-Path: <ocramius@gmail.com>
Delivered-To: mailing list internals@lists.php.net
Received: (qmail 81684 invoked from network); 13 Jan 2021 13:13:17 -0000
Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5)
  by pb1.pair.com with SMTP; 13 Jan 2021 13:13:17 -0000
Received: from php-smtp4.php.net (localhost [127.0.0.1])
	by php-smtp4.php.net (Postfix) with ESMTP id 2EB801804E2
	for <internals@lists.php.net>; Wed, 13 Jan 2021 04:51:29 -0800 (PST)
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-Virus: No
X-Envelope-From: <ocramius@gmail.com>
Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.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 <internals@lists.php.net>; Wed, 13 Jan 2021 04:51:28 -0800 (PST)
Received: by mail-io1-f45.google.com with SMTP id u17so3836993iow.1
        for <internals@lists.php.net>; Wed, 13 Jan 2021 04:51:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=mime-version:references:in-reply-to:from:date:message-id:subject:to
         :cc;
        bh=IdvVvR7HCDKd0H2Ib5W/g0AnexCmlxXgZ2sXRrHx954=;
        b=vIvBNV41/IU/+neaWqoFExGb8L0Iaky7zEAr3SC6s9GH82fEVWuZ2t9V2q6/tfGP3C
         Q5hvSsxzJfn+kQiJ1AJIPTMUoIaaHnj+2BSQwmR+RbirDV9FWmpiql9X94uFjDVPitzi
         p+dqCymAoWR50j1jJ5rX6kjSBna+tqMfIuOVWYnxfmUUf3V7h3rM1LlyAnQEq8ZkOxcA
         8WGK3eRDz+zvxi7DDe9z7l9kYCqMlmGRyu25nbziPjWkXXyQlb5dOL5LVYLdotLS34AB
         DKd3uikeVvzTpx3NLy4Lg0qA/t0YtC3MTyEuQgViS1DD0splivpMdiIgBtyANQQ2fR+I
         Nlmw==
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=IdvVvR7HCDKd0H2Ib5W/g0AnexCmlxXgZ2sXRrHx954=;
        b=JDM+Tq0L6JFS7qsHL1mrpLoBLRIvHFlOqC11K0PEN9iEJq6QgtUuEWfZRKnCsKFIve
         /0QlqDvr/JxsNSEI3v/lwqbMBXAQN8tHVbLNjQi3RK4IbDYRfqLRtgjjhogSav6LbV2U
         v6fA+/0T+69i3S9lWL4EyBqjXCg+eYLzyVYBbrfRGi70HoHb3BcIIsIN1XRqzztlkFAl
         1PTPMFBTc1eOeyz6EIM9VaxZDxIddw8p6XrT7BjyBdrJePUma2WcmHpAaLfaXd6y1XNZ
         pbHHExtkFvySHkkQ/qUO5u7O48mQs9Jb74DayPYG+sKEDu/swtmWpHKfak/jFfp0yO0y
         4KRA==
X-Gm-Message-State: AOAM533bg/fZJwqqs/ZbNWQQs73V7kzWibtw6EU0FDLhWOzmoh6HQYbe
	1yk9Uve0+GEc10A2RnIzvir/Q/JnsgqaZuYjZ6Q=
X-Google-Smtp-Source: ABdhPJwpv7O+QHfeG813g0i1w4B/mVj6Uiiy2VmvzMK6iOWL9mY6MOIrQbqms/aINYInTJn9hLfD8i3cw+4moyee+ik=
X-Received: by 2002:a92:d1c9:: with SMTP id u9mr2204517ilg.282.1610542286535;
 Wed, 13 Jan 2021 04:51:26 -0800 (PST)
MIME-Version: 1.0
References: <CAEPJdu=kopidV44A01Sjv_eLq_fkLsjVuzqXx+j9b9gCahn2Vg@mail.gmail.com>
 <CAFPFaMK6LpF=1EoPXrJBJjEKKO7LVKEzw6oExMT_49aRQwoFWQ@mail.gmail.com>
 <CADyq6sLgsGdxkA7Pgrk9vzxf13d0uRefxPRcd4hQO2ejZWwgdQ@mail.gmail.com> <CAEPJduk88Kf7vyV-v+N4A90n+vSLV-nRoT+6MnaUS7BXsNpTRA@mail.gmail.com>
In-Reply-To: <CAEPJduk88Kf7vyV-v+N4A90n+vSLV-nRoT+6MnaUS7BXsNpTRA@mail.gmail.com>
Date: Wed, 13 Jan 2021 13:51:15 +0100
Message-ID: <CADyq6s+ERHkyn0YgXTzKhx_jh5dL_8_WaJxn8qffHhPOLT=Bkw@mail.gmail.com>
To: Benjamin Eberlei <kontakt@beberlei.de>
Cc: "G. P. B." <george.banyard@gmail.com>, PHP Internals <internals@lists.php.net>
Content-Type: multipart/alternative; boundary="000000000000e2804705b8c798e7"
Subject: Re: [PHP-DEV] #[Deprecated] Attribute
From: ocramius@gmail.com (Marco Pivetta)

--000000000000e2804705b8c798e7
Content-Type: text/plain; charset="UTF-8"

Hey Benjamin

On Wed, Jan 13, 2021 at 1:47 PM Benjamin Eberlei <kontakt@beberlei.de>
wrote:

> I get where you are coming from, but side-effect based
> notices/deprecations is just the way PHP works at the moment and as such
> this existing mechanism should be used and extended.
>
> I do have (vague) plans to tackle alternative ways to process
> notices/deprecations in the future, but this is independent from that and
> #[Deprecated] would automatically tie into a change of this kind.
>

If you have vague plans, perhaps introducing `#[Deprecated]` first, then
proposing a separate RFC for the runtime behavior?

For me, runtime behavior is:

 * a big problem with existing tools that started doing this
 * a production outage risk
 * something that attributes shouldn't do anyway, at least not out of the
box (AOP OOTB is quite ugly and unexpected)

As usual, I'm fighting for pushing things into compile-time rather than
runtime, as runtime in PHP is already quite the nightmare of things to keep
in mind.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

--000000000000e2804705b8c798e7--