HTTPINFLATESTREAM(3) 1 HTTPINFLATESTREAM(3)
The HttpInflateStream class
CLASS SYNOPSIS
HttpInflateStream
HttpInflateStream
o public HttpInflateStream::__construct ([int $flags])
o public HttpInflateStream HttpInflateStream::factory ([int $flags], [string $class_name = "HttpInflateStream"])
o public string HttpInflateStream::finish ([string $data])
o public string HttpInflateStream::flush ([string $data])
o public string HttpInflateStream::update (string $data)
CLASS MEMBERS
CONSTANTS
+-----+-----------------+---+
|Type | | |
| | | |
| | Name | |
| | | |
| | Description | |
| | | |
+-----+-----------------+---+
|int | | |
| | | |
| | FLUSH_NONE | |
| | | |
| | no forced flush | |
| | | |
|int | | |
| | | |
| | FLUSH_SYNC | |
| | | |
| | synching flush | |
| | | |
|int | | |
| | | |
| | FLUSH_FULL | |
| | | |
| | full flush | |
| | | |
+-----+-----------------+---+
Note
Flushing usually has no effect on inflate streams.
EXAMPLES
Example #1
A HttpInflateStream example
<?php
$stream = new HttpInflateStream;
echo $stream->update($data);
echo $stream->finish();
?>
PHP Documentation Group HTTPINFLATESTREAM(3)