View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000763 | Xdebug | Uncategorized | public | 2011-12-27 11:01 | 2012-03-12 16:52 |
Reporter | jsiponen | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Product Version | 2.1.0 | ||||
Summary | 0000763: DBGP lineno is wrong if php script starts with a shebang | ||||
Description | DBGP lineno is wrong if php script starts with a shebang. See "Steps to Reproduce" for more details. | ||||
Steps To Reproduce | These are the files that I tested with, the first is without a shebang and the other one begins with a shebang. File: test_no_shebang.php $line_4 = 4; File: test_with_shebang.php #!/usr/bin/env php $line_4 = 4; If I set the breakpoint at line two for the file "test_no_shebang.php" then XDebug protocol will report the correct line numbers when stepping over the file: << stack_get -d 0
1 <?php << step_over
<< stack_get -d 0
1 <?php << step_over
2 $line_2 = 2; ============================================ However, if I try the same with the file ""test_with_shebang.php" the line numbers are reported wrongly (with the breakpoint set at line 3 now) after I step over once, as seen below: << stack_get -d 0
1 #!/usr/bin/env php Comment: Ok line offset << step_over
2 <?php Comment: Something went wrong, suddenly we find ourselves to be at line 5. << step_over
Comment: Couldn't step_over to line 6 =============================================== Also 'xcmd_get_executable_lines' will report the wrong lines for the file "test_with_shebang.php". It seems there's an error in the line offset by -1. << xcmd_get_executable_lines -d 0
| ||||
Tags | No tags attached. | ||||
Operating System | Mac OS X 10.7.2 | ||||
PHP Version | 5.3.8 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-12-27 11:01 | jsiponen | New Issue | |
2012-02-29 13:08 | derick | Note Added: 0001929 | |
2012-02-29 13:08 | derick | Assigned To | => derick |
2012-02-29 13:08 | derick | Status | new => feedback |
2012-03-12 16:52 | derick | Note Added: 0001979 | |
2012-03-12 16:52 | derick | Status | feedback => resolved |
2012-03-12 16:52 | derick | Resolution | open => unable to reproduce |
2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |