Changeset 843

Show
Ignore:
Timestamp:
08/15/07 18:15:43 (1 year ago)
Author:
mikey
Message:

fix: libxml_clear_errors() was not called in case of an exception

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/xml/stubXMLXIncludeStreamWrapper.php

    r842 r843  
    180180        $domDocument           = DOMDocument::load($this->fileName); 
    181181        if (false === $domDocument) { 
    182             $this->handleErrors(libxml_get_errors(), $previousErrorHandling); 
     182            $errors = libxml_get_errors(); 
    183183            libxml_clear_errors(); 
     184            $this->handleErrors($errors, $previousErrorHandling); 
    184185        } 
    185186