Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123398 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 0E6401A009C for ; Wed, 22 May 2024 07:33:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1716363272; bh=L8n8mlb1f4NCqjVsUK1/RPcvDlDu6s/GdVzk7oIQZOA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ljXAx8BMnEdmG7rbl/tuKkeQf109W4w5MLI/IaG09N+2eOjF0RoUNzKcnbThkTFUI xUy68fzZk58ioRU1fb5jEz+1U830srRzl0B6n723wRgnF+YxyBKdimtXxTdNerb6Ts +vY5PGXAzVa0JyAMoTaQZnxFuy82ssxdqkoklyt0etGEGQzeo3z3SpUIyz58II3BpN iCcpFmfiDvNlODPAE/MtXGK1w7G8fiXwGegD/k7v4FqyrwMp69hCmvBbyicjYh68iT oEad+BcicqCvEGv2dyvMtwXOa2L5iKniiSm5m72eUx1PWeycBx2SEhvT45DfXBWdSF 1LJI304EyU6vw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3A51E18005F for ; Wed, 22 May 2024 07:34:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 22 May 2024 07:34:31 +0000 (UTC) Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2e724bc46bfso36847371fa.3 for ; Wed, 22 May 2024 00:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716363214; x=1716968014; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=L8n8mlb1f4NCqjVsUK1/RPcvDlDu6s/GdVzk7oIQZOA=; b=gBL1TjBynwqhy21JFl4I/jTxZNTZGXvo5G0wW6JLsyPce8qhBWxELFsCg04A4qJQCp HXZa+KLOQFIZUTgelS3PO/+UIlWB5q9Ywbb7biOoQqixyywLn9r/DCj8QUMoMgcLMemc RPbCNEQz6NHoEA3jSViucmxoLFjLqBXtN7YGsIsq5oZsnTxb1nZ9CoiTgVi0/MdWytDz L7lSn4dovMQ5/6wkOLDkhexEMVD4b1M58VUKLmepaKKxmyrFHrx0Iu+thJNNQ6VO73dT Ouw4q09gksYuV2uQKA7EbaPhONsTch9pdPaEQK8Gt/WKE2TNGS62YVst+MfD/3xgqmRy e/hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716363214; x=1716968014; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L8n8mlb1f4NCqjVsUK1/RPcvDlDu6s/GdVzk7oIQZOA=; b=bxHp32NTe68oFAoIlkL8ctkKfpJHNayjrbMpBgvZGTy6K+uLJzdPC1ZGSxRjOVv4cL MLbJrSH5B/c2K9kGhzlvxCIPM7uq0Xb8WLR/K1R6IHMYKLIswxqhDCVjqaX7CetHLA8n cvU8LVUHP7qrikbciulWL2bgInkxL+r6oo3iJW7tLZfy3nAPbZquJyYqXKVNN0kVTVz+ npAmjG0sFolpzYBdvdhs27/awpOAUXOmu7gTmzxY5ygWHZdjkABDcuUxH0ehljvJNwcF q3Y+zcRF5c3kZgoIFRT7tuUS6odwisTQcgSV+a5LDpWaT4HudvcLXIBwITJ27E4WY7zn YsfA== X-Gm-Message-State: AOJu0Yw3MvBsVylOpIqsvt+m6rOiV4PCFNxA7K6KF6IhTznO3bPXj1lj Sw/rfEgoGenq7OgZAxtmh9kYXyLeYG6ZvFmKcciCHKW68fMdQuWBMG9wwAX5NgaK8j25/Ai1IXM kUBWHIHhhXhZhw7S+W4nw1LMi4DHEtgw/ X-Google-Smtp-Source: AGHT+IFAI0ATLPAUyHQbCSNw6gTe3CgWrAIc58S8TeTLqr9vcs5M7r46CzkUA30wdSTQbkPHV8Qqiptmii6A3hoVeQ4= X-Received: by 2002:a2e:6a0e:0:b0:2da:bbf4:81bb with SMTP id 38308e7fff4ca-2e949490ab4mr5773741fa.2.1716363213424; Wed, 22 May 2024 00:33:33 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 22 May 2024 09:33:21 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] [Vote] #[\Deprecated] attribute To: =?UTF-8?Q?Benjamin_Au=C3=9Fenhofer?= Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000a451f0061905f372" From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --000000000000a451f0061905f372 Content-Type: text/plain; charset="UTF-8" Hi Benjamin, The vote for the RFC #[\Deprecated] attribute is now open: > > https://wiki.php.net/rfc/deprecated_attribute > > Voting will close on Wednesday 5th June, 08:00 GMT. > I voted "no" because I think this is better addressed in userland, as this gives more flexibility. I would better have an attribute that is made only for static analysis with no runtime side effects at all. Being forced to make the attribute final because the implementation in the engine requires is an example of why the engine is not the correct place to send this notice. Another example is not being able to add the attribute on classes because [engine reasons]. trigger_error() is better fitted for the runtime side-effect when it's desired. In my opinion, #[Deprecated] should be only for static analysers / reflection (although this would need another discussion - I'm not sure this would benefit being in the engine vs in a userland package. Thanks for the RFC anyway. Nicolas --000000000000a451f0061905f372 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Benjamin,

The vote for the RFC #[\Deprecated] attribute=C2=A0is now open:

= https://wiki.php.net/rfc/deprecated_attribute

Voting will close= on Wednesday 5th June, 08:00 GMT.

I voted "no" because I think this is better addressed in userla= nd, as this gives more flexibility.
I would better have an attrib= ute that is made only for static analysis with no runtime side effects at a= ll.
Being forced to make the attribute final because the implemen= tation in the engine requires is an example of why the engine is not the co= rrect place to send this notice. Another example is not being able to add t= he attribute on classes because [engine reasons].

<= div>trigger_error() is better fitted for the runtime side-effect when it= 9;s desired.
In my opinion, #[Deprecated] should be only for stat= ic analysers / reflection (although this would need another discussion - I&= #39;m not sure this would benefit being in the engine vs in a userland pack= age.

Thanks for the RFC anyway.

Nicolas
--000000000000a451f0061905f372--