This commit is contained in:
Antony Dovgal 2006-06-20 13:07:44 +00:00
parent 737e1bdd92
commit 381269b354

View File

@ -2,6 +2,11 @@
Bug #37565 Using reflection::export with simplexml causing a crash
--FILE--
<?php
function my_error_handler($errno, $errstr, $errfile, $errline) {
echo "Error: $errstr\n";
}
set_error_handler('my_error_handler');
class Setting extends ReflectionObject
{
@ -14,12 +19,10 @@ Reflection::export(simplexml_load_file('data:,<test/>', '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
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: Reflection::export() expects parameter 1 to be 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
Error: Reflection::export() expects parameter 1 to be Reflector, null given
===DONE===