inflate_get_read_len

(PHP 7 >= 7.2.0, PHP 8)

inflate_get_read_len — Get number of bytes read so far

Description

function inflate_get_read_len(InflateContext $context): int

Returns the number of compressed bytes read so far from the current stream. The count is reset to 0 by the first call to inflate_add() after the previous stream has ended.

Parameters

context

A context created with inflate_init().

Return Values

Returns the number of bytes read so far from the current stream.

Changelog

Version Description
8.0.0 context expects an InflateContext instance now; previously, a resource was expected.