summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/bug37565.phpt
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-06-20 13:06:50 +0000
committerAntony Dovgal <tony2001@php.net>2006-06-20 13:06:50 +0000
commit8df36aaf3220a06f821434da1e893c035213d7a8 (patch)
treec710720c5ef9f11f3648ef6db11b5df6748e0f06 /ext/simplexml/tests/bug37565.phpt
parent20a379fa7dffdf53745dc12e16d298a0d06b38f1 (diff)
downloadphp-git-8df36aaf3220a06f821434da1e893c035213d7a8.tar.gz
fix test
Diffstat (limited to 'ext/simplexml/tests/bug37565.phpt')
-rwxr-xr-xext/simplexml/tests/bug37565.phpt20
1 files changed, 12 insertions, 8 deletions
diff --git a/ext/simplexml/tests/bug37565.phpt b/ext/simplexml/tests/bug37565.phpt
index 95f9795c67..85b50eb972 100755
--- a/ext/simplexml/tests/bug37565.phpt
+++ b/ext/simplexml/tests/bug37565.phpt
@@ -3,6 +3,12 @@ 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 +20,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===