| Anonymous | Login | Signup for a new account | 2013-05-19 20:58 BST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0000799 | Xdebug | Usage problems | public | 2012-03-18 22:42 | 2013-03-23 14:50 | ||||||
| Reporter | astorm | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||
| Status | new | Resolution | open | ||||||||
| Platform | OS | OS X | OS Version | 10.6.8 | |||||||
| Product Version | 2.2dev | ||||||||||
| Target Version | 2.2.3 | Fixed in Version | |||||||||
| Summary | 0000799: xDebug Function Traces reports Base Class instead of Object Name | ||||||||||
| Description | When running a function trace xDebug reports on the base class an object's method is defined in, and not on the type of the object instance. Derick's comments on this Stack Overflow thread indicate this is not normal behavior http://stackoverflow.com/questions/9727414/xdebug-report-on-objects-during-function-trace#comment12422053_9727414 [^] | ||||||||||
| Steps To Reproduce | 1. Create the following PHP program xdebug_start_trace(); abstract class A { abstract function foo(); public function bar() { echo "A Test","\n"; } } class B extends A { public function foo() { } } $test = new B; $test->bar(); 2. Execute program by visiting it in a web browser 3. View Trace File Expected Output: TRACE START [2012-03-18 22:32:29] 0.0023 642888 -> B->bar() /path/to/xdebug.php:21 0.0027 8512 TRACE END [2012-03-18 22:32:29] Actual Output TRACE START [2012-03-18 22:32:29] 0.0023 642888 -> A->bar() /path/to/xdebug.php:21 0.0027 8512 TRACE END [2012-03-18 22:32:29] The output discrepancy is B->bar() vs. A->bar(). The object was instantiated with a class "B", but xDebug reports the base class, A->Bar(); | ||||||||||
| Additional Information | Issue happen on OS X 10.6.8, phpinfo reports the xDebug version as 2.2.0rc1, happens with Stock OS X PHP with an xDebug installed via pecl. Full phpinfo() output printed and attached as PDF. | ||||||||||
| Tags | No tags attached. | ||||||||||
| Operating System | OS X 10.6.8 | ||||||||||
| PHP Version | 5.3.6 | ||||||||||
| Attached Files | |||||||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-03-18 22:42 | astorm | New Issue | |
| 2012-03-18 22:42 | astorm | File Added: phpinfo.pdf | |
| 2012-03-21 10:22 | derick | Target Version | => 2.2.1 |
| 2012-07-14 23:14 | derick | Target Version | 2.2.1 => 2.2.2 |
| 2013-03-23 14:50 | derick | Target Version | 2.2.2 => 2.2.3 |
| Copyright © 2000 - 2011 MantisBT Group |