Skip to content

Only prevent serialization of the Closure object.#352

Merged
sebastianbergmann merged 1 commit into
sebastianbergmann:masterfrom
KendallHopkins:master
Sep 26, 2011
Merged

Only prevent serialization of the Closure object.#352
sebastianbergmann merged 1 commit into
sebastianbergmann:masterfrom
KendallHopkins:master

Conversation

@KendallHopkins

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@sebastianbergmann

Copy link
Copy Markdown
Owner

There will be no more PHPUnit 3.5 releases.

@KendallHopkins

Copy link
Copy Markdown
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