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/Zend/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/Zend/tests/bug50810.phpt |
--TEST-- Bug #50810 (property_exists does not work for private) --FILE-- <?php class ExampleSuperClass { private $foo; static protected $bar; private function foo() { } public function propertyFooExists() { return property_exists($this, 'foo'); } } class ExampleSubClass extends ExampleSuperClass { public function methodExists() { return method_exists($this, 'foo'); } public function propertyBarExists() { return property_exists($this, 'bar'); } } $example = new ExampleSubClass(); var_dump($example->methodExists()); var_dump(method_exists($example, 'propertyFooExists')); var_dump($example->propertyFooExists()); var_dump($example->propertyBarExists()); ?> --EXPECT-- bool(true) bool(true) bool(true) bool(true)
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare