Changeset 871
- Timestamp:
- 08/22/07 17:26:04 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/xml/stubXMLXIncludeStreamWrapper.php
r843 r871 182 182 $errors = libxml_get_errors(); 183 183 libxml_clear_errors(); 184 $this->handleErrors($ errors, $previousErrorHandling);184 $this->handleErrors($domDocument, $errors, $previousErrorHandling); 185 185 } 186 186 … … 194 194 unlink($this->cachedFileName); 195 195 libxml_clear_errors(); 196 $this->handleErrors($ errors, $previousErrorHandling);196 $this->handleErrors($domDocument, $errors, $previousErrorHandling); 197 197 } 198 198 … … 201 201 throw new stubException("Can not write cache file to {$this->cachedFileName}."); 202 202 } 203 203 204 $resultDoc->save($this->cachedFileName); 204 205 } … … 210 211 * @throws stubXMLException 211 212 */ 212 protected function handleErrors( array $errors, $previousErrorHandling)213 protected function handleErrors(DOMDocument $resultDoc, array $errors, $previousErrorHandling) 213 214 { 214 215 foreach ($errors as $error) {
