View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000893 | Xdebug | Uncategorized | public | 2012-10-12 07:32 | 2017-03-19 22:17 |
Reporter | Zobo | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | won't fix | ||
Product Version | 2.2.1 | ||||
Summary | 0000893: Callstack invalid when __autoload initiated from class method | ||||
Description | If __autoload is called as a result of accessing an unknown class from within a class method (static or instance - clazz::doSomething() or $inst->doSomething()), the call stack will have wrong file name one depth just below the autoload call. Expected result (note filename on second line): Actual result (note filename on second line): | ||||
Steps To Reproduce | Attached package contains 3 files: __autoload() contains an xdebug_break() at the location where the issue is first visible. | ||||
Additional Information | This is reproducible with php5.4.5/xdebug2.2.1 and php5.3.3-7+squeeze14/xdebug2.2.1. The issue is a bit different when tested with php5.3.3-7+squeeze14/xdebug2.1.0. There the the stack depths in question have correct filename, but lineno is 0. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | |||||
PHP Version | 5.4.4 | ||||
|
Forgot OS: php5.3.3-7+squeeze14/* was tested on Debian Linux, PHP CGI |
|
I can still reproduce this with Xdebug 2.5, by adding the "xdebug_print_function_Stack()" on the place where you have the xdebug_break(): Xdebug: user triggered in /home/derick/Downloads/autoload.php on line 6 Call Stack: |
|
This is indeed a bug in Xdebug with PHP 5, but it works fine with PHP 7.0 and 7.1. As this is not a critical bug, I won't be fixing it. |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-10-12 07:32 | Zobo | New Issue | |
2012-10-12 07:32 | Zobo | File Added: xdc-test.zip | |
2012-10-12 07:33 | Zobo | Note Added: 0002359 | |
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-11-27 19:01 | derick | Note Added: 0003796 | |
2016-11-27 19:01 | derick | Assigned To | => derick |
2016-11-27 19:01 | derick | Status | new => confirmed |
2017-03-19 22:17 | derick | Note Added: 0004237 | |
2017-03-19 22:17 | derick | Status | confirmed => resolved |
2017-03-19 22:17 | derick | Resolution | open => won't fix |
2017-03-19 22:17 | derick | Relationship added | has duplicate 0001150 |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |