Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130506 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 lists.php.net (Postfix) with ESMTPS id D4AA51A00BC for ; Tue, 31 Mar 2026 07:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1774942163; bh=GL0BuU7aFncPmRJKGda5pU/uEBlO9uZ5OpcZRreAPgQ=; h=Date:From:To:Subject:In-Reply-To:References:From; b=JB6kQ7sETfCTO+68yxgZ4t6/apP7Apo8buPdconymejvgbNTBJ1YOTrd5oFK/MRXJ z3Eh1H2v43pib6hjOTQwU9j9RR+MQ32po+iJXZreBm5AwotZ9KNOhVJKKpi0lybb4O dEfICTH4hzMuSt2qGgBjxbnLVjMIv4IRt/3WmpN/kq6gEVbvk4uUOWDzxQ0xlBYNFr QRyw23fwfuf6+TuQ2a9CvuSwNe7am7MfUs0zcIuGWdwYki7NH3ite9l1xf9dWmWnqB U0wREz1GQDG60E/E8GXh6gDs7q/nYVtz3dOPtH2ismhoVv+R+z7mgz4Fb2UPkUzs2/ WxFPY1jGdQ9TQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A5B35180048 for ; Tue, 31 Mar 2026 07:29:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-a5-smtp.messagingengine.com (fout-a5-smtp.messagingengine.com [103.168.172.148]) (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 ; Tue, 31 Mar 2026 07:29:21 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 85558EC01B8 for ; Tue, 31 Mar 2026 03:29:15 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Tue, 31 Mar 2026 03:29:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1774942155; x=1775028555; bh=GL0BuU7aFncPmRJKGda5pU/uEBlO9uZ5OpcZRreAPgQ=; b= VMbdzxFZYPd42FDHwZKEy5gIdrfkuzct5IpsOGsX6TZP368W3gMnmaFeMwmOYV4Z iBeyjeuJ8Pf9V0bIxunE6NakdTV8Bo4+Gzr4GLIgmGAh26zTz4kDI0nmGTbqc8jD yeTRUYZhD6t9uaNCw0/WcPqsAmjxmPxAwgklC+1cx9eShgHTNfgR0x3cHoL3K2PP 4zROL1nmF+AY0+BAA7W2YYEah707rfvtbgCcvgwhnucrKONUiGkBfE9pIRdzejSX 4c7eH4G4POME3OAYpfNX4tTQt3oU7+o+gYnpHsrQBsMInmxyEed9ZWmAVlpc/ATf Q0Y3Gm3c/tYdHsiFtyypNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1774942155; x=1775028555; bh=G L0BuU7aFncPmRJKGda5pU/uEBlO9uZ5OpcZRreAPgQ=; b=EbpsIUQVRnXNEGseU v1i/r4c81fFGhCHHP63HchAGze7M3+NIKMJXToZVC0++6asmgBv2NctJegz+mPf3 Z6Z7IKooDNuFAd5JzM+ALKa+3KU0MABVbhO/mdR33RgYM3wR3nMaYthrww4lPN4H EyeySC+E4xwdpjrZ4Kgzejm+6BXh9OmrX/7buSBeknWBYY/K2xol4N+QyMkkp58x OUqnegVX40SazSluTD4tFoIdGnmKmYz/fyEBtonYPosd37YKLTCuyasYcw0nZhsB 2SkCGE+vv5wb4KaQgoK+NEJ3n2cMneQJnaUNh/CMkM8CQDGHjIuclwON6FouKym9 ijF8Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefgeduvdekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvffufggjfhfkgggtgfesthhqmhdttderjeenucfhrhhomhepfdftohifrghn ucfvohhmmhhinhhsucglkffoufhorfgnfdcuoehimhhsohhprdhphhhpsehrfigvtgdrtg hordhukheqnecuggftrfgrthhtvghrnheptdefjedtvefggeejueffvdeiudekfedtgfek gfdvfeekteffjedtfeevgedtueeknecuffhomhgrihhnpehphhhprdhnvghtpdhgihhthh husgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthhtohepud dpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishht shdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 31 Mar 2026 03:29:14 -0400 (EDT) Date: Tue, 31 Mar 2026 08:29:12 +0100 To: php internals Subject: Re: [PHP-DEV] [RFC] [Discussion] `#[\Override]` for class constants User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 31 March 2026 00:36:42 BST, Daniel Scherzer wrote: >Hi internals, > >I'd like to start the discussion for a new RFC about adding support for >`#[\Override]` for class constants=2E > >* RFC: https://wiki=2Ephp=2Enet/rfc/override_constants >* Implementation: https://github=2Ecom/php/php-src/pull/20478 I will probably abstain on this, because I've never fully understood the r= ationale for this attribute, but one point that might be worth spelling out= is that by nature constants are static, which makes it slightly harder to = accidentally reference an overridden definition=2E "Foo::BAR" and "self::BA= R" are both guaranteed to reference the expected definition; only less comm= on forms like "static::BAR" and "$this::BAR" will look up on a sub-class=2E Rowan Tommins [IMSoP]