Re: [RFC][Discussion] use construct (Block Scoping)

From: Date: Thu, 11 Dec 2025 23:37:06 +0000
Subject: Re: [RFC][Discussion] use construct (Block Scoping)
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-129590@lists.php.net to get a copy of this message
On 2025-12-12 11:21, Rowan Tommins [IMSoP] wrote:
function foo() {
     static $a = 1; // OK
     static $b = $a; // Fatal error: Constant expression contains invalid operations
}
Though this example is legal since 8.3.

« previous php.internals (#129590) next »