[ create a new paste ] login | about

Link: http://codepad.org/KIbscPGh    [ raw code | output | fork ]

PHP, pasted on Nov 8:
1
2
3
4
5
<?php
$xml=new SimpleXMLElement('');
var_dump($xml);
echo $xml ? "true": "false";
?>


Output:
1
2
3
4
5
6

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /t.php:2
Stack trace:
#0 /t.php(2): SimpleXMLElement->__construct('')
#1 {main}
  thrown in /t.php on line 2


Create a new paste based on this one


Comments: