-
-
Notifications
You must be signed in to change notification settings - Fork 405
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I'm not 100% sure the bug is in this package or in PHP core itself, but when running any PHP script after setting up PHP 8.1, a build will fail due to Xdebug/Pcov not being found.
Version
- I have checked releases, and the bug exists in the latest patch version of
v1orv2. -
v2 -
v1
Runners
- GitHub Hosted
- Self Hosted
Operating systems
ubuntu-latest
PHP versions
PHP 8.1.
To Reproduce
example:
runs-on: ubuntu-latest
name: "Example"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none
- name: Require dependencies
run: composer require --dev --no-install php-parallel-lint/php-parallel-lint
- name: Install Composer dependencies
uses: "ramsey/composer-install@v1"
- name: Run linting
run: vendor/bin/parallel-lint . -e php --exclude vendor --exclude .gitExpected behavior
No errors from PHP itself.
Screenshots/Logs
Errors in the seen in the "Install Composer dependencies" step:
PHP Warning: Failed loading Zend extension 'xdebug.so' (tried: /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so: cannot open shared object file: No such file or directory), /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pcov.so' (tried: /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so: cannot open shared object file: No such file or directory), /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Errors in the seen in the "Run linting" step:
PHP Warning: Failed loading Zend extension 'xdebug.so' (tried: /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so: cannot open shared object file: No such file or directory), /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pcov.so' (tried: /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so: cannot open shared object file: No such file or directory), /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Failed loading Zend extension 'xdebug.so' (tried: /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so: cannot open shared object file: No such file or directory), /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pcov.so' (tried: /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so: cannot open shared object file: No such file or directory), /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
> @php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git '--checkstyle'
PHP Warning: Failed loading Zend extension 'xdebug.so' (tried: /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so: cannot open shared object file: No such file or directory), /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/xdebug.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pcov.so' (tried: /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so: cannot open shared object file: No such file or directory), /usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so.so (/usr/local/php/8.1/lib/php/extensions/no-debug-non-zts-20201009/pcov.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Some examples of workflow runs failing:
- https://github.com/WordPress/Requests/runs/2162470022
- https://github.com/WordPress/Requests/runs/2162201795
- https://github.com/PHPCSStandards/PHPCSExtra/runs/2162546242
Are you willing to submit a PR?
Willing yes, but wouldn't known where to even look at this point. I defer to your far more extensive knowledge of this action.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working