You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid XML generated when both PCOV and Xdebug are loaded #1131
I have created a script that loads the XML coverage file, generated by phpunit, to publish some statistics of our codebase. Since the latest version of php-code-coverage, I am unable to load the XML file with the following error:
We use PCOV in our pipelines where the phpunit job is executed using a PHP image that has Xdebug enabled by default. We don't really need Xdebug so we can use another image to work around this issue, but I just wanted to report that when using a combination of Xdebug and PCOV, invalid XML is being generated which can not be loaded by the simplexml_load_file function.
changed the title [-]Invalid XML generated when using a combination of PCOV and Xdebug[/-][+]Invalid XML generated when both PCOV and Xdebug are loaded[/+]on Dec 19, 2025
Activity
staabm commentedon Dec 19, 2025
@stijnh92 thanks for the report. please give the fix in #1132 a try
stijnh92 commentedon Dec 19, 2025
@staabm perfect, that works 🙏
[-]Invalid XML generated when using a combination of PCOV and Xdebug[/-][+]Invalid XML generated when both PCOV and Xdebug are loaded[/+]Closes #1131
Merge branch '11.0'