Skip to content

Commit 88d8385

Browse files
committed
chore: add support for librdkafka v2.2.1, v2.8.0
1 parent 3c00b54 commit 88d8385

File tree

16 files changed

+2846
-639
lines changed

16 files changed

+2846
-639
lines changed

.github/workflows/test-extension-compatibility.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
php:
1616
- '8.1'
1717
librdkafka:
18-
- 'v2.6.0'
18+
- 'v2.8.0'
1919
rdkafka:
2020
- '6.x'
2121
services:

.github/workflows/test-windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- '8.3'
1919
- '8.4'
2020
librdkafka:
21-
- '2.6.1'
21+
- '2.8.0'
2222
defaults:
2323
run:
2424
shell: bash

.github/workflows/test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ jobs:
2828
- '8.3'
2929
- '8.4'
3030
librdkafka:
31+
- 'v2.8.0'
3132
- 'v2.6.1'
3233
- 'v2.5.3'
3334
- 'v2.4.0'
3435
- 'v2.3.0'
35-
- 'v2.2.0'
36+
- 'v2.2.1'
3637
- 'v2.1.1'
3738
- 'v2.0.2'
3839
- 'v1.9.2'

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ This pre-release improves compatible with the [PHP RdKafka extension](https://gi
1212
### Added
1313

1414
- Add support for PHP 8.3 and 8.4
15-
- Add support for librdkafka 2.1.0, 2.1.1, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.5.3, 2.6.0, 2.6.1
15+
- Add support for librdkafka 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.3.0, 2.4.0, 2.5.0, 2.5.3, 2.6.0, 2.6.1, 2.8.0
16+
17+
### Changed
18+
19+
- Change internal usage for deprecated static FFI::new(), FFI:;cast(), FFI::type()
1620

1721
### Fixed
1822

resources/docker/php74-librdkafka-ffi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM php:7.4-cli
22

33
# enable ffi and install librdkafka
4-
ARG LIBRDKAFKA_VERSION=v2.6.1
4+
ARG LIBRDKAFKA_VERSION=v2.8.0
55
ENV LIBRDKAFKA_VERSION=$LIBRDKAFKA_VERSION
66
RUN set -e; \
77
apt-get update; \

resources/docker/php80-librdkafka-ffi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM php:8.0-cli
22

33
# enable ffi and install librdkafka
4-
ARG LIBRDKAFKA_VERSION=v2.6.1
4+
ARG LIBRDKAFKA_VERSION=v2.8.0
55
ENV LIBRDKAFKA_VERSION=$LIBRDKAFKA_VERSION
66
RUN set -e; \
77
apt-get update; \

resources/docker/php81-librdkafka-ffi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM php:8.1-cli
22

33
# enable ffi and install librdkafka
4-
ARG LIBRDKAFKA_VERSION=v2.6.1
4+
ARG LIBRDKAFKA_VERSION=v2.8.0
55
ENV LIBRDKAFKA_VERSION=$LIBRDKAFKA_VERSION
66
RUN set -e; \
77
apt-get update; \

resources/docker/php82-librdkafka-ffi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM php:8.2-cli
22

33
# enable ffi and install librdkafka
4-
ARG LIBRDKAFKA_VERSION=v2.6.1
4+
ARG LIBRDKAFKA_VERSION=v2.8.0
55
ENV LIBRDKAFKA_VERSION=$LIBRDKAFKA_VERSION
66
RUN set -e; \
77
apt-get update; \

resources/docker/php83-librdkafka-ffi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM php:8.3-cli
22

33
# enable ffi and install librdkafka
4-
ARG LIBRDKAFKA_VERSION=v2.6.1
4+
ARG LIBRDKAFKA_VERSION=v2.8.0
55
ENV LIBRDKAFKA_VERSION=$LIBRDKAFKA_VERSION
66
RUN set -e; \
77
apt-get update; \

resources/docker/php84-librdkafka-ffi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM php:8.4-cli
22

33
# enable ffi and install librdkafka
4-
ARG LIBRDKAFKA_VERSION=v2.6.1
4+
ARG LIBRDKAFKA_VERSION=v2.8.0
55
ENV LIBRDKAFKA_VERSION=$LIBRDKAFKA_VERSION
66
RUN set -e; \
77
apt-get update; \

resources/ffigen/LibrdkafkaHeaderFiles.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private function loadSupportedVersions(): array
9494
foreach ($releases as $release) {
9595
if ($release->prerelease === false) {
9696
$version = str_replace('v', '', $release->tag_name);
97-
if (Comparator::greaterThanOrEqualTo($version, '1.0.0') && Comparator::lessThan($version, '2.7.0')) {
97+
if (Comparator::greaterThanOrEqualTo($version, '1.0.0') && Comparator::lessThan($version, '2.9.0')) {
9898
$supportedVersions[$version] = sprintf(
9999
self::DOWNLOAD_BASE_URL_TEMPLATE,
100100
$release->tag_name

src/RdKafka/FFI/Library.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Library
2727
use Methods;
2828

2929
public const VERSION_AUTODETECT = '';
30-
public const VERSION_LATEST = '2.6.1';
30+
public const VERSION_LATEST = '2.8.0';
3131
public const PHP_LIBRARY_VERSION = '0.6.0';
3232

3333
private static FFI $ffi;

src/RdKafka/FFI/Methods.php

+215-122
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)