mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
20 lines
223 B
Plaintext
20 lines
223 B
Plaintext
|
--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*
|
||
|
}
|