Re: [RFC][Vote announcement] Arbitrary static variable initializers
| From: | Ilija Tovilo | Date: | Thu, 16 Mar 2023 11:53:10 +0000 |
| Subject: | Re: [RFC][Vote announcement] Arbitrary static variable initializers | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-119723@lists.php.net to get a copy of this message | ||
Hi Alexandru
>>
>> 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?
Nope, you're absolutely right. That was a mistake on my part. I
adjusted the example, thanks for pointing it out!
Ilija
@Alexandru Sorry for the duplicate mail, I forgot to press Reply All.