MantisBT - Xdebug
View Issue Details
0000703XdebugUsage problems (Wrong Results)public2011-07-08 15:572011-07-16 15:39
2GooD 
derick 
normalminoralways
closedfixed 
2.1.0 
 
Ubuntu Natty (11.04)
5.3.5
0000703: 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
<?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;
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 [^]
No tags attached.
zip report.zip (40,516) 2011-07-08 15:57
https://bugs.xdebug.org/file_download.php?file_id=32&type=bug
Issue History
2011-07-08 15:572GooDNew Issue
2011-07-08 15:572GooDFile Added: report.zip
2011-07-16 15:39derickNote Added: 0001761
2011-07-16 15:39derickStatusnew => closed
2011-07-16 15:39derickAssigned To => derick
2011-07-16 15:39derickResolutionopen => fixed
2016-07-31 13:36derickCategoryUsage problems => Usage problems (Crashes)
2016-07-31 13:38derickCategoryUsage problems (Crashes) => Usage problems (Wrong Results)

Notes
(0001761)
derick   
2011-07-16 15:39   
Fixed in git for xdebug 2.1.3 and 2.2dev