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. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php