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

process isolation does not work on Windows 7 x64? #27

Closed
Bouke opened this issue Sep 21, 2010 · 3 comments
Closed

process isolation does not work on Windows 7 x64? #27

Bouke opened this issue Sep 21, 2010 · 3 comments

Comments

@Bouke
Copy link
Contributor

Bouke commented Sep 21, 2010

Trying out PHPUnit 3.5 got me confused for two days. First, I tried to add new tests for some new models I created in Symfony2 PR3's sandbox, which failed with a weird error:

RuntimeException: PHP Parse error: parse error in C:\(...)\symony2_pr3\- on line 131 (notice the \- at the end of the path)

Thinking it was related to Symfony, I left it there. Today, I wanted to introduce PHPUnit into another (non-Symfony) project. Eventually, I ran into the same error:

RuntimeException: PHP Parse error: parse error in C:\(...)\MyProject\- on line 141 (again, notice the \- at the end of the path)

After some trial-and-error, I removed processIsolation="true" from phpunit.xml, and all worked!

I tried debugging the error, but even using xdebug's profiler I wasn't able to locate the origin of the error.

@whatthejeff
Copy link
Contributor

Could you provide the exact command you are using to execute this test? Also, it would be helpful if you could provide your configuration file and a simple test case that reproduces this error.

@whatthejeff
Copy link
Contributor

I was able to get process isolation working on Windows 7 (x86-64) with PHP 5.3.2 and PHPUnit 3.5.0RC2, so any extra information you can provide would be really helpful.

@Bouke
Copy link
Contributor Author

Bouke commented Oct 8, 2010

This bug is a dupe of #14. The bug originates in PHP (http://bugs.php.net/bug.php?id=52911) and a workaround is proposed in http://github.com/sebastianbergmann/phpunit/pull/41.

axiac pushed a commit to axiac/phpunit that referenced this issue May 8, 2018
This issue was closed.
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