Mantis - Quercus
Viewing Issue Advanced Details
2158 minor always 11-09-07 00:22 09-05-08 15:17
koreth  
ferg  
normal  
closed 3.1.3  
fixed  
none    
none 3.2.1  
0002158: Bad line numbers in backtraces in compiled mode
<?php
function back() {
    return debug_backtrace();
}

$backtrace = back();
print "
";
print_r($backtrace);

In interpreted mode this correctly reports the call as coming from line 6. As soon as the file gets compiled, the line number switches to 55, which is the line number in the .java file.

Maybe there's no practical way to report the PHP line numbers in backtraces, but the Java line numbers are much less useful for debugging PHP scripts.

Notes
(0003396)
ferg   
09-05-08 15:17   
php/180u