-
-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
Hello
I was running the following command and get an error.
docker run -it --rm -v $(pwd):/project -w /project -u 1000:1000 jakzal/phpqa:php8.1 phan --config-file=.config/phan.php
ERROR: AssertionError: The pcntl extension must be loaded in order for Phan to be able to fork. in phar:///tools/.phive/phars/phan-5.4.0.phar/src/Phan/Phan.php:239
Stack trace:
#0 phar:///tools/.phive/phars/phan-5.4.0.phar/src/phan.php(38): Phan\Phan::analyzeFileList(Object(Phan\CodeBase), Object(Closure))
#1 /tools/.phive/phars/phan-5.4.0.phar(6): require('phar:///tools/....')
#2 {main}
(Phan 5.4.0 crashed due to an uncaught Throwable)
More details:
#0: Phan\Phan::analyzeFileList() called at [phar:///tools/.phive/phars/phan-5.4.0.phar/src/phan.php:38] Args: [Phan\CodeBase({}), Closure]
#1: require() called at [/tools/.phive/phars/phan-5.4.0.phar:6] Args: ["phar:///tools/.phive/phars/phan-5.4.0.phar/src/phan.php"]
This didn't happens when running phpqa:latest like this:
docker run -it --rm -v $(pwd):/project -w /project -u 1000:1000 jakzal/phpqa:latest phan --config-file=.config/phan.php
Can you advice me: I'm wish to run PHAN against php 8.1 codebase, should I use jakzal/phpqa:php8.1
or the latest version? I'm not sure to know when to use latest and when a dedicated one.
Thanks
Metadata
Metadata
Assignees
Labels
No labels