Skip to content

Commit 1e8e957

Browse files
author
Victor Garcia
committed
cleaning filename returned wrongly due to an XDebug bug
1 parent 47612b9 commit 1e8e957

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PHP/CodeCoverage.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,11 @@ protected function applyListsFilter(&$data)
456456
protected function initializeFilesThatAreSeenTheFirstTime($data)
457457
{
458458
foreach ($data as $file => $lines) {
459+
// Patch for XDebug bug:
460+
// http://bugs.xdebug.org/bug_view_page.php?bug_id=0000331
461+
preg_match('/.*\.php/', $file, $matches);
462+
$file = $matches[0];
463+
459464
if ($this->filter->isFile($file) && !isset($this->data[$file])) {
460465
$this->data[$file] = array();
461466

0 commit comments

Comments
 (0)