View Issue Details

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

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


$a = 'foo';

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


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


Additional Information

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

TagsNo tags attached.
Attached Files (40,516 bytes)
Operating SystemUbuntu Natty (11.04)
PHP Version5.3.5



2011-07-16 14:39

administrator   ~0001761

Fixed in git for xdebug 2.1.3 and 2.2dev

Issue History

Date Modified Username Field Change
2011-07-08 14:57 2GooD New Issue
2011-07-08 14:57 2GooD File Added:
2011-07-16 14:39 derick Note Added: 0001761
2011-07-16 14:39 derick Status new => closed
2011-07-16 14:39 derick Assigned To => derick
2011-07-16 14:39 derick Resolution open => fixed
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized