Mantis - Quercus
Viewing Issue Advanced Details
2159 minor always 11-09-07 00:56 11-14-07 21:18
koreth  
nam  
normal  
closed 3.1.4  
fixed  
none    
none 3.1.4  
0002159: "*" at the end of a comment line causes line number to double-increment
<?php
function back() {
        print "
" . print_r(debug_backtrace(), true) . "
";
}

back(); // this is line 6 and shows up as line 6 in the trace
/**
 */
back(); // this is line 9 but shows up as line 10 in the trace
My fix for the bug is attached.
 patch.txt [^] (593 bytes) 11-09-07 00:56

Notes
(0002470)
koreth   
11-09-07 00:57   
Hmm, Mantis didn't quote my "pre" and "/pre" tags in the example code. The body of the back() function should be on one line.
(0002497)
nam   
11-14-07 21:18   
php/001d