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 | |||
| 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. | ||||
| 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. |