-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/Zend/tests/
File Upload :
Current File : //usr/src/php/Zend/tests/closure_035.phpt

--TEST--
Testing recursion detection with Closures
--FILE--
<?php

$x = function () use (&$x) {
	$h = function () use ($x) {
		var_dump($x);
		return 1;
	};	
	return $h();
};

var_dump($x());

?>
--EXPECTF--
object(Closure)#%d (1) {
  ["static"]=>
  array(1) {
    ["x"]=>
    *RECURSION*
  }
}
int(1)

Copyright © 2017 || Recoded By Mr.Bumblebee