View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002049 | Xdebug | Step Debugging | public | 2021-12-02 23:28 | 2022-02-01 16:34 |
| Reporter | Zobo | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.1.2 | ||||
| Fixed in Version | 3.1.3 | ||||
| Summary | 0002049: evaling broken code (still) causes unhandled exception in PHP 7.4 | ||||
| Description | This issue is directly related https://bugs.xdebug.org/view.php?id=1993 . | ||||
| Steps To Reproduce | Crate file <?php xdebug_break(); Stop execution on breakpoint and run eval. Step next and it sould eval -i 17 -- bmFtZXNwYWNl step_over -i 21 | ||||
| Additional Information | Fix tested on PHP 7.4.3 Provided https://github.com/xdebug/xdebug/pull/811 | ||||
| Tags | No tags attached. | ||||
| Operating System | Win, Linux... | ||||
| PHP Version | 7.4.20-7.4.29 | ||||
|
|
I can't reproduce this with the information provided: https://github.com/xdebug/xdebug/pull/812 — Can you provide the full xdebug log and script that you use please? |
|
|
Here is the, code, xd2.log that show stepping through it without executing evaluate, and xd3.log that adds the eval command in the middle. See the lineno in stack, how it jumps to 0. |
|
|
|
|
|
Fixed for Xdebug 3.1.3. I've removed the version define check altogether, as it was needed for PHP 7.2 and up, but also had to adjust the patch due to a new compiler warning. |