summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO4
-rw-r--r--REFLECTION11
-rw-r--r--php-pecl-rdkafka5.spec30
3 files changed, 24 insertions, 21 deletions
diff --git a/PHPINFO b/PHPINFO
index b6fa83b..8388039 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,7 +2,7 @@
rdkafka
rdkafka support => enabled
-version => 4.1.2
-build date => Dec 25 2020 00:00:00
+version => 5.0.0
+build date => Jan 14 2021 00:00:00
librdkafka version (runtime) => 1.5.3
librdkafka version (build) => 1.5.3.255
diff --git a/REFLECTION b/REFLECTION
index e66caae..1d0f749 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #98 rdkafka version 4.1.2 ] {
+Extension [ <persistent> extension #99 rdkafka version 5.0.0 ] {
- Constants [172] {
Constant [ int RD_KAFKA_CONSUMER ] { 1 }
@@ -1039,7 +1039,7 @@ Extension [ <persistent> extension #98 rdkafka version 4.1.2 ] {
- Static methods [0] {
}
- - Properties [9] {
+ - Properties [10] {
Property [ <default> public $err ]
Property [ <default> public $topic_name ]
Property [ <default> public $timestamp ]
@@ -1049,6 +1049,7 @@ Extension [ <persistent> extension #98 rdkafka version 4.1.2 ] {
Property [ <default> public $key ]
Property [ <default> public $offset ]
Property [ <default> public $headers ]
+ Property [ <default> public $opaque ]
}
- Methods [1] {
@@ -1536,23 +1537,25 @@ Extension [ <persistent> extension #98 rdkafka version 4.1.2 ] {
Method [ <internal:rdkafka> public method produce ] {
- - Parameters [4] {
+ - Parameters [5] {
Parameter #0 [ <required> $partition ]
Parameter #1 [ <required> $msgflags ]
Parameter #2 [ <optional> $payload ]
Parameter #3 [ <optional> $key ]
+ Parameter #4 [ <optional> $msg_opaque ]
}
}
Method [ <internal:rdkafka> public method producev ] {
- - Parameters [6] {
+ - Parameters [7] {
Parameter #0 [ <required> $partition ]
Parameter #1 [ <required> $msgflags ]
Parameter #2 [ <optional> $payload ]
Parameter #3 [ <optional> $key ]
Parameter #4 [ <optional> $headers ]
Parameter #5 [ <optional> $timestamp_ms ]
+ Parameter #6 [ <optional> $msg_opaque ]
}
}
diff --git a/php-pecl-rdkafka5.spec b/php-pecl-rdkafka5.spec
index 9a04f52..3825e66 100644
--- a/php-pecl-rdkafka5.spec
+++ b/php-pecl-rdkafka5.spec
@@ -1,4 +1,4 @@
-# remirepo/fedora spec file for php-pecl-rdkafka4
+# remirepo/fedora spec file for php-pecl-rdkafka5
#
# Copyright (c) 2015-2021 Remi Collet
# License: CC-BY-SA
@@ -19,21 +19,17 @@
%global buildver %(pkg-config --silence-errors --modversion rdkafka 2>/dev/null || echo 65536)
Summary: Kafka client based on librdkafka
-Name: %{?sub_prefix}php-pecl-%{pecl_name}4
-Version: 4.1.2
+Name: %{?sub_prefix}php-pecl-%{pecl_name}5
+Version: 5.0.0
Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: MIT
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
-# git checkout master; git diff 4.1.2 -- *h *.c tests/ >/tmp/pp
-# + cleanup (version, produce_consume_transactional.phpt)
-Patch0: %{pecl_name}-php8.patch
-
-BuildRequires: %{?dtsprefix}gcc
BuildRequires: make
+BuildRequires: %{?dtsprefix}gcc
BuildRequires: librdkafka1php-devel
-BuildRequires: %{?scl_prefix}php-devel >= 5.6
+BuildRequires: %{?scl_prefix}php-devel >= 7.0
BuildRequires: %{?scl_prefix}php-pear
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
@@ -51,12 +47,16 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele
%endif
%if 0%{?fedora} >= 31 || 0%{?rhel} >= 9 || "%{php_version}" > "7.4"
-Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 4
+Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 5
Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
+Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name}4 < 5
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}4 = %{version}-%{release}
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}4%{?_isa} = %{version}-%{release}
%else
# A single version can be installed
-Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 4
+Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 5
+Conflicts: %{?scl_prefix}php-pecl-%{pecl_name}4 < 5
%endif
%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
@@ -89,10 +89,6 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
-%if "%{php_version}" > "8.0"
-%patch0 -p1 -b .up
-%endif
-
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_RDKAFKA_VERSION/{s/.* "//;s/".*$//;p}' php_rdkafka.h)
if test "x${extver}" != "x%{version}"; then
@@ -207,6 +203,10 @@ cd ../ZTS
%changelog
+* Thu Jan 14 2021 Remi Collet <remi@remirepo.net> - 5.0.0-1
+- update to 5.0.0
+- rename to php-pecl-rdkafka5
+
* Fri Dec 25 2020 Remi Collet <remi@remirepo.net> - 4.1.2-1
- update to 4.1.2