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 : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/reflection/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/reflection/tests/bug75231.phpt |
--TEST-- Bug #75231: ReflectionProperty#getValue() incorrectly works with inherited classes --FILE-- <?php class A { public $prop; public function __construct() { $this->prop = 'prop'; } public function method() { return 'method'; } } class B extends A { } print_r((new ReflectionMethod(B::class, 'method'))->invoke(new A()).PHP_EOL); print_r((new ReflectionProperty(B::class, 'prop'))->getValue(new A()).PHP_EOL); ?> --EXPECT-- method prop
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare