View Issue Details

IDProjectCategoryView StatusLast Update
0001140XdebugUncategorizedpublic2015-06-14 20:46
Reporterderick Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.3.2 
Target Version2.3.3Fixed in Version2.3.3 
Summary0001140: Tracing with __debugInfo() crashes Xdebug due to a stack overflow
Description

Xdebug uses debugInfo to obtain information, but as that sometimes triggers another call to debugInfo (because it uses a function with $this), we get a nice stack overflow.

Steps To Reproduce

php -dxdebug.auto_trace=1 -dxdebug.collect_params=3 -r 'class Foo { function __debugInfo() { get_object_vars($this); return []; } }; $a = new Foo; var_dump($a );'

TagsNo tags attached.
Operating System
PHP Version5.6-dev

Activities

derick

2015-06-14 20:46

administrator   ~0003119

Fixed for 2.3.3 and 3.0dev