View Issue Details

IDProjectCategoryView StatusLast Update
0000703XdebugUncategorizedpublic2011-07-16 14:39
Reporter2GooD Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.1.0 
Summary0000703: Line in heredoc marked as not executed in PHP_CodeCoverage for special case
Description

When a line in a heredoc ends with a ${} construct the subsequent line is marked as not executed in in PHP_CodeCoverage. See the attached coverage report.

I use Ubuntu Natty (11.04) with these package version:

php5-xdebug 2.1.0-1

php5 5.3.5-1ubuntu7.2

Steps To Reproduce

<?php

$a = 'foo';

$b = <<<EOF
the line after this is marked as not executed ${a}

EOF;

$c = <<<EOF
the line after ${a} is marked as executed

EOF;

Additional Information

I reported this as agains PHP_CodeCoverage but it was promptly closed as an Xdebug issue:

https://github.com/sebastianbergmann/php-code-coverage/issues/52

TagsNo tags attached.
Operating SystemUbuntu Natty (11.04)
PHP Version5.3.5

Activities

derick

2011-07-16 14:39

administrator   ~0001761

Fixed in git for xdebug 2.1.3 and 2.2dev