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===

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to