/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/bug54358.phpt
--TEST-- Bug #54358 (Closure, use and reference) --FILE-- <?php class asserter { public function call($function) { } } $asserter = new asserter(); $closure = function() use ($asserter, &$function) { $asserter->call($function = 'md5'); }; $closure(); var_dump($function); $closure = function() use ($asserter, $function) { $asserter->call($function); }; $closure(); var_dump($function); $closure = function() use ($asserter, $function) { $asserter->call($function); }; $closure(); var_dump($function); ?> --EXPECT-- string(3) "md5" string(3) "md5" string(3) "md5"
Copyright ©2k19 -
Hexid
|
Tex7ure