Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002158 [Quercus] minor always 11-09-07 00:22 09-05-08 15:17
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.3
Summary 0002158: Bad line numbers in backtraces in compiled mode
Description <?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.
Additional Information
Attached Files

- Relationships

- Notes
(0003396)
ferg
09-05-08 15:17

php/180u
 

- Issue History
Date Modified Username Field Change
11-09-07 00:22 koreth New Issue
09-05-08 15:17 ferg Note Added: 0003396
09-05-08 15:17 ferg Assigned To  => ferg
09-05-08 15:17 ferg Status new => closed
09-05-08 15:17 ferg Resolution open => fixed
09-05-08 15:17 ferg Fixed in Version  => 3.2.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker