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_string_002.phpt |
--TEST-- Indirect call with empty class and/or method name. --FILE-- <?php class TestClass { public static function __callStatic($method, array $args) { var_dump($method); } } // Test call using array syntax $callback = ['TestClass', '']; $callback(); // Test call using Class::method syntax. $callback = 'TestClass::'; $callback(); // Test array syntax with empty class name $callback = ['', 'method']; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test Class::method syntax with empty class name $callback = '::method'; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test array syntax with empty class and method name $callback = ['', '']; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test Class::method syntax with empty class and method name $callback = '::'; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test string ending in single colon $callback = 'Class:'; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test string beginning in single colon $callback = ':method'; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test single colon $callback = ':'; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } ?> --EXPECT-- string(0) "" string(0) "" Class '' not found Class '' not found Class '' not found Class '' not found Call to undefined function Class:() Call to undefined function :method() Call to undefined function :()
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare