mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
fix test
This commit is contained in:
parent
737e1bdd92
commit
381269b354
1 changed files with 11 additions and 8 deletions
|
@ -2,6 +2,11 @@
|
||||||
Bug #37565 Using reflection::export with simplexml causing a crash
|
Bug #37565 Using reflection::export with simplexml causing a crash
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
function my_error_handler($errno, $errstr, $errfile, $errline) {
|
||||||
|
echo "Error: $errstr\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
set_error_handler('my_error_handler');
|
||||||
|
|
||||||
class Setting extends ReflectionObject
|
class Setting extends ReflectionObject
|
||||||
{
|
{
|
||||||
|
@ -14,12 +19,10 @@ Reflection::export(simplexml_load_file('data:,<test/>', 'Setting'));
|
||||||
?>
|
?>
|
||||||
===DONE===
|
===DONE===
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
|
Error: simplexml_load_string() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given
|
||||||
Warning: simplexml_load_string() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given in %sbug37565.php on line %d
|
Error: Argument 1 passed to Reflection::export() must implement interface Reflector, null given
|
||||||
|
Error: Reflection::export() expects parameter 1 to be Reflector, null given
|
||||||
Warning: Reflection::export() expects parameter 1 to be Reflector, null given in %sbug37565.php on line %d
|
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
|
||||||
Warning: simplexml_load_file() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given in %sbug37565.php on line %d
|
Error: Reflection::export() expects parameter 1 to be Reflector, null given
|
||||||
|
|
||||||
Warning: Reflection::export() expects parameter 1 to be Reflector, null given in %sbug37565.php on line %d
|
|
||||||
===DONE===
|
===DONE===
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue