Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112554 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84608 invoked from network); 19 Dec 2020 10:47:11 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Dec 2020 10:47:11 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BFCF2180538 for ; Sat, 19 Dec 2020 02:19:02 -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=-0.3 required=5.0 tests=BAYES_05,DKIM_INVALID, DKIM_SIGNED,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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, 19 Dec 2020 02:19:01 -0800 (PST) Received: by mail-wr1-f50.google.com with SMTP id c5so5657338wrp.6 for ; Sat, 19 Dec 2020 02:19:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=8LnxvDvWtKJ8a+YNGzcCeMKP4FIdWVmgk/XNEuvwkIw=; b=xOrar7MzN7J7XF63YTfUQDLvhVh2SdMVvtBmi71PYCsitGWFf8Lla1Dp6+aU6iuYmq iSjqOpsIhx4QR8wAiUtW7xRDCvqgQV8Anm1Lifftf4xnKD1PeFwRoaV+Wh381o3lF9TH Txihwsv9WlrPPKeC8kDldrQUXA7Sr0KOIzbdmaXMxsRf4PwBe/VgQZ3tN8/2V1bLerLd J5xI7FSWXbZ6id2kJLa9sHLN3sbEyGt+7/q4m7/5S+xkzvNhbFL1hvTVsyo5567rRVvk vGQW39G5PnAkMOhWhWNHSGrSzrD1us6+dSQhbaBn057AgTVf9TvD0hElQ2aww+7gBt/x 5KkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8LnxvDvWtKJ8a+YNGzcCeMKP4FIdWVmgk/XNEuvwkIw=; b=VxtiETm9qSDw3wjuxzm+Rglkq7iQZHzFZ/WWNFdMcZDl3x5l+d2szHACnGNA9lLvPj YZg7GM+YXWMiCzVnANK/AoKrHCdf4nYAgHwc8nt3fjrFmOblgzFDnu3ShbQOYTLxaZog uqQs7lQ2Ilw5sDaH8C6i7on2KpJ/O2vd7IxkcoDV/a/6Bjg5Uq9lRpt8gbzWItKb1g/k k6NPqhVGlxlNCfTyT8eSgBFKRr44EIgG/mP1dR4VWMPr0kVb/2EC+tcHNg+spETtxV+d CimjCSwRzJiq6AtiDK+ZDTh+/tlhIo0c644UQFLzzjkU28dcRC+plWy5wUeFp0eKwlb/ HeNw== X-Gm-Message-State: AOAM531fbCTtAzYqteU8GgsH88/o9Pec6radC+v7Wc8De9CYesqk2rpM 5Sc9TYHF8/bVaC0J57IoRxKbS9nPu+3F6lZ02OKOExmJjKVzroqD X-Google-Smtp-Source: ABdhPJx8/pfaxVj06Mo5n2AFc7v5MBmHpDW2XtHY2v7WF0NF1jN4qF57dQiyPa2SLRiboRaVPBeGm3/zfYD8Rl0odm4= X-Received: by 2002:a5d:60c1:: with SMTP id x1mr8725738wrt.271.1608373139439; Sat, 19 Dec 2020 02:18:59 -0800 (PST) MIME-Version: 1.0 Date: Sat, 19 Dec 2020 11:18:48 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="000000000000a4979b05b6ce8d52" Subject: #[Deprecated] Attribute From: kontakt@beberlei.de (Benjamin Eberlei) --000000000000a4979b05b6ce8d52 Content-Type: text/plain; charset="UTF-8" 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 --000000000000a4979b05b6ce8d52--