57 if ( !self::isDeflated( $data ) ) {
58 throw new InvalidArgumentException(
'Data does not begin with deflated prefix' );
60 $deflated = base64_decode( substr( $data, 11 ),
true );
61 if ( $deflated ===
false ) {
62 return StatusValue::newFatal(
'easydeflate-invaliddeflate' );
64 Wikimedia\suppressWarnings();
65 $inflated = gzinflate( $deflated );
66 Wikimedia\restoreWarnings();
67 if ( $inflated ===
false ) {
68 return StatusValue::newFatal(
'easydeflate-invaliddeflate' );
70 return StatusValue::newGood( $inflated );