WP_Http_Encoding::decompress

SummerySummery

Decompression of deflated string.

Syntax

WP_Http_Encoding::decompress( string $compressed, int $length = null )

DescriptionDescription

Will attempt to decompress using the RFC 1950 standard, and if that fails then the RFC 1951 standard deflate will be attempted. Finally, the RFC 1952 standard gzip decode will be attempted. If all fail, then the original compressed string will be returned.

ParametersParameters

$compressed

(string) (Required) String to decompress.

$length

(int) (Optional) The optional length of the compressed data.

Default value: null

ReturnReturn

(string|bool) False on failure.

SourceSource

File: wp-includes/class-wp-http-encoding.php


			

ChangelogChangelog

Changelog
Version Description
2.8.0 Introduced.
Scroll to Top