Changeset 871

Show
Ignore:
Timestamp:
08/22/07 17:26:04 (1 year ago)
Author:
mikey
Message:

bugfix: pass DomDocument? to error handling method

Files:

Legend:

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

    r843 r871  
    182182            $errors = libxml_get_errors(); 
    183183            libxml_clear_errors(); 
    184             $this->handleErrors($errors, $previousErrorHandling); 
     184            $this->handleErrors($domDocument, $errors, $previousErrorHandling); 
    185185        } 
    186186         
     
    194194            unlink($this->cachedFileName); 
    195195            libxml_clear_errors(); 
    196             $this->handleErrors($errors, $previousErrorHandling); 
     196            $this->handleErrors($domDocument, $errors, $previousErrorHandling); 
    197197        } 
    198198 
     
    201201            throw new stubException("Can not write cache file to {$this->cachedFileName}."); 
    202202        } 
     203         
    203204        $resultDoc->save($this->cachedFileName); 
    204205    } 
     
    210211     * @throws  stubXMLException 
    211212     */ 
    212     protected function handleErrors(array $errors, $previousErrorHandling) 
     213    protected function handleErrors(DOMDocument $resultDoc, array $errors, $previousErrorHandling) 
    213214    { 
    214215        foreach ($errors as $error) {