cvs: php-src /ext/simplexml/tests bug37565.phpt
| From: | Antony Dovgal | Date: | Tue, 20 Jun 2006 13:07:44 +0000 |
| Subject: | cvs: php-src /ext/simplexml/tests bug37565.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-38810@lists.php.net to get a copy of this message | ||
tony2001 Tue Jun 20 13:07:44 2006 UTC
Modified files:
/php-src/ext/simplexml/tests bug37565.phpt
Log:
fix test
http://cvs.php.net/viewvc.cgi/php-src/ext/simplexml/tests/bug37565.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/simplexml/tests/bug37565.phpt
diff -u php-src/ext/simplexml/tests/bug37565.phpt:1.1 php-src/ext/simplexml/tests/bug37565.phpt:1.2
--- php-src/ext/simplexml/tests/bug37565.phpt:1.1 Tue May 23 21:56:36 2006
+++ php-src/ext/simplexml/tests/bug37565.phpt Tue Jun 20 13:07:44 2006
@@ -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 @@
?>
===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===