]> granicus.if.org Git - php/commit
Use object apply count in var_dump / print_r
authorNikita Popov <nikic@php.net>
Wed, 15 Apr 2015 19:07:34 +0000 (21:07 +0200)
committerNikita Popov <nikic@php.net>
Wed, 15 Apr 2015 20:00:12 +0000 (22:00 +0200)
commitdc764bf644bba1b574c0970df4386d3fcc243914
tree39911c612b15961ee201d2dc477f80abea6e531b
parent3dcad2eea2f24164f2a313792bbfda5e093b4807
Use object apply count in var_dump / print_r

Instead of using the array apply count on the debug_info array, use
the object apply count for recursion detection when dumping. This
handles recursion in a more generic way and does not require each
debug_info handler to deal with this.

This allows returning a temporary debug_info array, instead of
having to store it in the object (thus delaying destruction of the
values).

Switch SPL debug_info handlers to use a temporary array.
Zend/zend.c
ext/spl/spl_array.c
ext/spl/spl_dllist.c
ext/spl/spl_heap.c
ext/spl/spl_observer.c
ext/standard/var.c