ru_php/Zend/tests/closures/closure_034.phpt

24 lines
314 B
PHP

--TEST--
Closure 033: Recursive var_dump on closures
--FILE--
<?php
$a = function () use(&$a) {};
var_dump($a);
?>
--EXPECTF--
object(Closure)#%d (4) {
["name"]=>
string(%d) "{closure:%s:%d}"
["file"]=>
string(%d) "%s"
["line"]=>
int(%d)
["static"]=>
array(1) {
["a"]=>
*RECURSION*
}
}