inflate_get_status()
inflate_get_status() — Get decompression status.
Built-in function of PHP 8.5. The manual lists it as available in PHP 7 >= 7.2.0, PHP 8. This page is the reference card: signature, parameters and return value, plus the changelog and the example the manual provides.
What it does
Usually returns either ZLIB_OK or ZLIB_STREAM_END.
Signature
inflate_get_status(InflateContext $context): int
Parameters
| Parameter | Type | What it takes |
|---|---|---|
| $context | InflateContext |
Return value
Returns decompression status.
Example
The PHP manual ships no example for inflate_get_status(); the signature and the parameter table above are the contract.
Changelog
| Version | Change |
|---|---|
| 8.0.0 | context expects an InflateContext instance now; previously, a resource was expected. |
All PHP 8.5 built-in functions
Reference card built from the PHP manual page inflate_get_status() (PHP documentation, CC BY 3.0). The page is generated from the manual, so the wording of the parameter and return value text follows php.net.