mirror of
https://github.com/php/php-src.git
synced 2025-01-10 21:14:37 +08:00
fix test
This commit is contained in:
parent
737e1bdd92
commit
381269b354
@ -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===
|
||||
|
Loading…
Reference in New Issue
Block a user