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

Getting "Serialization of 'Closure' is not allowed" exception when debugging tests in PhpStorm #960

Closed
aik099 opened this issue Jul 11, 2013 · 1 comment

Comments

@aik099
Copy link

aik099 commented Jul 11, 2013

PhpStorm creates it's own test runner to allow debugging tests right from within IDE.

It also adds IDE_EVAL_CACHE global array that can among other things store a closures in it.

Following line https://github.com/sebastianbergmann/phpunit/blob/master/PHPUnit/Util/GlobalState.php#L115 has protection, that prevents closures to be serialized, but it only checks for closures as values and it doesn't recurse to see if one of arrays have a closure inside it.

Other closure related checks in same class might be affected as well.

@whatthejeff
Copy link
Contributor

Thanks for the bug report @aik099. We actually already have an issue open for this (see #451).

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

No branches or pull requests

2 participants