Re: [php-src] PR #20903: GH-10497 (const obj->prop write) - language change notes

From: Date: Sun, 21 Jun 2026 20:01:18 +0000
Subject: Re: [php-src] PR #20903: GH-10497 (const obj->prop write) - language change notes
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-131441@lists.php.net to get a copy of this message
> Le 21 juin 2026 à 20:33, Khaled Alam <khaledalam.net@gmail.com> a écrit : > >  > Hi all, > > Reviving this thread. The v0.2 RFC > <https://wiki.php.net/rfc/const_object_property_write> (object > property writes on constants only; > array/dim writes removed) addressed Tim's concerns, and the 14-day cooldown has long > passed. > > Unless there are further objections, I intend to open voting on Monday, 29 June 2026. 2/3 > majority, > targets PHP 8.6, two-week vote. > > RFC: https://wiki.php.net/rfc/const_object_property_write > PR: https://github.com/php/php-src/pull/20903 > > Best regards, > __ > Khaled Alam Hi, The RFC talks only about global constants. What about class constants? It is somewhat cumbersome to get a mutable object in this position, but it is nevertheless possible, and, at least for consistency, it should be ensured that they are treated the same way as global constants: https://3v4l.org/QhM1L —Claude

« previous php.internals (#131441) next »