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/bug37816.phpt |
--TEST-- Bug #37816 (ReflectionProperty does not throw exception when accessing protected attribute) --FILE-- <?php class TestClass { protected $p = 2; } $o = new TestClass; $r = new ReflectionProperty($o, 'p'); try { $x = $r->getValue($o); } catch (Exception $e) { echo 'Caught: ' . $e->getMessage() . "\n"; } ?> ===DONE=== --EXPECTF-- Caught: Cannot access non-public member TestClass::p ===DONE===
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare