[ create a new paste ] login | about

Link: http://codepad.org/njb3juqT    [ 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
lalala


Create a new paste based on this one


Comments: