]> granicus.if.org Git - php/commit
Fix #69264: __debugInfo() ignored while extending SPL classes
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 6 Apr 2020 09:02:15 +0000 (11:02 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 6 Apr 2020 10:01:29 +0000 (12:01 +0200)
commit22a077b642815a2e1c36ba03df906146c9ecbe50
tree9bffd8c4bffc178f89fcff605bfc13a371ac0ab8
parentc31b2bbd46b4f01880cba505734cd0708385158b
Fix #69264: __debugInfo() ignored while extending SPL classes

We actually implement `::__debugInfo()` and drop the `get_debug_info()`
handlers of all relevant SPL classes.  This is cleaner and gives more
flexibility regarding overriding the functionality in descendant
classes.
NEWS
ext/spl/spl_array.c
ext/spl/spl_directory.c
ext/spl/spl_dllist.c
ext/spl/spl_heap.c
ext/spl/spl_observer.c
ext/spl/tests/bug69264.phpt [new file with mode: 0644]