mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
20 lines
238 B
PHP
20 lines
238 B
PHP
--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===
|