mirror of
https://github.com/php/php-src.git
synced 2024-09-29 22:06:09 +00:00
30 lines
386 B
Plaintext
30 lines
386 B
Plaintext
|
--TEST--
|
||
|
Closure 033: Recursive var_dump on closures
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$a = function () use(&$a) {};
|
||
|
var_dump($a);
|
||
|
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECTF--
|
||
|
object(Closure)#1 (2) {
|
||
|
["this"]=>
|
||
|
NULL
|
||
|
["static"]=>
|
||
|
array(1) {
|
||
|
[u"a"]=>
|
||
|
&object(Closure)#1 (2) {
|
||
|
["this"]=>
|
||
|
NULL
|
||
|
["static"]=>
|
||
|
array(1) {
|
||
|
[u"a"]=>
|
||
|
*RECURSION*
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
===DONE===
|