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/standard/tests/class_object/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/standard/tests/class_object/forward_static_call_003.phpt |
--TEST-- forward_static_call() calling outside of the inheritance chain. --FILE-- <?php class A { const NAME = 'A'; public static function test() { echo static::NAME, "\n"; } } class B extends A { const NAME = 'B'; public static function test() { echo self::NAME, "\n"; forward_static_call(array('parent', 'test')); } } class C { const NAME = 'C'; public static function test() { echo self::NAME, "\n"; forward_static_call(array('B', 'test')); } } A::test(); echo "-\n"; B::test(); echo "-\n"; C::test(); ?> ===DONE=== --EXPECTF-- A - B B - C B B ===DONE===
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare