From 46c692066fdd369590c325fcbaaf95146301f1b5 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Mon, 4 Nov 2024 12:47:17 +0100 Subject: [PATCH 1/3] Add composer.json --- composer.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..7b29787 --- /dev/null +++ b/composer.json @@ -0,0 +1,19 @@ +{ + "name": "arnaud-lb/rdkafka", + "type": "php-ext", + "license": "MIT", + "description": "A PHP extension for Kafka", + "require": { + "php": ">= 7.0.0" + }, + "php-ext": { + "extension-name": "rdkafka", + "configure-options": [ + { + "name": "with-rdkafka", + "description": "Use system librdkafka", + "needs-value": true + } + ] + } +} From 8f0f577e12e458f4b2c4b6551fda8c42b9a86475 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Mon, 4 Nov 2024 12:57:31 +0100 Subject: [PATCH 2/3] Update package vendor name --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7b29787..a834ee3 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "arnaud-lb/rdkafka", + "name": "rdkafka/rdkafka", "type": "php-ext", "license": "MIT", "description": "A PHP extension for Kafka", From 2df0c74170d95d027e6773d3a9afb1fab5917558 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Mon, 4 Nov 2024 13:11:36 +0100 Subject: [PATCH 3/3] release/6.0.5 (#569) --- package.xml | 45 +++++++++++++++++++++++++---------- php_rdkafka.h | 2 +- tools/new-package-release.php | 3 ++- 3 files changed, 35 insertions(+), 15 deletions(-) diff --git a/package.xml b/package.xml index c4ebc42..cf03069 100644 --- a/package.xml +++ b/package.xml @@ -10,10 +10,10 @@ arnaud.lb@gmail.com yes - 2024-10-24 - + 2024-11-04 + - 6.0.4 + 6.0.5 6.0.0 @@ -22,16 +22,10 @@ MIT License - ## Improvements - - Added OAUTHBEARER support. New methods: RdKafka\Conf::setOauthbearerTokenRefreshCb(), RdKafka::oauthbearerSetToken(), RdKafka::oauthbearerSetTokenFailure() (#546, #547, @cb-freddysart, @scorgn) - - Added incremental rebalance support. New methods: RdKafka\KafkaConsumer::incrementalAssign(), RdKafka\KafkaConsumer::incrementalUnassign() (#541, @ikeberlein) - - Added RdKafka::getControllerId() (#554, @qkdreyer) - - ## Bugfixes - - Add private constructor on Metadata classes (#531, @arnaud-lb) - - ## Other Changes - - Improve KafkaErrorException message (#555, @arnaud-lb) + ## Bug fixes + - Fix php 7.0 build (#563, @arnaud-lb) + - Fix x32 build (#565, @arnaud-lb) + - Fix segmentation fault in setOauthbearerTokenRefreshCb when sasl.oauthbearer.config is unset (#568, @scorgn) @@ -178,6 +172,31 @@ + + 2024-10-24 + + + 6.0.4 + 6.0.0 + + + stable + stable + + MIT License + + ## Improvements + - Added OAUTHBEARER support. New methods: RdKafka\Conf::setOauthbearerTokenRefreshCb(), RdKafka::oauthbearerSetToken(), RdKafka::oauthbearerSetTokenFailure() (#546, #547, @cb-freddysart, @scorgn) + - Added incremental rebalance support. New methods: RdKafka\KafkaConsumer::incrementalAssign(), RdKafka\KafkaConsumer::incrementalUnassign() (#541, @ikeberlein) + - Added RdKafka::getControllerId() (#554, @qkdreyer) + + ## Bugfixes + - Add private constructor on Metadata classes (#531, @arnaud-lb) + + ## Other Changes + - Improve KafkaErrorException message (#555, @arnaud-lb) + + 2022-07-02 diff --git a/php_rdkafka.h b/php_rdkafka.h index 58cc873..08585ec 100644 --- a/php_rdkafka.h +++ b/php_rdkafka.h @@ -43,7 +43,7 @@ PHP_METHOD(RdKafka, __construct); extern zend_module_entry rdkafka_module_entry; #define phpext_rdkafka_ptr &rdkafka_module_entry -#define PHP_RDKAFKA_VERSION "6.0.4" +#define PHP_RDKAFKA_VERSION "6.0.5" extern zend_object_handlers kafka_default_object_handlers; extern zend_class_entry * ce_kafka_exception; diff --git a/tools/new-package-release.php b/tools/new-package-release.php index 7d4a082..286dcff 100755 --- a/tools/new-package-release.php +++ b/tools/new-package-release.php @@ -31,8 +31,9 @@ function printUsage(): void function generateReleaseNotes(string $newVersion): string { $cmd = sprintf( - 'gh api repos/arnaud-lb/php-rdkafka/releases/generate-notes -f tag_name=%s', + 'gh api repos/arnaud-lb/php-rdkafka/releases/generate-notes -f tag_name=%s -f target_commitish=%s', escapeshellcmd($newVersion), + escapeshellcmd(exec("git rev-parse HEAD")), ); $result = exec($cmd);