summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO8
-rw-r--r--REFLECTION324
-rw-r--r--php-pecl-rdkafka6.spec164
3 files changed, 405 insertions, 91 deletions
diff --git a/PHPINFO b/PHPINFO
index c596286..edc19fa 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,7 +2,7 @@
rdkafka
rdkafka support => enabled
-version => 6.0.1
-build date => Feb 15 2022 00:00:00
-librdkafka version (runtime) => 1.8.2
-librdkafka version (build) => 1.8.2.255
+version => 6.0.5
+build date => Nov 4 2024 00:00:00
+librdkafka version (runtime) => 2.6.0
+librdkafka version (build) => 2.6.0.255
diff --git a/REFLECTION b/REFLECTION
index 7874892..7616941 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,6 +1,6 @@
-Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
+Extension [ <persistent> extension #94 rdkafka version 6.0.5 ] {
- - Constants [184] {
+ - Constants [193] {
Constant [ int RD_KAFKA_CONSUMER ] { 1 }
Constant [ int RD_KAFKA_OFFSET_BEGINNING ] { -2 }
Constant [ int RD_KAFKA_OFFSET_END ] { -1 }
@@ -11,8 +11,8 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Constant [ int RD_KAFKA_PURGE_F_QUEUE ] { 1 }
Constant [ int RD_KAFKA_PURGE_F_INFLIGHT ] { 2 }
Constant [ int RD_KAFKA_PURGE_F_NON_BLOCKING ] { 4 }
- Constant [ int RD_KAFKA_VERSION ] { 17302271 }
- Constant [ int RD_KAFKA_BUILD_VERSION ] { 17302271 }
+ Constant [ int RD_KAFKA_VERSION ] { 33947903 }
+ Constant [ int RD_KAFKA_BUILD_VERSION ] { 33947903 }
Constant [ int RD_KAFKA_RESP_ERR__BEGIN ] { -200 }
Constant [ int RD_KAFKA_RESP_ERR__BAD_MSG ] { -199 }
Constant [ int RD_KAFKA_RESP_ERR__BAD_COMPRESSION ] { -198 }
@@ -74,6 +74,8 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Constant [ int RD_KAFKA_RESP_ERR__ASSIGNMENT_LOST ] { -142 }
Constant [ int RD_KAFKA_RESP_ERR__NOOP ] { -141 }
Constant [ int RD_KAFKA_RESP_ERR__AUTO_OFFSET_RESET ] { -140 }
+ Constant [ int RD_KAFKA_RESP_ERR__LOG_TRUNCATION ] { -139 }
+ Constant [ int RD_KAFKA_RESP_ERR__INVALID_DIFFERENT_RECORD ] { -138 }
Constant [ int RD_KAFKA_RESP_ERR__END ] { -100 }
Constant [ int RD_KAFKA_RESP_ERR_UNKNOWN ] { -1 }
Constant [ int RD_KAFKA_RESP_ERR_NO_ERROR ] { 0 }
@@ -174,6 +176,13 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Constant [ int RD_KAFKA_RESP_ERR_INVALID_UPDATE_VERSION ] { 95 }
Constant [ int RD_KAFKA_RESP_ERR_FEATURE_UPDATE_FAILED ] { 96 }
Constant [ int RD_KAFKA_RESP_ERR_PRINCIPAL_DESERIALIZATION_FAILURE ] { 97 }
+ Constant [ int RD_KAFKA_RESP_ERR_UNKNOWN_TOPIC_ID ] { 100 }
+ Constant [ int RD_KAFKA_RESP_ERR_FENCED_MEMBER_EPOCH ] { 110 }
+ Constant [ int RD_KAFKA_RESP_ERR_UNRELEASED_INSTANCE_ID ] { 111 }
+ Constant [ int RD_KAFKA_RESP_ERR_UNSUPPORTED_ASSIGNOR ] { 112 }
+ Constant [ int RD_KAFKA_RESP_ERR_STALE_MEMBER_EPOCH ] { 113 }
+ Constant [ int RD_KAFKA_RESP_ERR_UNKNOWN_SUBSCRIPTION_ID ] { 117 }
+ Constant [ int RD_KAFKA_RESP_ERR_TELEMETRY_TOO_LARGE ] { 118 }
Constant [ int RD_KAFKA_CONF_UNKNOWN ] { -2 }
Constant [ int RD_KAFKA_CONF_INVALID ] { -1 }
Constant [ int RD_KAFKA_CONF_OK ] { 0 }
@@ -253,7 +262,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Property [ private ?callable $dr_cb ]
}
- - Methods [16] {
+ - Methods [19] {
Method [ <internal:rdkafka, ctor> private method __construct ] {
- Parameters [0] {
@@ -265,6 +274,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> string $broker_list ]
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method getMetadata ] {
@@ -274,12 +284,22 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #1 [ <required> ?RdKafka\Topic $only_topic ]
Parameter #2 [ <required> int $timeout_ms ]
}
+ - Tentative return [ RdKafka\Metadata ]
+ }
+
+ Method [ <internal:rdkafka> public method getControllerId ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> int $timeout_ms ]
+ }
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method getOutQLen ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal, deprecated:rdkafka> public method metadata ] {
@@ -289,6 +309,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #1 [ <required> ?RdKafka\Topic $only_topic ]
Parameter #2 [ <required> int $timeout_ms ]
}
+ - Tentative return [ RdKafka\Metadata ]
}
Method [ <internal, deprecated:rdkafka> public method setLogLevel ] {
@@ -296,6 +317,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $level ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method newTopic ] {
@@ -304,12 +326,14 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> string $topic_name ]
Parameter #1 [ <optional> ?RdKafka\TopicConf $topic_conf = null ]
}
+ - Tentative return [ RdKafka\Topic ]
}
Method [ <internal, deprecated:rdkafka> public method outqLen ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method poll ] {
@@ -317,6 +341,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout_ms ]
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method flush ] {
@@ -324,6 +349,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout_ms ]
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method purge ] {
@@ -331,6 +357,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $purge_flags ]
}
+ - Tentative return [ int ]
}
Method [ <internal, deprecated:rdkafka> public method setLogger ] {
@@ -338,6 +365,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $logger ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method queryWatermarkOffsets ] {
@@ -349,6 +377,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #3 [ <required> int &$high ]
Parameter #4 [ <required> int $timeout_ms ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method offsetsForTimes ] {
@@ -357,6 +386,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> array $topic_partitions ]
Parameter #1 [ <required> int $timeout_ms ]
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka> public method pausePartitions ] {
@@ -364,6 +394,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> array $topic_partitions ]
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka> public method resumePartitions ] {
@@ -371,6 +402,26 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> array $topic_partitions ]
}
+ - Tentative return [ array ]
+ }
+
+ Method [ <internal:rdkafka> public method oauthbearerSetToken ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> string $token_value ]
+ Parameter #1 [ <required> string|int|float $lifetime_ms ]
+ Parameter #2 [ <required> string $principal_name ]
+ Parameter #3 [ <optional> array $extensions = [] ]
+ }
+ - Tentative return [ void ]
+ }
+
+ Method [ <internal:rdkafka> public method oauthbearerSetTokenFailure ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $error ]
+ }
+ - Tentative return [ void ]
}
}
}
@@ -389,8 +440,8 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Properties [0] {
}
- - Methods [17] {
- Method [ <internal:rdkafka, overwrites RdKafka, ctor> public method __construct ] {
+ - Methods [20] {
+ Method [ <internal:rdkafka, ctor> public method __construct ] {
- Parameters [1] {
Parameter #0 [ <optional> ?RdKafka\Conf $conf = null ]
@@ -401,6 +452,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [0] {
}
+ - Tentative return [ RdKafka\Queue ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method addBrokers ] {
@@ -408,6 +460,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> string $broker_list ]
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method getMetadata ] {
@@ -417,12 +470,22 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #1 [ <required> ?RdKafka\Topic $only_topic ]
Parameter #2 [ <required> int $timeout_ms ]
}
+ - Tentative return [ RdKafka\Metadata ]
+ }
+
+ Method [ <internal:rdkafka, inherits RdKafka> public method getControllerId ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> int $timeout_ms ]
+ }
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method getOutQLen ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal, deprecated:rdkafka, inherits RdKafka> public method metadata ] {
@@ -432,6 +495,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #1 [ <required> ?RdKafka\Topic $only_topic ]
Parameter #2 [ <required> int $timeout_ms ]
}
+ - Tentative return [ RdKafka\Metadata ]
}
Method [ <internal, deprecated:rdkafka, inherits RdKafka> public method setLogLevel ] {
@@ -439,6 +503,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $level ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method newTopic ] {
@@ -447,12 +512,14 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> string $topic_name ]
Parameter #1 [ <optional> ?RdKafka\TopicConf $topic_conf = null ]
}
+ - Tentative return [ RdKafka\Topic ]
}
Method [ <internal, deprecated:rdkafka, inherits RdKafka> public method outqLen ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method poll ] {
@@ -460,6 +527,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout_ms ]
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method flush ] {
@@ -467,6 +535,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout_ms ]
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method purge ] {
@@ -474,6 +543,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $purge_flags ]
}
+ - Tentative return [ int ]
}
Method [ <internal, deprecated:rdkafka, inherits RdKafka> public method setLogger ] {
@@ -481,6 +551,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $logger ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method queryWatermarkOffsets ] {
@@ -492,6 +563,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #3 [ <required> int &$high ]
Parameter #4 [ <required> int $timeout_ms ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method offsetsForTimes ] {
@@ -500,6 +572,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> array $topic_partitions ]
Parameter #1 [ <required> int $timeout_ms ]
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method pausePartitions ] {
@@ -507,6 +580,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> array $topic_partitions ]
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method resumePartitions ] {
@@ -514,6 +588,26 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> array $topic_partitions ]
}
+ - Tentative return [ array ]
+ }
+
+ Method [ <internal:rdkafka, inherits RdKafka> public method oauthbearerSetToken ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> string $token_value ]
+ Parameter #1 [ <required> string|int|float $lifetime_ms ]
+ Parameter #2 [ <required> string $principal_name ]
+ Parameter #3 [ <optional> array $extensions = [] ]
+ }
+ - Tentative return [ void ]
+ }
+
+ Method [ <internal:rdkafka, inherits RdKafka> public method oauthbearerSetTokenFailure ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $error ]
+ }
+ - Tentative return [ void ]
}
}
}
@@ -532,8 +626,8 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Properties [0] {
}
- - Methods [20] {
- Method [ <internal:rdkafka, overwrites RdKafka, ctor> public method __construct ] {
+ - Methods [23] {
+ Method [ <internal:rdkafka, ctor> public method __construct ] {
- Parameters [1] {
Parameter #0 [ <optional> ?RdKafka\Conf $conf = null ]
@@ -545,12 +639,14 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout_ms ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method beginTransaction ] {
- Parameters [0] {
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method commitTransaction ] {
@@ -558,6 +654,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout_ms ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method abortTransaction ] {
@@ -565,6 +662,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout_ms ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method addBrokers ] {
@@ -572,6 +670,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> string $broker_list ]
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method getMetadata ] {
@@ -581,12 +680,22 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #1 [ <required> ?RdKafka\Topic $only_topic ]
Parameter #2 [ <required> int $timeout_ms ]
}
+ - Tentative return [ RdKafka\Metadata ]
+ }
+
+ Method [ <internal:rdkafka, inherits RdKafka> public method getControllerId ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> int $timeout_ms ]
+ }
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method getOutQLen ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal, deprecated:rdkafka, inherits RdKafka> public method metadata ] {
@@ -596,6 +705,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #1 [ <required> ?RdKafka\Topic $only_topic ]
Parameter #2 [ <required> int $timeout_ms ]
}
+ - Tentative return [ RdKafka\Metadata ]
}
Method [ <internal, deprecated:rdkafka, inherits RdKafka> public method setLogLevel ] {
@@ -603,6 +713,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $level ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method newTopic ] {
@@ -611,12 +722,14 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> string $topic_name ]
Parameter #1 [ <optional> ?RdKafka\TopicConf $topic_conf = null ]
}
+ - Tentative return [ RdKafka\Topic ]
}
Method [ <internal, deprecated:rdkafka, inherits RdKafka> public method outqLen ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method poll ] {
@@ -624,6 +737,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout_ms ]
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method flush ] {
@@ -631,6 +745,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout_ms ]
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method purge ] {
@@ -638,6 +753,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $purge_flags ]
}
+ - Tentative return [ int ]
}
Method [ <internal, deprecated:rdkafka, inherits RdKafka> public method setLogger ] {
@@ -645,6 +761,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $logger ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method queryWatermarkOffsets ] {
@@ -656,6 +773,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #3 [ <required> int &$high ]
Parameter #4 [ <required> int $timeout_ms ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method offsetsForTimes ] {
@@ -664,6 +782,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> array $topic_partitions ]
Parameter #1 [ <required> int $timeout_ms ]
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method pausePartitions ] {
@@ -671,6 +790,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> array $topic_partitions ]
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka, inherits RdKafka> public method resumePartitions ] {
@@ -678,6 +798,26 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> array $topic_partitions ]
}
+ - Tentative return [ array ]
+ }
+
+ Method [ <internal:rdkafka, inherits RdKafka> public method oauthbearerSetToken ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> string $token_value ]
+ Parameter #1 [ <required> string|int|float $lifetime_ms ]
+ Parameter #2 [ <required> string $principal_name ]
+ Parameter #3 [ <optional> array $extensions = [] ]
+ }
+ - Tentative return [ void ]
+ }
+
+ Method [ <internal:rdkafka, inherits RdKafka> public method oauthbearerSetTokenFailure ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $error ]
+ }
+ - Tentative return [ void ]
}
}
}
@@ -696,8 +836,8 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Properties [4] {
Property [ protected $message = '' ]
Property [ protected $code = 0 ]
- Property [ protected $file = NULL ]
- Property [ protected $line = NULL ]
+ Property [ protected string $file = '' ]
+ Property [ protected int $line = 0 ]
}
- Methods [10] {
@@ -714,6 +854,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [0] {
}
+ - Tentative return [ void ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
@@ -787,7 +928,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Properties [0] {
}
- - Methods [11] {
+ - Methods [12] {
Method [ <internal:rdkafka, ctor> public method __construct ] {
- Parameters [0] {
@@ -798,6 +939,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [0] {
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka> public method set ] {
@@ -806,6 +948,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> string $name ]
Parameter #1 [ <required> string $value ]
}
+ - Tentative return [ void ]
}
Method [ <internal, deprecated:rdkafka> public method setDefaultTopicConf ] {
@@ -813,6 +956,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> RdKafka\TopicConf $topic_conf ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method setErrorCb ] {
@@ -820,6 +964,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> callable $callback ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method setDrMsgCb ] {
@@ -827,6 +972,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> callable $callback ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method setStatsCb ] {
@@ -834,6 +980,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> callable $callback ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method setRebalanceCb ] {
@@ -841,6 +988,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> callable $callback ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method setConsumeCb ] {
@@ -848,6 +996,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> callable $callback ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method setOffsetCommitCb ] {
@@ -855,6 +1004,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> callable $callback ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method setLogCb ] {
@@ -862,6 +1012,15 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> callable $callback ]
}
+ - Tentative return [ void ]
+ }
+
+ Method [ <internal:rdkafka> public method setOauthbearerTokenRefreshCb ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> callable $callback ]
+ }
+ - Tentative return [ void ]
}
}
}
@@ -891,6 +1050,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [0] {
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka> public method set ] {
@@ -899,6 +1059,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> string $name ]
Parameter #1 [ <required> string $value ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method setPartitioner ] {
@@ -906,6 +1067,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $partitioner ]
}
+ - Tentative return [ void ]
}
}
}
@@ -924,8 +1086,8 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Properties [8] {
Property [ protected $message = '' ]
Property [ protected $code = 0 ]
- Property [ protected $file = NULL ]
- Property [ protected $line = NULL ]
+ Property [ protected string $file = '' ]
+ Property [ protected int $line = 0 ]
Property [ private string $error_string ]
Property [ private bool $isFatal ]
Property [ private bool $isRetriable ]
@@ -949,30 +1111,35 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [0] {
}
+ - Tentative return [ string ]
}
Method [ <internal:rdkafka> public method isFatal ] {
- Parameters [0] {
}
+ - Tentative return [ bool ]
}
Method [ <internal:rdkafka> public method isRetriable ] {
- Parameters [0] {
}
+ - Tentative return [ bool ]
}
Method [ <internal:rdkafka> public method transactionRequiresAbort ] {
- Parameters [0] {
}
+ - Tentative return [ bool ]
}
Method [ <internal:Core, inherits Exception> public method __wakeup ] {
- Parameters [0] {
}
+ - Tentative return [ void ]
}
Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
@@ -1049,7 +1216,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Property [ private ?callable $dr_msg_cb ]
}
- - Methods [18] {
+ - Methods [21] {
Method [ <internal:rdkafka, ctor> public method __construct ] {
- Parameters [1] {
@@ -1062,12 +1229,30 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <optional> ?array $topic_partitions = null ]
}
+ - Tentative return [ void ]
+ }
+
+ Method [ <internal:rdkafka> public method incrementalAssign ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $topic_partitions ]
+ }
+ - Tentative return [ void ]
+ }
+
+ Method [ <internal:rdkafka> public method incrementalUnassign ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $topic_partitions ]
+ }
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method getAssignment ] {
- Parameters [0] {
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka> public method commit ] {
@@ -1075,12 +1260,14 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <optional> RdKafka\Message|array|null $message_or_offsets = null ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method close ] {
- Parameters [0] {
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method commitAsync ] {
@@ -1088,6 +1275,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <optional> RdKafka\Message|array|null $message_or_offsets = null ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method consume ] {
@@ -1095,6 +1283,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout_ms ]
}
+ - Tentative return [ RdKafka\Message ]
}
Method [ <internal:rdkafka> public method subscribe ] {
@@ -1102,27 +1291,39 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> array $topics ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method getSubscription ] {
- Parameters [0] {
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka> public method unsubscribe ] {
- Parameters [0] {
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method getMetadata ] {
- Parameters [3] {
Parameter #0 [ <required> bool $all_topics ]
- Parameter #1 [ <required> RdKafka\Topic $only_topic ]
+ Parameter #1 [ <required> ?RdKafka\Topic $only_topic ]
Parameter #2 [ <required> int $timeout_ms ]
}
+ - Tentative return [ RdKafka\Metadata ]
+ }
+
+ Method [ <internal:rdkafka> public method getControllerId ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> int $timeout_ms ]
+ }
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method newTopic ] {
@@ -1131,6 +1332,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> string $topic_name ]
Parameter #1 [ <optional> ?RdKafka\TopicConf $topic_conf = null ]
}
+ - Tentative return [ RdKafka\KafkaConsumerTopic ]
}
Method [ <internal:rdkafka> public method getCommittedOffsets ] {
@@ -1139,6 +1341,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> array $topic_partitions ]
Parameter #1 [ <required> int $timeout_ms ]
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka> public method getOffsetPositions ] {
@@ -1146,6 +1349,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> array $topic_partitions ]
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka> public method queryWatermarkOffsets ] {
@@ -1157,6 +1361,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #3 [ <required> int &$high ]
Parameter #4 [ <required> int $timeout_ms ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method offsetsForTimes ] {
@@ -1165,6 +1370,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> array $topic_partitions ]
Parameter #1 [ <required> int $timeout_ms ]
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka> public method pausePartitions ] {
@@ -1172,6 +1378,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> array $topic_partitions ]
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka> public method resumePartitions ] {
@@ -1179,6 +1386,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> array $topic_partitions ]
}
+ - Tentative return [ array ]
}
}
}
@@ -1212,6 +1420,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [0] {
}
+ - Tentative return [ ?string ]
}
}
}
@@ -1230,29 +1439,39 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Properties [0] {
}
- - Methods [4] {
+ - Methods [5] {
+ Method [ <internal:rdkafka, ctor> private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
Method [ <internal:rdkafka> public method getOrigBrokerId ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method getOrigBrokerName ] {
- Parameters [0] {
}
+ - Tentative return [ string ]
}
Method [ <internal:rdkafka> public method getBrokers ] {
- Parameters [0] {
}
+ - Tentative return [ RdKafka\Metadata\Collection ]
}
Method [ <internal:rdkafka> public method getTopics ] {
- Parameters [0] {
}
+ - Tentative return [ RdKafka\Metadata\Collection ]
}
}
}
@@ -1271,23 +1490,32 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Properties [0] {
}
- - Methods [3] {
+ - Methods [4] {
+ Method [ <internal:rdkafka, ctor> private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
Method [ <internal:rdkafka> public method getTopic ] {
- Parameters [0] {
}
+ - Tentative return [ string ]
}
Method [ <internal:rdkafka> public method getErr ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method getPartitions ] {
- Parameters [0] {
}
+ - Tentative return [ RdKafka\Metadata\Collection ]
}
}
}
@@ -1306,23 +1534,32 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Properties [0] {
}
- - Methods [3] {
+ - Methods [4] {
+ Method [ <internal:rdkafka, ctor> private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
Method [ <internal:rdkafka> public method getId ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method getHost ] {
- Parameters [0] {
}
+ - Tentative return [ string ]
}
Method [ <internal:rdkafka> public method getPort ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
}
}
@@ -1341,35 +1578,46 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Properties [0] {
}
- - Methods [5] {
+ - Methods [6] {
+ Method [ <internal:rdkafka, ctor> private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
Method [ <internal:rdkafka> public method getId ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method getErr ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method getLeader ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method getReplicas ] {
- Parameters [0] {
}
+ - Tentative return [ RdKafka\Metadata\Collection ]
}
Method [ <internal:rdkafka> public method getIsrs ] {
- Parameters [0] {
}
+ - Tentative return [ RdKafka\Metadata\Collection ]
}
}
}
@@ -1388,41 +1636,53 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Properties [0] {
}
- - Methods [6] {
+ - Methods [7] {
+ Method [ <internal:rdkafka, ctor> private method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
Method [ <internal:rdkafka, prototype Countable> public method count ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, prototype Iterator> public method current ] {
- Parameters [0] {
}
+ - Tentative return [ mixed ]
}
Method [ <internal:rdkafka, prototype Iterator> public method key ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka, prototype Iterator> public method next ] {
- Parameters [0] {
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, prototype Iterator> public method rewind ] {
- Parameters [0] {
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, prototype Iterator> public method valid ] {
- Parameters [0] {
}
+ - Tentative return [ bool ]
}
}
}
@@ -1455,6 +1715,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [0] {
}
+ - Tentative return [ ?string ]
}
Method [ <internal:rdkafka> public method setTopic ] {
@@ -1462,12 +1723,14 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> string $topic_name ]
}
+ - Tentative return [ RdKafka\TopicPartition ]
}
Method [ <internal:rdkafka> public method getPartition ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method setPartition ] {
@@ -1475,12 +1738,14 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $partition ]
}
+ - Tentative return [ RdKafka\TopicPartition ]
}
Method [ <internal:rdkafka> public method getOffset ] {
- Parameters [0] {
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method setOffset ] {
@@ -1488,12 +1753,14 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $offset ]
}
+ - Tentative return [ RdKafka\TopicPartition ]
}
Method [ <internal:rdkafka> public method getErr ] {
- Parameters [0] {
}
+ - Tentative return [ ?int ]
}
}
}
@@ -1524,6 +1791,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout_ms ]
}
+ - Tentative return [ ?RdKafka\Message ]
}
}
}
@@ -1547,6 +1815,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [0] {
}
+ - Tentative return [ string ]
}
}
}
@@ -1579,6 +1848,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #1 [ <required> int $offset ]
Parameter #2 [ <required> RdKafka\Queue $queue ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method consumeCallback ] {
@@ -1588,6 +1858,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #1 [ <required> int $timeout_ms ]
Parameter #2 [ <required> callable $callback ]
}
+ - Tentative return [ int ]
}
Method [ <internal:rdkafka> public method consumeStart ] {
@@ -1596,6 +1867,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> int $partition ]
Parameter #1 [ <required> int $offset ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method consumeStop ] {
@@ -1603,6 +1875,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
- Parameters [1] {
Parameter #0 [ <required> int $partition ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method consume ] {
@@ -1611,6 +1884,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> int $partition ]
Parameter #1 [ <required> int $timeout_ms ]
}
+ - Tentative return [ ?RdKafka\Message ]
}
Method [ <internal:rdkafka> public method consumeBatch ] {
@@ -1620,6 +1894,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #1 [ <required> int $timeout_ms ]
Parameter #2 [ <required> int $batch_size ]
}
+ - Tentative return [ array ]
}
Method [ <internal:rdkafka> public method offsetStore ] {
@@ -1628,12 +1903,14 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> int $partition ]
Parameter #1 [ <required> int $offset ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, inherits RdKafka\Topic> public method getName ] {
- Parameters [0] {
}
+ - Tentative return [ string ]
}
}
}
@@ -1665,12 +1942,14 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #0 [ <required> int $partition ]
Parameter #1 [ <required> int $offset ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, inherits RdKafka\Topic> public method getName ] {
- Parameters [0] {
}
+ - Tentative return [ string ]
}
}
}
@@ -1705,6 +1984,7 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #3 [ <optional> ?string $key = null ]
Parameter #4 [ <optional> ?string $msg_opaque = null ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka> public method producev ] {
@@ -1718,12 +1998,14 @@ Extension [ <persistent> extension #95 rdkafka version 6.0.1 ] {
Parameter #5 [ <optional> ?int $timestamp_ms = null ]
Parameter #6 [ <optional> ?string $msg_opaque = null ]
}
+ - Tentative return [ void ]
}
Method [ <internal:rdkafka, inherits RdKafka\Topic> public method getName ] {
- Parameters [0] {
}
+ - Tentative return [ string ]
}
}
}
diff --git a/php-pecl-rdkafka6.spec b/php-pecl-rdkafka6.spec
index c221a1f..d52df33 100644
--- a/php-pecl-rdkafka6.spec
+++ b/php-pecl-rdkafka6.spec
@@ -1,28 +1,43 @@
# remirepo/fedora spec file for php-pecl-rdkafka6
#
-# Copyright (c) 2015-2022 Remi Collet
-# License: CC-BY-SA
+# Copyright (c) 2015-2024 Remi Collet
+# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
+
+# use library installed in /opt, change to use system library
+%bcond_without move_to_opt
+
+# run test suite, change to skip it
+%bcond_without tests
+
%if 0%{?scl:1}
-%global sub_prefix %{scl_prefix}
-%scl_package php-pecl-rdkafka
+%scl_package php-pecl-rdkafka6
%endif
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global pecl_name rdkafka
-%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
%global ini_name 40-%{pecl_name}.ini
+%if %{with move_to_opt}
+# Disable RPATH check
+%global __arch_install_post /bin/true
+%global __brp_check_rpaths /bin/true
+
+%global buildver %(PKG_CONFIG_PATH=/opt/%{?vendeur:%{vendeur}/}librdkafka/%{_lib}/pkgconfig pkg-config --silence-errors --modversion rdkafka 2>/dev/null || echo 65536)
+%else
%global buildver %(pkg-config --silence-errors --modversion rdkafka 2>/dev/null || echo 65536)
+%endif
-%global upstream_version 6.0.1
+%global upstream_version 6.0.5
#global upstream_prever RC2
+%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
+%global _configure ../%{sources}/configure
Summary: Kafka client based on librdkafka
-Name: %{?sub_prefix}php-pecl-%{pecl_name}6
+Name: %{?scl_prefix}php-pecl-%{pecl_name}6
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: MIT
@@ -31,23 +46,22 @@ Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upst
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
-BuildRequires: librdkafka1php-devel >= 1.6
+%if %{with move_to_opt}
+BuildRequires: %{?vendeur:%{vendeur}-}librdkafka-devel >= 2.2
+Requires: %{?vendeur:%{vendeur}-}librdkafka%{?_isa} >= %{buildver}
+%else
+BuildRequires: librdkafka-devel >= 1.4
+%endif
BuildRequires: %{?scl_prefix}php-devel >= 7.0
BuildRequires: %{?scl_prefix}php-pear
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
-%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
-Requires: librdkafka1php%{?_isa} >= %{buildver}
Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
-%if "%{?scl_prefix}" != "%{?sub_prefix}"
-Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
-Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
-%endif
%if 0%{?fedora} >= 36 || 0%{?rhel} >= 9 || "%{php_version}" >= "8.1"
Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 5
@@ -64,17 +78,8 @@ 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}
-%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
-# Other third party repo stuff
-%if "%{php_version}" > "7.4"
-Obsoletes: php74-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "8.0"
-Obsoletes: php80-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "8.1"
-Obsoletes: php81-pecl-%{pecl_name} <= %{version}
-%endif
+%if %{with move_to_opt}
+%global __requires_exclude_from ^%{_libdir}/.*$
%endif
@@ -86,14 +91,13 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -c
-mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS
# Don't install tests
sed -e 's/role="test"/role="src"/' \
- %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \
+ -e '/LICENSE/s/role="doc"/role="src"/' \
-i package.xml
-cd NTS
+cd %{sources}
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_RDKAFKA_VERSION/{s/.* "//;s/".*$//;p}' php_rdkafka.h)
if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
@@ -102,9 +106,10 @@ if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
fi
cd ..
+mkdir NTS
%if %{with_zts}
# Duplicate source tree for NTS / ZTS build
-cp -pr NTS ZTS
+mkdir ZTS
%endif
# Create configuration file
@@ -117,27 +122,47 @@ EOF
%build
%{?dtsenable}
-cd NTS
-%{_bindir}/phpize
+%if %{with move_to_opt}
+# not yet used
+export PKG_CONFIG_PATH=/opt/%{?vendeur:%{vendeur}/}librdkafka/%{_lib}/pkgconfig
+%endif
+
+cd %{sources}
+%{__phpize}
+[ -f Makefile.global ] && GLOBAL=Makefile.global || GLOBAL=build/Makefile.global
+sed -e 's/INSTALL_ROOT/DESTDIR/' -i $GLOBAL
+
+cd ../NTS
%configure \
- --with-php-config=%{_bindir}/php-config \
- --with-rdkafka
-make %{?_smp_mflags}
+ --with-php-config=%{__phpconfig} \
+ --with-libdir=%{_lib} \
+%if %{with move_to_opt}
+ --with-rdkafka=/opt/%{?vendeur:%{vendeur}/}librdkafka
+%else
+ --with-rdkafka
+%endif
+
+%make_build
%if %{with_zts}
cd ../ZTS
-%{_bindir}/zts-phpize
%configure \
- --with-php-config=%{_bindir}/zts-php-config \
- --with-rdkafka
-make %{?_smp_mflags}
+ --with-php-config=%{__ztsphpconfig} \
+ --with-libdir=%{_lib} \
+%if %{with move_to_opt}
+ --with-rdkafka=/opt/%{?vendeur:%{vendeur}/}librdkafka
+%else
+ --with-rdkafka
+%endif
+
+%make_build
%endif
%install
%{?dtsenable}
-make -C NTS install INSTALL_ROOT=%{buildroot}
+%make_install -C NTS
# install config file
install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
@@ -146,61 +171,41 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
%if %{with_zts}
-make -C ZTS install INSTALL_ROOT=%{buildroot}
+%make_install -C ZTS
install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif
# Documentation
for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//')
-do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
+do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done
-%if 0%{?fedora} < 24 && 0%{?rhel} < 8
-# when pear installed alone, after us
-%triggerin -- %{?scl_prefix}php-pear
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-fi
-
-# posttrans as pear can be installed after us
-%posttrans
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-fi
-
-%postun
-if [ $1 -eq 0 -a -x %{__pecl} ] ; then
- %{pecl_uninstall} %{pecl_name} >/dev/null || :
-fi
-%endif
-
-
%check
-cd NTS
: Minimal load test for NTS extension
%{__php} --no-php-ini \
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
--modules | grep '^%{pecl_name}$'
%if %{with_zts}
-cd ../ZTS
: Minimal load test for ZTS extension
%{__ztsphp} --no-php-ini \
--define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
--modules | grep '^%{pecl_name}$'
%endif
+%if %{with tests}
: Upstream test suite for NTS extension
-cd ../NTS
-TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
+cd %{sources}
+TEST_PHP_ARGS="-n -d extension=$PWD/../NTS/modules/%{pecl_name}.so" \
REPORT_EXIT_STATUS=1 \
%{__php} -n run-tests.php -P -q --show-diff
+%endif
%files
-%{?_licensedir:%license NTS/LICENSE}
+%license %{sources}/LICENSE
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml
@@ -214,6 +219,33 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Mon Nov 4 2024 Remi Collet <remi@remirepo.net> - 6.0.5-1
+- update to 6.0.5
+
+* Fri Oct 25 2024 Remi Collet <remi@remirepo.net> - 6.0.4-2
+- add upstream patch for old PHP versions
+
+* Fri Oct 25 2024 Remi Collet <remi@remirepo.net> - 6.0.4-1
+- update to 6.0.4
+- open https://github.com/arnaud-lb/php-rdkafka/issues/562
+ build broken with PHP 7.2 and older
+
+* Wed Aug 30 2023 Remi Collet <remi@remirepo.net> - 6.0.3-4
+- rebuild for PHP 8.3.0RC1
+
+* Wed Jul 12 2023 Remi Collet <remi@remirepo.net> - 6.0.3-3
+- build out of sources tree
+
+* Thu Jan 19 2023 Remi Collet <remi@remirepo.net> - 6.0.3-2
+- rebuild using remi-librdkafka 2.0.1
+
+* Mon Jul 4 2022 Remi Collet <remi@remirepo.net> - 6.0.3-1
+- update to 6.0.3 (no change)
+- rebuild with librdkafka 1.9.0
+
+* Mon Jun 13 2022 Remi Collet <remi@remirepo.net> - 6.0.2-1
+- update to 6.0.2
+
* Tue Feb 15 2022 Remi Collet <remi@remirepo.net> - 6.0.1-1
- update to 6.0.1