Skip to content

Test phpstan /w restricted php.ini conf#7488

Closed
mvorisek wants to merge 1 commit intophpstan:1.7.xfrom
mvorisek:test_no_proc_open
Closed

Test phpstan /w restricted php.ini conf#7488
mvorisek wants to merge 1 commit intophpstan:1.7.xfrom
mvorisek:test_no_proc_open

Conversation

@mvorisek
Copy link
Contributor

@mvorisek mvorisek commented Jun 18, 2022

test #4147 and also disabled proc_open (which imply no parallelization possible)

probably no need to run full phpstan with these configurations

@mvorisek mvorisek marked this pull request as ready for review June 18, 2022 12:01
@mvorisek
Copy link
Contributor Author

@ondrejmirtes test should be working, but for some reasons, the original code is run

@ondrejmirtes
Copy link
Member

You get a nice error message:

In Process.php line 118:

  The Process class relies on proc_open(), which is not available on your PHP
   installation.

This behaviour is expected. There's no reason to disable these functions in the environment where you want to run PHPStan.

@mvorisek
Copy link
Contributor Author

mvorisek commented Jun 20, 2022

No, it the "detect CPU cores" code already account for that and it was working. But it was broken with some recent release.

In some environments, exec (and friends) functions can be disabled and phpstan should continue to work (using 1 process only).

@mvorisek
Copy link
Contributor Author

@ondrejmirtes please reopen this PR, I will try to fix the issue, it worked before and phpstan should continue to work /w that php.ini configuration

@ondrejmirtes
Copy link
Member

You can send a PR with a fix to phpstan-src and link this closed PR once you think it works.

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