mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
5c214fc10d
This also got fixed by switching to object apply count.
20 lines
223 B
PHP
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*
|
|
}
|