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/bug38132.phpt |
--TEST-- Reflection Bug #38132 (ReflectionClass::getStaticProperties() retains \0 in key names) --FILE-- <?php class foo { static protected $bar = 'baz'; static public $a = 'a'; } $class = new ReflectionClass('foo'); $properties = $class->getStaticProperties(); var_dump($properties, array_keys($properties)); var_dump(isset($properties['*bar'])); var_dump(isset($properties["\0*\0bar"])); var_dump(isset($properties["bar"])); ?> --EXPECT-- array(2) { ["bar"]=> string(3) "baz" ["a"]=> string(1) "a" } array(2) { [0]=> string(3) "bar" [1]=> string(1) "a" } bool(false) bool(false) bool(true)
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare