php-src/Zend/tests/recursive_debug_info.phpt
Nikita Popov 5c214fc10d Add test for recursive __debugInfo()
This also got fixed by switching to object apply count.
2015-04-15 22:38:50 +02:00

20 lines
223 B
PHP

--TEST--
Test recursive __debugInfo() method
--FILE--
<?php
class Test {
public function __debugInfo() {
return [$this];
}
}
var_dump(new Test);
?>
--EXPECT--
object(Test)#1 (1) {
[0]=>
*RECURSION*
}