@@ 207-212 (lines=6) @@ | ||
204 | $items[5] = gzuncompress( $items[5] ); |
|
205 | MediaWiki\restoreWarnings(); |
|
206 | ||
207 | if ( $items[5] === false ) { |
|
208 | // decompression failed |
|
209 | wfDebug( __METHOD__ . ' Error decompressing iTxt chunk - ' . $items[1] . "\n" ); |
|
210 | fseek( $fh, self::$crcSize, SEEK_CUR ); |
|
211 | continue; |
|
212 | } |
|
213 | } else { |
|
214 | wfDebug( __METHOD__ . ' Skipping compressed png iTXt chunk due to lack of zlib,' |
|
215 | . " or potentially invalid compression method\n" ); |
|
@@ 291-296 (lines=6) @@ | ||
288 | $content = gzuncompress( $content ); |
|
289 | MediaWiki\restoreWarnings(); |
|
290 | ||
291 | if ( $content === false ) { |
|
292 | // decompression failed |
|
293 | wfDebug( __METHOD__ . ' Error decompressing zTXt chunk - ' . $keyword . "\n" ); |
|
294 | fseek( $fh, self::$crcSize, SEEK_CUR ); |
|
295 | continue; |
|
296 | } |
|
297 | ||
298 | MediaWiki\suppressWarnings(); |
|
299 | $content = iconv( 'ISO-8859-1', 'UTF-8', $content ); |