View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001211 | Xdebug | Uncategorized | public | 2015-11-24 08:57 | 2016-12-03 13:44 |
Reporter | nicolas-grekas | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | not fixable | ||
Summary | 0001211: ReflectionGenerator reports wrong line number with xdebug | ||||
Description | PHP7 without xdebug reports a different executing line than with it. | ||||
Steps To Reproduce | <?php class GeneratorDemo
} function bar() $g = new GeneratorDemo(); echo $r->getExecutingLine(); | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 7.0-dev | ||||
|
I can indeed reproduce this, but fixing it is going to be non-trivial. As it doesn't segfault, and it "only" causes an issue with reflection, I'm unlikely to put this at the top of the priority list. |
|
Hi, I had another look at this, and this is not something that is caused by Xdebug directly, but instead by how PHP generates opcodes in different modes. I can reproduce this, by not loading any extension, and enabling or disabling "Generate extended information for debugger/profiler": [PHP: 7.0.13-dev ] derick@whisky:/tmp $ php -n 1211.php [PHP: 7.0.13-dev ] derick@whisky:/tmp $ php -n -e 1211.php As this is something internal to PHP, and Xdebug needs this "extended information" (it turns it on internally through an API), I can not fix this on the Xdebug side. cheers, |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-11-24 08:57 | nicolas-grekas | New Issue | |
2015-11-24 12:51 | derick | Note Added: 0003260 | |
2015-11-24 12:51 | derick | Assigned To | => derick |
2015-11-24 12:51 | derick | Status | new => acknowledged |
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) |
2016-12-03 13:44 | derick | Note Added: 0003887 | |
2016-12-03 13:44 | derick | Status | acknowledged => resolved |
2016-12-03 13:44 | derick | Resolution | open => not fixable |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |