View Issue Details

IDProjectCategoryView StatusLast Update
0001372XdebugUsage problems (Wrong Results)public2016-12-02 12:45
ReporterMougrimAssigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionnot fixable 
PlatformLinuxOSUbuntuOS Version14.04
Product Version2.4.0 
Target VersionFixed in Version 
Summary0001372: Problems in coverage with xdebug and uopz
DescriptionI have wrong coverage if uopz is enabled.
See https://github.com/mougrim/coverage-problem
https://travis-ci.org/mougrim/coverage-problem/builds/179891288
I reproduced it for uopz-5.0.1 and Xdebug 2.4.0 or 2.5.0rc2-dev (from master).
So, with uopz (wrong):
![with uopz](https://cloud.githubusercontent.com/assets/1057709/20743980/5c6581ce-b6ea-11e6-8fbe-cf8b92f49e80.png)
Without uopz (right):
![without uopz](https://cloud.githubusercontent.com/assets/1057709/20743989/6a73c06e-b6ea-11e6-907a-692e79ebcfe4.png)

PHP 7.0.7 (and PHP 7.0.13-1+deb.sury.org~trusty+1)
PHPUnit 5.6.7 by Sebastian Bergmann and contributors.
Tagscoverage, PHP7
Operating System
PHP Version7.0.10-7.0.14

Activities

Mougrim

2016-12-01 07:36

reporter  

With uopz.png (13,590 bytes)
With uopz.png (13,590 bytes)

Mougrim

2016-12-01 07:37

reporter  

Without uopz.png (13,792 bytes)
Without uopz.png (13,792 bytes)

derick

2016-12-01 19:30

administrator   ~0003863

I can reproduce this, now I need to figure out why...

derick

2016-12-02 12:45

administrator   ~0003869

Hi,

I am sorry to say, but this can not be fixed. Uopz overrides PHP's internal execute functions. Xdebug *also* requires this to do better code coverage, and code analysis. PHP doesn't support more than one extension doing this at the same time.

cheers,
Derick

Issue History

Date Modified Username Field Change
2016-12-01 07:36 Mougrim New Issue
2016-12-01 07:36 Mougrim File Added: With uopz.png
2016-12-01 07:37 Mougrim File Added: Without uopz.png
2016-12-01 07:39 Mougrim Tag Attached: PHP7
2016-12-01 07:39 Mougrim Tag Attached: coverage
2016-12-01 19:30 derick Note Added: 0003863
2016-12-01 19:30 derick Assigned To => derick
2016-12-01 19:30 derick Status new => confirmed
2016-12-02 12:45 derick Note Added: 0003869
2016-12-02 12:45 derick Status confirmed => resolved
2016-12-02 12:45 derick Resolution open => not fixable