Mantis - Quercus
Viewing Issue Advanced Details
4369 minor always 02-01-11 07:58 07-18-12 03:09
geleont  
nam  
normal  
closed 4.0.14  
fixed  
none    
none  
0004369: DOMDocument::load($xmlfile) trows com.caucho.xml.XmlParseException
DOMDocument::load($xmlfile) trows com.caucho.xml.XmlParseException if it can not loat xml file and should return false as php function makes. It should never throw exception see documentation http://php.net/manual/en/domdocument.loadxml.php [^]

Notes
(0005098)
jamesdlow   
03-01-11 19:54   
This maybe related to my issue here:
http://bugs.caucho.com/view.php?id=4416 [^]

LIBXML_NOWARNING / LIBXML_NOERROR can control error handling in libxml, e.g. something like:
$dom->loadXML($xml,LIBXML_NOWARNING | LIBXML_NOERROR);

But are not implemented in Quercus.
(0005107)
jamesdlow   
03-02-11 18:10   
And it tis the additional functions:
libxml_use_internal_errors()
libxml_get_last_error()
libxml_clear_errors()

That should allow you to get errors back.
(0005959)
nam   
07-18-12 03:09   
php/1z24

Fixed for 4.0.30.