[ create a new paste ] login | about

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

PHP, pasted on Jul 4:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

/*function error_handler($errno, $errstr, $errfile, $errline ) {
    throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}
set_error_handler("error_handler");*/

$doc = new DOMDocument();
try {  
  $doc->loadXML('<root><sajats xml></root>');
} catch (Exception $e){
  echo "lalala";
}


Output:
1
2
3
4
5
6

Warning: DOMDocument::loadXML(): Specification mandate value for attribute xml in Entity, line: 1 on line 10

Warning: DOMDocument::loadXML(): Opening and ending tag mismatch: sajats line 1 and root in Entity, line: 1 on line 10

Warning: DOMDocument::loadXML(): Premature end of data in tag root line 1 in Entity, line: 1 on line 10


Create a new paste based on this one


Comments: