From b1154bd4f77cb40a6f896470d0dae9a6759df0d8 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 23 May 2006 21:56:36 +0000 Subject: [PATCH] - Add new test --- ext/simplexml/tests/bug37565.phpt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 ext/simplexml/tests/bug37565.phpt 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=== -- 2.40.0