summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/tests/recursive_debug_info.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/recursive_debug_info.phpt b/Zend/tests/recursive_debug_info.phpt
new file mode 100644
index 0000000000..6667650d0a
--- /dev/null
+++ b/Zend/tests/recursive_debug_info.phpt
@@ -0,0 +1,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*
+}