Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
inflatestream.php
1<?php
2
4
5class InflateStream extends Stream
6{
7 public function __construct($stream, $mode = 'r+')
8 {
9 parent::__construct($stream, $mode);
10
11 // ZLIB or GZIP: use window=$W+32 for automatic header detection, so that both the formats can be recognized and decompressed; window=15+32=47 is the safer choice.
12 stream_filter_append($this->resource, 'zlib.inflate', STREAM_FILTER_WRITE, ['window' => 47]);
13 }
14}