Skip to content
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

Unserialization fixes #73

Merged
merged 4 commits into from
Dec 5, 2015
Merged

Unserialization fixes #73

merged 4 commits into from
Dec 5, 2015

Conversation

jeremeamia
Copy link
Owner

  • Reconstructs closures in a "private" function, outside of the SerializableClosure class, in order to have a neutral binding and scope. Fixes some edge cases with bindings and static closures.
  • Updates unserialization logic to unbox closures that are in used variables.

Review: @GrahamCampbell

@GrahamCampbell
Copy link
Contributor

Hmmm, tests failing on php 7 and hhvm.

} else {
@eval("\$__closure = {$__data['code']};");
}
} catch (\ParseException $e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be ParseError, right?

@GrahamCampbell
Copy link
Contributor

Looks good. 👍

GrahamCampbell added a commit that referenced this pull request Dec 5, 2015
@GrahamCampbell GrahamCampbell merged commit 0ecbaa2 into master Dec 5, 2015
@GrahamCampbell GrahamCampbell deleted the unserialization-fixes branch December 5, 2015 16:05
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.

2 participants