34 return substr( $data, 0, 11 ) ===
'rawdeflate,';
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 ) {
64 Wikimedia\suppressWarnings();
65 $inflated = gzinflate( $deflated );
66 Wikimedia\restoreWarnings();
67 if ( $inflated ===
false ) {