--TEST-- XML Parser: error class (PHP4 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:7