summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/bug37565.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/simplexml/tests/bug37565.phpt')
-rwxr-xr-xext/simplexml/tests/bug37565.phpt31
1 files changed, 0 insertions, 31 deletions
diff --git a/ext/simplexml/tests/bug37565.phpt b/ext/simplexml/tests/bug37565.phpt
deleted file mode 100755
index e04f9577f1..0000000000
--- a/ext/simplexml/tests/bug37565.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-Bug #37565 Using reflection::export with simplexml causing a crash
---SKIPIF--
-<?php if (!extension_loaded("simplexml")) print "skip"; ?>
---FILE--
-<?php
-
-function my_error_handler($errno, $errstr, $errfile, $errline) {
- echo "Error: $errstr\n";
-}
-
-set_error_handler('my_error_handler');
-
-class Setting extends ReflectionObject
-{
-}
-
-Reflection::export(simplexml_load_string('<test/>', 'Setting'));
-
-Reflection::export(simplexml_load_file('data:,<test/>', 'Setting'));
-
-?>
-===DONE===
---EXPECTF--
-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===