Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

InflateStream.php

Zuletzt modifiziert: 09.10.2024, 12:56 - Dateigröße: 942.00 Bytes


01  <?php
02  namespace GuzzleHttp\Stream;
03   
04  /**
05   * Uses PHP's zlib.inflate filter to inflate deflate or gzipped content.
06   *
07   * This stream decorator skips the first 10 bytes of the given stream to remove
08   * the gzip header, converts the provided stream to a PHP stream resource,
09   * then appends the zlib.inflate filter. The stream is then converted back
10   * to a Guzzle stream resource to be used as a Guzzle stream.
11   *
12   * @link http://tools.ietf.org/html/rfc1952
13   * @link http://php.net/manual/en/filters.compression.php
14   */
15  class InflateStream implements StreamInterface
16  {
17      use StreamDecoratorTrait;
18   
19      public function __construct(StreamInterface $stream)
20      {
21          // Skip the first 10 bytes
22          $stream = new LimitStream($stream, -1, 10);
23          $resource = GuzzleStreamWrapper::getResource($stream);
24          stream_filter_append($resource, 'zlib.inflate', STREAM_FILTER_READ);
25          $this->stream = new Stream($resource);
26      }
27  }
28