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

Run with parallel runner only when proc_open is not disabled #1451

Merged
merged 2 commits into from Jun 22, 2022

Conversation

mvorisek
Copy link
Contributor

fixes phpstan/phpstan#7488

phpstan already accounts for disabled proc_open when detecting available CPU cores

@mvorisek mvorisek changed the title Run with parallel runner only when 2 or more processes are needed Run with parallel runner only when 2+ processes are needed Jun 21, 2022
@ondrejmirtes
Copy link
Member

I can't merge this change, it's basically a revert of a previous commit where I did this on purpose so that fatal errors happen in subprocesses and PHPStan still finishes with a nice outpur.

@mvorisek
Copy link
Contributor Author

No problem, I will update the condition to check explicitly for proc_open (this is the only function checked/used by the parallel process manager).

@mvorisek mvorisek changed the title Run with parallel runner only when 2+ processes are needed Run with parallel runner only when proc_open is not disabled Jun 21, 2022
@ondrejmirtes ondrejmirtes merged commit a6163fd into phpstan:1.7.x Jun 22, 2022
@ondrejmirtes
Copy link
Member

Thank you. Please open a new PR with an integration test in phpstan/phpstan. Do not modify an existing test but add a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants