/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
reflection
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/reflection/tests/bug62384.phpt
--TEST-- Bug #62384 (Attempting to invoke a Closure more than once causes segfaul) --FILE-- <?php $closure1 = function($val){ return $val; }; $closure2 = function($val){ return $val; }; $reflection_class = new ReflectionClass($closure1); $reflection_method = $reflection_class->getMethod('__invoke'); $arguments1 = array('hello'); $arguments2 = array('world'); var_dump($reflection_method->invokeArgs($closure1, $arguments1)); var_dump($reflection_method->invokeArgs($closure2, $arguments2)); ?> --EXPECT-- string(5) "hello" string(5) "world"
Copyright ©2k19 -
Hexid
|
Tex7ure