@@ 213-218 (lines=6) @@ | ||
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" ); |
|
216 | fseek( $fh, self::$crcSize, SEEK_CUR ); |
|
217 | continue; |
|
218 | } |
|
219 | } |
|
220 | $finalKeyword = self::$textChunks[$items[1]]; |
|
221 | $text[$finalKeyword][$items[3]] = $items[5]; |
|
@@ 281-285 (lines=5) @@ | ||
278 | } |
|
279 | $compression = substr( $postKeyword, 0, 1 ); |
|
280 | $content = substr( $postKeyword, 1 ); |
|
281 | if ( $compression !== "\x00" ) { |
|
282 | wfDebug( __METHOD__ . " Unrecognized compression method in zTXt ($keyword). Skipping.\n" ); |
|
283 | fseek( $fh, self::$crcSize, SEEK_CUR ); |
|
284 | continue; |
|
285 | } |
|
286 | ||
287 | MediaWiki\suppressWarnings(); |
|
288 | $content = gzuncompress( $content ); |