bzwrite

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Binary safe bzip2 file write int bzwrite ( resource $bz, string $data [, int $length ] ) bzwrite() writes a string into the given bzip2 file stream. Parameters: bz The file pointer. It must be valid and must point to a file successfully opened by bzopen(). data The written data. l

lzf_decompress

(PECL lzf >= 0.1.0) LZF decompression string lzf_decompress ( string $data ) lzf_compress() decompresses the given data string containing lzf encoded data. Parameters: data The compressed string. Returns: Returns the decompressed data or FALSE if an error occurred. See also:

bzerror

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Returns the bzip2 error number and error string in an array array bzerror ( resource $bz ) Returns the error number and error string of any bzip2 error returned by the given file pointer. Parameters: bz The file pointer. It must be valid and must point to a file successfully opened by bzopen(). Returns: Returns

bzread

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Binary safe bzip2 file read string bzread ( resource $bz [, int $length = 1024 ] ) bzread() reads from the given bzip2 file pointer. Reading stops when length (uncompressed) bytes have been read or EOF is reached, whichever comes first. Parameters: bz The file pointer. It must be valid and must point to a file successfully opened by bz

bzerrstr

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Returns a bzip2 error string string bzerrstr ( resource $bz ) Gets the error string of any bzip2 error returned by the given file pointer. Parameters: bz The file pointer. It must be valid and must point to a file successfully opened by bzopen(). Returns: Returns a string containing the error message.

bzcompress

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Compress a string into bzip2 encoded data mixed bzcompress ( string $source [, int $blocksize = 4 [, int $workfactor = 0 ]] ) bzcompress() compresses the given string and returns it as bzip2 encoded data. Parameters: source The string to compress. blocksize Specifies the blocksize used during compress

bzerrno

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Returns a bzip2 error number int bzerrno ( resource $bz ) Returns the error number of any bzip2 error returned by the given file pointer. Parameters: bz The file pointer. It must be valid and must point to a file successfully opened by bzopen(). Returns: Returns the error number as an integer.

bzflush

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Force a write of all buffered data bool bzflush ( resource $bz ) Forces a write of all buffered bzip2 data for the file pointer bz. Parameters: bz The file pointer. It must be valid and must point to a file successfully opened by bzopen(). Returns: Returns TRUE on success or FALSE on failure.

bzopen

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Opens a bzip2 compressed file resource bzopen ( mixed $file, string $mode ) bzopen() opens a bzip2 (.bz2) file for reading or writing. Parameters: file The name of the file to open, or an existing stream resource. mode The modes 'r' (read), and 'w' (write) are supported. Everything else will cause bzope

bzdecompress

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Decompresses bzip2 encoded data mixed bzdecompress ( string $source [, int $small = 0 ] ) bzdecompress() decompresses the given string containing bzip2 encoded data. Parameters: source The string to decompress. small If TRUE, an alternative decompression algorithm will be used which uses less memory (t