diff --git a/library/Zend/Config/Xml.php b/library/Zend/Config/Xml.php index 4425a8b705..2c316c382b 100644 --- a/library/Zend/Config/Xml.php +++ b/library/Zend/Config/Xml.php @@ -106,12 +106,14 @@ public function __construct($xml, $section = null, $options = false) } else { try { if (!$config = Zend_Xml_Security::scanFile($xml)) { + restore_error_handler(); require_once 'Zend/Config/Exception.php'; throw new Zend_Config_Exception( "Error failed to load $xml file" ); } } catch (Zend_Xml_Exception $e) { + restore_error_handler(); require_once 'Zend/Config/Exception.php'; throw new Zend_Config_Exception( $e->getMessage()