View Issue Details

IDProjectCategoryView StatusLast Update
0001241XdebugUncategorizedpublic2016-06-06 21:28
Reporterderick Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.4.0rc3 
Target Version2.4.0Fixed in Version2.4.1 
Summary0001241: Xdebug doesn't handle FAST_RET and FAST_CALL opcodes for branch/dead code analysis, and path coverage
Description

When analysing:

<code>
<?php
function extractFile()
{
try {
echo "try\n";
} catch (Catch1 $e) {
echo "catch1\n";
} catch (Catch2 $e) {
echo "catch2\n";
} finally {
echo "finally\n";
}
echo "end\n";
}

extractFile();
?>
</code>

It fails to see any jumps in FAST_RET and FAST_CALL.

TagsNo tags attached.
Operating System
PHP Version7.1-dev

Activities

derick

2016-01-19 22:29

administrator   ~0003424

Pull request at https://github.com/xdebug/xdebug/pull/256, but breaks due to PHP 7.0.[0-2] having a bug in line numbers for FAST_CALL.