Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/reflection/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/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"
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare