cvs: php-src /ext/simplexml/tests bug37565.phpt

From: Date: Tue, 23 May 2006 21:56:36 +0000
Subject: cvs: php-src /ext/simplexml/tests bug37565.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-38370@lists.php.net to get a copy of this message
helly Tue May 23 21:56:36 2006 UTC Added files: /php-src/ext/simplexml/tests bug37565.phpt Log: - Add new test http://cvs.php.net/viewcvs.cgi/php-src/ext/simplexml/tests/bug37565.phpt?view=markup&rev=1.1 Index: php-src/ext/simplexml/tests/bug37565.phpt +++ php-src/ext/simplexml/tests/bug37565.phpt --TEST-- Bug #37565 Using reflection::export with simplexml causing a crash --FILE-- <?php class Setting extends ReflectionObject { } Reflection::export(simplexml_load_string('<test/>', 'Setting')); 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 ===DONE===

« previous php.cvs (#38370) next »