Index: trunk/phase3/includes/media/SVGMetadataExtractor.php |
— | — | @@ -49,6 +49,9 @@ |
50 | 50 | function __construct( $source ) { |
51 | 51 | $this->reader = new XMLReader(); |
52 | 52 | $this->reader->open( $source, null, LIBXML_NOERROR | LIBXML_NOWARNING ); |
| 53 | + #$this->reader->setParserProperty( XMLReader::DEFAULTATTRS, FALSE ); |
| 54 | + #$this->reader->setParserProperty( XMLReader::DEFAULTATTRS, FALSE ); |
| 55 | + #$this->reader->setParserProperty( XMLReader::VALIDATE , FALSE ); |
53 | 56 | |
54 | 57 | $this->metadata['width'] = self::DEFAULT_WIDTH; |
55 | 58 | $this->metadata['height'] = self::DEFAULT_HEIGHT; |
— | — | @@ -113,6 +116,8 @@ |
114 | 117 | } |
115 | 118 | } |
116 | 119 | |
| 120 | + $this->reader->close(); |
| 121 | + |
117 | 122 | return true; |
118 | 123 | } |
119 | 124 | |