summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--PHPINFO3
-rw-r--r--REFLECTION132
-rw-r--r--php-brotli.spec51
4 files changed, 141 insertions, 47 deletions
diff --git a/Makefile b/Makefile
index 91b0fd5..13af741 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
SRCDIR := $(shell pwd)
NAME := $(shell basename $(SRCDIR))
-include ../../common/Makefile
+include ../../../common/Makefile
diff --git a/PHPINFO b/PHPINFO
index 4cfc155..564539d 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,6 +2,7 @@
brotli
Brotli support => enabled
-Extension Version => 0.15.2
+Extension Version => 0.18.3
Library Version => 1.1.0
+Dictionary support => enabled
APCu serializer ABI => 0
diff --git a/REFLECTION b/REFLECTION
index fc1f834..a3b0bf0 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #68 brotli version 0.15.2 ] {
+Extension [ <persistent> extension #72 brotli version 0.18.3 ] {
- Dependencies {
Dependency [ apcu (Optional) ]
@@ -9,11 +9,14 @@ Extension [ <persistent> extension #68 brotli version 0.15.2 ] {
Current = '0'
}
Entry [ brotli.output_compression_level <ALL> ]
- Current = '-1'
+ Current = '11'
+ }
+ Entry [ brotli.output_compression_dict <ALL> ]
+ Current = ''
}
}
- - Constants [9] {
+ - Constants [12] {
Constant [ int BROTLI_GENERIC ] { 0 }
Constant [ int BROTLI_TEXT ] { 1 }
Constant [ int BROTLI_FONT ] { 2 }
@@ -23,93 +26,152 @@ Extension [ <persistent> extension #68 brotli version 0.15.2 ] {
Constant [ int BROTLI_PROCESS ] { 0 }
Constant [ int BROTLI_FLUSH ] { 1 }
Constant [ int BROTLI_FINISH ] { 2 }
+ Constant [ bool BROTLI_DICTIONARY_SUPPORT ] { 1 }
+ Constant [ int BROTLI_VERSION_NUMBER ] { 16781312 }
+ Constant [ string BROTLI_VERSION_TEXT ] { 1.1.0 }
}
- 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> ]
+ Parameter #0 [ <required> string $data ]
+ Parameter #1 [ <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> ]
+ Parameter #0 [ <required> string $data ]
+ Parameter #1 [ <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 ]
+ }
+ }
+
+ - Classes [2] {
+ Class [ <internal:brotli> final class Brotli\Compress\Context ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Class [ <internal:brotli> final class Brotli\UnCompress\Context ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
}
}
}
diff --git a/php-brotli.spec b/php-brotli.spec
index 489b93e..be24f0b 100644
--- a/php-brotli.spec
+++ b/php-brotli.spec
@@ -1,8 +1,8 @@
# remirepo spec file for php-brotli
#
-# Copyright (c) 2017-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2017-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
@@ -14,6 +14,8 @@
%bcond_without tests
%global pecl_name brotli
+%global pie_vend kjdev
+%global pie_proj brotli
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global ini_name 40-%{pecl_name}.ini
%global sources %{pecl_name}-%{version}
@@ -21,8 +23,8 @@
Summary: Brotli Extension for PHP
Name: %{?scl_prefix}php-%{pecl_name}
-Version: 0.15.2
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 0.18.3
+Release: 1%{?dist}
License: MIT
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
@@ -40,10 +42,15 @@ Provides: bundled(brotli) = 1.1.0
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
-Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}
-Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}
-Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
-Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+
+# PECL
+Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+# PIE
+Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version}
+Provides: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} = %{version}
%description
@@ -86,7 +93,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
@@ -199,6 +207,29 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Tue Dec 2 2025 Remi Collet <remi@remirepo.net> - 0.18.3-1
+- update to 0.18.3
+
+* Mon Aug 18 2025 Remi Collet <remi@remirepo.net> - 0.18.2-1
+- update to 0.18.2
+
+* Wed Aug 13 2025 Remi Collet <remi@remirepo.net> - 0.18.1-1
+- update to 0.18.1
+- drop patch merged upstream
+
+* Wed Jul 30 2025 Remi Collet <remi@remirepo.net> - 0.18.0-2
+- fix for PHP 8.5.0alpha3 using patch from
+ https://github.com/kjdev/php-ext-brotli/pull/76
+
+* Wed Jun 18 2025 Remi Collet <remi@remirepo.net> - 0.18.0-1
+- update to 0.18.0
+
+* 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
+
* Fri Nov 8 2024 Remi Collet <remi@remirepo.net> - 0.15.2-1
- update to 0.15.2