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

PHP Extension pcov is broken on Azure Pipeline #3470

Closed
3 of 7 tasks
sylfabre opened this issue May 27, 2021 · 3 comments
Closed
3 of 7 tasks

PHP Extension pcov is broken on Azure Pipeline #3470

sylfabre opened this issue May 27, 2021 · 3 comments
Labels
Area: PHP community-feature investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu

Comments

@sylfabre
Copy link
Contributor

sylfabre commented May 27, 2021

Description
The PR https://github.com/actions/virtual-environments/pull/3405/files#diff-95ffb9615f2b3417624ab00cf732ddb0ef86f44d8872bb35ab729001179abaffR83 makes it impossible to use pcov as it removes the content of the configuration file /etc/php/$version/mods-available/pcov.ini

This configuration file is to be copied to /etc/php/$version/[cli|apache2|fpm|...]/conf.d/ to enable the extension.
And the file from /etc/php/$version/[cli|apache2|fpm|...]/conf.d/ is to be removed to disable the extension.
Or use phpenmod and phpdismod (https://tecadmin.net/enable-disable-php-modules-ubuntu/) as php-common is available

=> Removing the content of /etc/php/$version/mods-available/pcov.ini is a very bad way to disable the extension...

Anyway, pcov can't be used at the same time that xdebug which is already installed by default.
So the right and simple solution is just not to install pcov, or install it but disabling it the right way.
And let experienced developers install/setup/use it if they need it.

Area for Triage:
PHP

Question, Bug, or Feature?:
Bug

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11
  • Windows Server 2016 R2
  • Windows Server 2019

Image version
20210524.1

Expected behavior
Possible to replace xdebug with pcov

Actual behavior
Impossible to enable/use pcov as its configuration file have been wiped out

Repro steps

phpenmod -v 7.4 pcov
php -m

=> pcov is not listed

@sylfabre
Copy link
Contributor Author

Workaround is adding echo 'extension=pcov.so' | sudo tee /etc/php/$(PHP_VERSION)/cli/conf.d/20-pcov.ini to your pipeline

@dibir-magomedsaygitov dibir-magomedsaygitov added OS: Ubuntu Area: PHP investigate Collect additional information, like space on disk, other tool incompatibilities etc. and removed needs triage labels May 27, 2021
@dibir-magomedsaygitov
Copy link
Contributor

Hello @sylfabre. Thank you for your report. We will take a look.

@al-cheb
Copy link
Contributor

al-cheb commented Jul 22, 2021

@sylfabre , Feel free to open the thread if you have any concerns.

@al-cheb al-cheb closed this as completed Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: PHP community-feature investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu
Projects
None yet
Development

No branches or pull requests

5 participants