// if compressed
if ( $items[2] == "\x01" ) {
if ( function_exists( 'gzuncompress' ) && $items[4] === "\x00" ) {
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$items[5] = gzuncompress( $items[5] );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
if ( $items[5] === false ) {
// decompression failed
fseek( $fh, self::$crcSize, SEEK_CUR );
continue;
}
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$content = iconv( 'ISO-8859-1', 'UTF-8', $content );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
if ( $content === false ) {
throw new Exception( __METHOD__ . ": Read error (error with iconv)" );
continue;
}
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$content = gzuncompress( $content );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
if ( $content === false ) {
// decompression failed
continue;
}
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$content = iconv( 'ISO-8859-1', 'UTF-8', $content );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
if ( $content === false ) {
throw new Exception( __METHOD__ . ": Read error (error with iconv)" );
'text' => $text,
'bitDepth' => $bitDepth,
'colorType' => $colorType,
- 'width' => $width,
- 'height' => $height,
];
}