--TEST-- XML Parser: error class (PHP5 behavior) --SKIPIF-- --FILE-- parseString("\n", true); if (PEAR::isError($e)) { printf("Error message: %s" . PHP_EOL, $e->getMessage()); } else { print "No error" . PHP_EOL; } ?> --EXPECT-- New XML_Parser: string(10) "xml_parser" Error message: XML_Parser: Mismatched tag at XML input line 2:12