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

Only prevent serialization of the Closure object. #352

Merged
merged 1 commit into from
Sep 26, 2011
Merged

Only prevent serialization of the Closure object. #352

merged 1 commit into from
Sep 26, 2011

Conversation

KendallHopkins
Copy link
Contributor

Instead of preventing the serialization of all callable values (such as names of functions or those created by create_function), it's better to only prevent the serialization of the Closure object.

The reason I ran into this problem is a value in $GLOBALS was "_" which is a callable function when gettext is installed. Even though the string value had nothing to do with the function which has the same name.

Instead of preventing the serialization of all callable values (such as names of functions or those created by create_function), it's better to only prevent the serialization of the Closure object.
sebastianbergmann added a commit that referenced this pull request Sep 26, 2011
Only prevent serialization of the Closure object.
@sebastianbergmann sebastianbergmann merged commit 39cb742 into sebastianbergmann:master Sep 26, 2011
@KendallHopkins
Copy link
Contributor Author

@sebastianbergmann Could this also be cherry picked onto the 3.5 branch?

@sebastianbergmann
Copy link
Owner

There will be no more PHPUnit 3.5 releases.

@KendallHopkins
Copy link
Contributor Author

Yes, but the bug was created (01aa347) between 3.5.15 tag and the head 3.5 branch, which means people pulling 3.5 branch will not get this bug fix.

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