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/simplexml/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/simplexml/tests/bug37565.phpt |
--TEST-- Bug #37565 (Using reflection::export with simplexml causing a crash) --SKIPIF-- <?php if (!extension_loaded("simplexml") || !extension_loaded('reflection')) print "skip"; ?> --FILE-- <?php function my_error_handler($errno, $errstr, $errfile, $errline) { echo "Error: $errstr\n"; } set_error_handler('my_error_handler'); class Setting extends ReflectionObject { } try { Reflection::export(simplexml_load_string('<test/>', 'Setting')); } catch (Error $e) { my_error_handler($e->getCode(), $e->getMessage(), $e->getFile(), $e->getLine()); } try { Reflection::export(simplexml_load_file('data:,<test/>', 'Setting')); } catch (Error $e) { my_error_handler($e->getCode(), $e->getMessage(), $e->getFile(), $e->getLine()); } ?> ===DONE=== --EXPECTF-- Error: simplexml_load_string() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given Error: Argument 1 passed to Reflection::export() must implement interface Reflector, null given Error: simplexml_load_file() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given Error: Argument 1 passed to Reflection::export() must implement interface Reflector, null given ===DONE===
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare