58 if ( !self::isDeflated( $data ) ) {
59 throw new InvalidArgumentException(
'Data does not begin with deflated prefix' );
61 $deflated = base64_decode( substr( $data, 11 ),
true );
62 if ( $deflated ===
false ) {
63 return StatusValue::newFatal(
'deflate-invaliddeflate' );
65 AtEase::suppressWarnings();
66 $inflated = gzinflate( $deflated );
67 AtEase::restoreWarnings();
68 if ( $inflated ===
false ) {
69 return StatusValue::newFatal(
'deflate-invaliddeflate' );
71 return StatusValue::newGood( $inflated );