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/closures_003_v1.phpt |
--TEST-- Reflection on closures: Segfaults with getParameters() and getDeclaringFunction() --FILE-- <?php $closure = function($a, $b = 0) { }; $method = new ReflectionFunction ($closure); $params = $method->getParameters (); unset ($method); $method = $params[0]->getDeclaringFunction (); unset ($params); echo $method->getName ()."\n"; $parameter = new ReflectionParameter ($closure, 'b'); $method = $parameter->getDeclaringFunction (); unset ($parameter); echo $method->getName ()."\n"; ?> ===DONE=== --EXPECTF-- {closure} {closure} ===DONE===
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare