From: Marcus Boerger Date: Tue, 23 May 2006 21:56:36 +0000 (+0000) Subject: - Add new test X-Git-Tag: BEFORE_NEW_OUTPUT_API~114 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1154bd4f77cb40a6f896470d0dae9a6759df0d8;p=php - Add new test --- diff --git a/ext/simplexml/tests/bug37565.phpt b/ext/simplexml/tests/bug37565.phpt new file mode 100755 index 0000000000..95f9795c67 --- /dev/null +++ b/ext/simplexml/tests/bug37565.phpt @@ -0,0 +1,25 @@ +--TEST-- +Bug #37565 Using reflection::export with simplexml causing a crash +--FILE-- +', 'Setting')); + +Reflection::export(simplexml_load_file('data:,', 'Setting')); + +?> +===DONE=== +--EXPECTF-- + +Warning: simplexml_load_string() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given in %sbug37565.php on line %d + +Warning: Reflection::export() expects parameter 1 to be Reflector, null given in %sbug37565.php on line %d + +Warning: simplexml_load_file() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given in %sbug37565.php on line %d + +Warning: Reflection::export() expects parameter 1 to be Reflector, null given in %sbug37565.php on line %d +===DONE===