diff options
author | Remi Collet <remi@remirepo.net> | 2025-05-19 07:06:02 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-05-19 07:06:02 +0200 |
commit | 10e02398c9dcd1501db9f585d98b6412fb6570f2 (patch) | |
tree | d5d21dc7ea2d5f4dbedcf94786543ebd89d21b59 | |
parent | 586e2c0a48114373bf4174295d54c634e7911e16 (diff) |
-rw-r--r-- | PHPINFO | 3 | ||||
-rw-r--r-- | REFLECTION | 98 | ||||
-rw-r--r-- | php-brotli.spec | 8 |
3 files changed, 69 insertions, 40 deletions
@@ -2,6 +2,7 @@ brotli Brotli support => enabled -Extension Version => 0.16.0 +Extension Version => 0.17.0 Library Version => 1.1.0 +Dictionary support => enabled APCu serializer ABI => 0 @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #71 brotli version 0.16.0 ] { +Extension [ <persistent> extension #71 brotli version 0.17.0 ] { - Dependencies { Dependency [ apcu (Optional) ] @@ -9,11 +9,14 @@ Extension [ <persistent> extension #71 brotli version 0.16.0 ] { Current = '0' } Entry [ brotli.output_compression_level <ALL> ] - Current = '-1' + Current = '11' + } + Entry [ brotli.output_compression_dict <ALL> ] + Current = '' } } - - Constants [9] { + - Constants [10] { Constant [ int BROTLI_GENERIC ] { 0 } Constant [ int BROTLI_TEXT ] { 1 } Constant [ int BROTLI_FONT ] { 2 } @@ -23,94 +26,115 @@ Extension [ <persistent> extension #71 brotli version 0.16.0 ] { Constant [ int BROTLI_PROCESS ] { 0 } Constant [ int BROTLI_FLUSH ] { 1 } Constant [ int BROTLI_FINISH ] { 2 } + Constant [ bool BROTLI_DICTIONARY_SUPPORT ] { 1 } } - Functions { Function [ <internal:brotli> function brotli_compress ] { - - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $quality = <default> ] - Parameter #2 [ <optional> $mode = <default> ] + - Parameters [4] { + Parameter #0 [ <required> string $data ] + Parameter #1 [ <optional> int $level = BROTLI_COMPRESS_LEVEL_DEFAULT ] + Parameter #2 [ <optional> int $mode = BROTLI_GENERIC ] + Parameter #3 [ <optional> ?string $dict = null ] } + - Return [ string|false ] } Function [ <internal:brotli> function brotli_uncompress ] { - - Parameters [2] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $max = <default> ] + - Parameters [3] { + Parameter #0 [ <required> string $data ] + Parameter #1 [ <optional> int $length = 0 ] + Parameter #2 [ <optional> ?string $dict = null ] } + - Return [ string|false ] } Function [ <internal:brotli> function Brotli\compress ] { - - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $quality = <default> ] - Parameter #2 [ <optional> $mode = <default> ] + - Parameters [4] { + Parameter #0 [ <required> string $data ] + Parameter #1 [ <optional> int $level = BROTLI_COMPRESS_LEVEL_DEFAULT ] + Parameter #2 [ <optional> int $mode = BROTLI_GENERIC ] + Parameter #3 [ <optional> ?string $dict = null ] } + - Return [ string|false ] } Function [ <internal:brotli> function Brotli\uncompress ] { - - Parameters [2] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $max = <default> ] + - Parameters [3] { + Parameter #0 [ <required> string $data ] + Parameter #1 [ <optional> int $length = 0 ] + Parameter #2 [ <optional> ?string $dict = null ] } + - Return [ string|false ] } Function [ <internal:brotli> function brotli_compress_init ] { - - Parameters [2] { - Parameter #0 [ <optional> $quality = <default> ] - Parameter #1 [ <optional> $mode = <default> ] + - Parameters [3] { + Parameter #0 [ <optional> int $level = BROTLI_COMPRESS_LEVEL_DEFAULT ] + Parameter #1 [ <optional> int $mode = BROTLI_GENERIC ] + Parameter #2 [ <optional> ?string $dict = null ] } + - Return [ Brotli\Compress\Context|false ] } Function [ <internal:brotli> function brotli_compress_add ] { - Parameters [3] { - Parameter #0 [ <required> $context ] - Parameter #1 [ <required> $data ] - Parameter #2 [ <optional> $mode = <default> ] + Parameter #0 [ <required> Brotli\Compress\Context $context ] + Parameter #1 [ <required> string $data ] + Parameter #2 [ <optional> int $mode = BROTLI_FLUSH ] } + - Return [ string|false ] } Function [ <internal:brotli> function brotli_uncompress_init ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> ?string $dict = null ] } + - Return [ Brotli\UnCompress\Context|false ] } Function [ <internal:brotli> function brotli_uncompress_add ] { - Parameters [3] { - Parameter #0 [ <required> $context ] - Parameter #1 [ <required> $data ] - Parameter #2 [ <optional> $mode = <default> ] + Parameter #0 [ <required> Brotli\UnCompress\Context $context ] + Parameter #1 [ <required> string $data ] + Parameter #2 [ <optional> int $mode = BROTLI_FLUSH ] } + - Return [ string|false ] } Function [ <internal:brotli> function Brotli\compress_init ] { - - Parameters [2] { - Parameter #0 [ <optional> $quality = <default> ] - Parameter #1 [ <optional> $mode = <default> ] + - Parameters [3] { + Parameter #0 [ <optional> int $level = BROTLI_COMPRESS_LEVEL_DEFAULT ] + Parameter #1 [ <optional> int $mode = BROTLI_GENERIC ] + Parameter #2 [ <optional> ?string $dict = null ] } + - Return [ Brotli\Compress\Context|false ] } Function [ <internal:brotli> function Brotli\compress_add ] { - Parameters [3] { - Parameter #0 [ <required> $context ] - Parameter #1 [ <required> $data ] - Parameter #2 [ <optional> $mode = <default> ] + Parameter #0 [ <required> Brotli\Compress\Context $context ] + Parameter #1 [ <required> string $data ] + Parameter #2 [ <optional> int $mode = BROTLI_FLUSH ] } + - Return [ string|false ] } Function [ <internal:brotli> function Brotli\uncompress_init ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> ?string $dict = null ] } + - Return [ Brotli\UnCompress\Context|false ] } Function [ <internal:brotli> function Brotli\uncompress_add ] { - Parameters [3] { - Parameter #0 [ <required> $context ] - Parameter #1 [ <required> $data ] - Parameter #2 [ <optional> $mode = <default> ] + Parameter #0 [ <required> Brotli\UnCompress\Context $context ] + Parameter #1 [ <required> string $data ] + Parameter #2 [ <optional> int $mode = BROTLI_FLUSH ] } + - Return [ string|false ] } } diff --git a/php-brotli.spec b/php-brotli.spec index 1476b2d..773bfb6 100644 --- a/php-brotli.spec +++ b/php-brotli.spec @@ -23,7 +23,7 @@ Summary: Brotli Extension for PHP Name: %{?scl_prefix}php-%{pecl_name} -Version: 0.16.0 +Version: 0.17.0 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: MIT URL: https://pecl.php.net/package/%{pecl_name} @@ -90,7 +90,8 @@ extension = %{pecl_name}.so ; Configuration ;brotli.output_compression = 0 -;brotli.output_compression_level = -1 +;brotli.output_compression_level = 11 +;brotli.output_compression_dict = EOF @@ -203,6 +204,9 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Mon May 19 2025 Remi Collet <remi@remirepo.net> - 0.17.0-1 +- update to 0.17.0 + * Tue Apr 22 2025 Remi Collet <remi@remirepo.net> - 0.16.0-1 - update to 0.16.0 |