Re: [RFC][Vote announcement] Arbitrary static variable initializers
| From: | Alexandru Pătrănescu | Date: | Wed, 15 Mar 2023 17:43:33 +0000 |
| Subject: | Re: [RFC][Vote announcement] Arbitrary static variable initializers | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-119713@lists.php.net to get a copy of this message | ||
On Wed, Mar 15, 2023, 14:02 Ilija Tovilo <tovilo.ilija@gmail.com> wrote:
> Hi everybody
>
> It's been a while since I've announced this RFC.
> https://wiki.php.net/rfc/arbitrary_static_variable_initializers
> https://externals.io/message/118976
>
> There haven't been many responses, so I'd like to put this to a vote
> early next week.
>
> Only a small thing in the example for
"ReflectionFunction::getStaticVariables()" section.
I expect the third var_dump to print 1 also since the static statement is
not going to be executed again when calling foo(2).
Am I wrong?
Regards,
Alex