Skip to content

Approach: Build on top of deflate_init() / inflate_init() #4

Closed

Description

@clue

Refs #1.

Activity

  1. clue commented on Nov 4, 2015

    @clue
    OwnerAuthor

    The deflate_init() and inflate_init() functions will be added with PHP 7 (currently undocumented otherwise).

    These functions expose exactly what the underlying zlib is capable of and as such would be a perfect base for a streaming (de)compressor.

    However, given they will be added with PHP 7 only, compatibility is very limited.

    As such, we can't really build this library on top it.
    However, we may want to look into how good this performs and could eventually provide two alternative implementations.

    FWIW: HHVM's zlib.inflate stream filter (refs #3) uses a class known as __SystemLib_ChunkedInflator which is very similar to what inflate_init() (and family) does. Relying on this is probably not a good idea… ;-)

  2. clue commented on Feb 8, 2017

    @clue
    OwnerAuthor

    The function deflate_init() is currently only available on PHP7+ and has zero support on older versions or HHVM:

    https://3v4l.org/pfCii

  3. clue commented on Feb 8, 2017

    @clue
    OwnerAuthor

    Afaict the deflate_*() functions do not exhibit any of the current known inconsistencies with the stream filters (#3):

    https://3v4l.org/DtFB2

  4. added this to the v1.0.0 milestone on Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needednew featureNew feature or request

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions