Skip to content

Fix Bug #66622: Closures do not correctly capture the late bound class (static::) in some cases #672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from

Conversation

morrisonlevi
Copy link
Contributor

This PR fixes bug 66622. It does three things:

  • Moves Zend/tests/closure_*.phpt to Zend/tests/closure/*.phpt. I was running these tests a lot and didn't have time to run the full Zend/tests suite. Some minor cleanup associated with the file renaming.
  • Fixes static closures to use late static binding
  • Automatically promotes non-static closures to be static when defined in a static method.

@morrisonlevi morrisonlevi deleted the bug66622 branch May 13, 2014 04:10
@morrisonlevi morrisonlevi restored the bug66622 branch May 13, 2014 04:10
@morrisonlevi
Copy link
Contributor Author

It seems I messed something up with git; will open a new PR.

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.

1 participant