summaryrefslogtreecommitdiff
path: root/Zend/tests/recursive_debug_info.phpt
blob: 6667650d0a79bb9011e42cfbfe2d65d4d5a5f355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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*
}