summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_034.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/closure_034.phpt')
-rw-r--r--Zend/tests/closure_034.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/closure_034.phpt b/Zend/tests/closure_034.phpt
new file mode 100644
index 0000000..8ba276a
--- /dev/null
+++ b/Zend/tests/closure_034.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Closure 033: Recursive var_dump on closures
+--FILE--
+<?php
+
+$a = function () use(&$a) {};
+var_dump($a);
+
+?>
+===DONE===
+--EXPECTF--
+object(Closure)#%d (1) {
+ ["static"]=>
+ array(1) {
+ ["a"]=>
+ *RECURSION*
+ }
+}
+===DONE===