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/indirect_call_array_003.phpt |
--TEST-- Indirect method call by array - Calling __call() and __callStatic() --FILE-- <?php class foo { public function __call($a, $b) { printf("From %s:\n", __METHOD__); var_dump($a); var_dump($this); } static public function __callStatic($a, $b) { printf("From %s:\n", __METHOD__); var_dump($a); var_dump($this); } } $arr = array('foo', 'abc'); $arr(); $foo = new foo; $arr = array($foo, 'abc'); $arr(); ?> --EXPECTF-- From foo::__callStatic: string(3) "abc" Notice: Undefined variable: this in %s on line %d NULL From foo::__call: string(3) "abc" object(foo)#%d (0) { }
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare