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/bug71767.phpt |
--TEST-- Bug #71767 (ReflectionMethod::getDocComment returns the wrong comment) --FILE-- <?php /** Correct docblock */ function foo( /** wrong docblock */ $arg ) { } class Foo { /** Correct docblock */ public function bar( /** wrong docblock */ $arg ) { } } /** Correct docblock */ $func = function( /** wrong docblock */ $arg ) { }; $reflectionFunction = new ReflectionFunction('foo'); $reflectionClass = new ReflectionClass(Foo::class); $reflectionClosure = new ReflectionFunction($func); echo $reflectionFunction->getDocComment() . PHP_EOL; echo $reflectionClass->getMethod('bar')->getDocComment() . PHP_EOL; echo $reflectionClosure->getDocComment() . PHP_EOL; echo "Done\n"; ?> --EXPECTF-- /** Correct docblock */ /** Correct docblock */ /** Correct docblock */ Done
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare