Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112826 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71247 invoked from network); 10 Jan 2021 02:11:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Jan 2021 02:11:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DA0A6180504 for ; Sat, 9 Jan 2021 17:48:42 -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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 ; Sat, 9 Jan 2021 17:48:42 -0800 (PST) Received: by mail-ej1-f49.google.com with SMTP id ce23so19722972ejb.8 for ; Sat, 09 Jan 2021 17:48:42 -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=E3Naymtlz5ow/a8V7WrYsktLwmJJ80hWq4i9WLDj/rA=; b=fO5f+ky2qvDuSmGkoAhqa3fIRd2z9JFeNu9lAxyVefxBaJp4+vnZwlS1xAQEFwwU0W Cwz7QM8jO47GVGkL8xtT74nBAmgKrv3A6wZrcBn9QaDGW3FussMtbwHRFgtjPKLN0ARO HEw/dcDgReM8lwAqL1nqvxYxyzRM6q4JFlxuInBXKBycevNz/GpARjbhu43yh4Z5yION sNYb2pvp7jYUl+pOlX1aBpzrdhKlFjV7LWPlWBYXRHskzSVZNqlCgum4wWhunQOwn1Pl 5nMhe/tpkL8roan06WKKZ9jlJhx5xIFaJGCtswD7bEoKGpGz49TThCmGKMs+jPT2Uft+ CXQQ== 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=E3Naymtlz5ow/a8V7WrYsktLwmJJ80hWq4i9WLDj/rA=; b=N9A202uIQYY47UVkSvihzjbWL5lhhpmmACnOLMn2Barw0jnDFPq0Z33nshaVpBpHyh 0aQu0WpRxYU+xbHXLD3/3rcTt2tnVGmZUjW1g+1mbqrQ3RkA0B/nQY3y269jstHFYAli lJV15dR/nAV6erxx1ZLlWnu9iWv7eCuPbVNerbicTojBBcJ7wyghMIpSHlRqWN8HwO7N T8MhS9n1d9eLJRv5w/0DhR3sUOq4K4ir9Y0ehzS5Eo9fUEB724olgs0l4QS+h07Nvqe+ QmYvrhaLMdPj0lmw2u4MtT0cxVw+SEKgDkTqV7biFyYpYlirfMe0/26npJrJ2CHEqBPN zeAA== X-Gm-Message-State: AOAM530QnlB586QTmPkJ8jtw7VGamt7ocN04DpdXQBIHSh9css1y4owS SyWT1jfI+v6pBkEX+o+YxbKGJh1+SWtRt2LZMr4YI6/UFEqDww== X-Google-Smtp-Source: ABdhPJxTCD95C74cm9G5ppPtQlIc7pJJyM2uX1jV7hOq51lF+O1usTKQTOOFWxrRLC0OFjFw48sXO4FTy+X+Dqy5CnM= X-Received: by 2002:a17:906:d28f:: with SMTP id ay15mr6574271ejb.327.1610243321066; Sat, 09 Jan 2021 17:48:41 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 10 Jan 2021 01:48:28 +0000 Message-ID: To: Benjamin Eberlei Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000002779be05b881fd8f" Subject: Re: [PHP-DEV] #[Deprecated] Attribute From: george.banyard@gmail.com ("G. P. B.") --0000000000002779be05b881fd8f Content-Type: text/plain; charset="UTF-8" On Sat, 19 Dec 2020 at 10:19, Benjamin Eberlei wrote: > Hi internals, > > I have updated the RFC for a #[Deprecated] attribute that wasn't completed > for PHP 8.0 due to time constraints and I am able to restart the discussion > now. > > https://wiki.php.net/rfc/deprecated_attribute > > The following updates have been made: > > - focus on only method and function deprecations for now, removed > class/property/constant deprecations. > - a section on explaining the runtime effects of deprecations in PHP, and a > note that this RFC is about completing deprecation support within the > existing model, while changes to deprecations in general are out of scope / > a disjunct concern for a different RFC. > > Sara proposed a much improved implementation over my initial patch, by > using the already existing ZEND_ACC_DEPRECATED constant on userland > functions. The resulting implementation is therefore much simpler and > really just extending existing function deprecation support from internal > to userland functions. You can find the PR here: > > https://github.com/php/php-src/pull/6521 > > Let me know what you think. > > greetings > Benjamin > Just to clarify this raises an E_DEPRECATED right? Could it make sense to raise E_USER_DEPRECATED instead? Best regards, George P. Banyard --0000000000002779be05b881fd8f--