Skip to content

Conversation

@marcelaraujo
Copy link
Contributor

  • PHP-5.5:

Each closure instance should have its own set of static variables. This works perfectly with non-generator closures (replace yield by return array in the test script), but not with generator closures (run the test script), where static variables seem to behave like a normal local variables.

Test created for the bug #64979

@kaplanlior
Copy link
Contributor

Thanks for the pull-request.

Could edit the commit message to be more descriptive of the change than only linking to the bug ? See how other relate to fixing bug in the commit messages: https://github.com/php/php-src/commits/master

@php-pulls
Copy link

Comment on behalf of stas at php.net:

merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants