From 5f766c37291c363b9b747a7ce1b5bb316fdac73c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 9 Sep 2016 14:07:16 +0200 Subject: php-pecl-rdkafka: 1.0.0 (php 5) and 2.0.0 (php 7) --- REFLECTION | 632 +++++++++++++++++------ REFLECTION-PHP7 | 1200 ++++++++++++++++++++++++++++++++++++++++++++ php-pecl-rdkafka-php7.spec | 220 ++++++++ php-pecl-rdkafka.spec | 22 +- 4 files changed, 1918 insertions(+), 156 deletions(-) create mode 100644 REFLECTION-PHP7 create mode 100644 php-pecl-rdkafka-php7.spec diff --git a/REFLECTION b/REFLECTION index de6ccf5..9333932 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,13 +1,14 @@ -Extension [ extension #151 rdkafka version 0.9.1 ] { +Extension [ extension #64 rdkafka version 1.0.0 ] { - - Constants [48] { + - Constants [88] { Constant [ integer RD_KAFKA_CONSUMER ] { 1 } Constant [ integer RD_KAFKA_OFFSET_BEGINNING ] { -2 } Constant [ integer RD_KAFKA_OFFSET_END ] { -1 } Constant [ integer RD_KAFKA_OFFSET_STORED ] { -1000 } Constant [ integer RD_KAFKA_PARTITION_UA ] { -1 } Constant [ integer RD_KAFKA_PRODUCER ] { 0 } - Constant [ integer RD_KAFKA_VERSION ] { 590079 } + Constant [ integer RD_KAFKA_VERSION ] { 590335 } + Constant [ integer RD_KAFKA_BUILD_VERSION ] { 590335 } Constant [ integer RD_KAFKA_RESP_ERR__BEGIN ] { -200 } Constant [ integer RD_KAFKA_RESP_ERR__BAD_MSG ] { -199 } Constant [ integer RD_KAFKA_RESP_ERR__BAD_COMPRESSION ] { -198 } @@ -26,6 +27,22 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { Constant [ integer RD_KAFKA_RESP_ERR__TIMED_OUT ] { -185 } Constant [ integer RD_KAFKA_RESP_ERR__QUEUE_FULL ] { -184 } Constant [ integer RD_KAFKA_RESP_ERR__ISR_INSUFF ] { -183 } + Constant [ integer RD_KAFKA_RESP_ERR__NODE_UPDATE ] { -182 } + Constant [ integer RD_KAFKA_RESP_ERR__SSL ] { -181 } + Constant [ integer RD_KAFKA_RESP_ERR__WAIT_COORD ] { -180 } + Constant [ integer RD_KAFKA_RESP_ERR__UNKNOWN_GROUP ] { -179 } + Constant [ integer RD_KAFKA_RESP_ERR__IN_PROGRESS ] { -178 } + Constant [ integer RD_KAFKA_RESP_ERR__PREV_IN_PROGRESS ] { -177 } + Constant [ integer RD_KAFKA_RESP_ERR__EXISTING_SUBSCRIPTION ] { -176 } + Constant [ integer RD_KAFKA_RESP_ERR__ASSIGN_PARTITIONS ] { -175 } + Constant [ integer RD_KAFKA_RESP_ERR__REVOKE_PARTITIONS ] { -174 } + Constant [ integer RD_KAFKA_RESP_ERR__CONFLICT ] { -173 } + Constant [ integer RD_KAFKA_RESP_ERR__STATE ] { -172 } + Constant [ integer RD_KAFKA_RESP_ERR__UNKNOWN_PROTOCOL ] { -171 } + Constant [ integer RD_KAFKA_RESP_ERR__NOT_IMPLEMENTED ] { -170 } + Constant [ integer RD_KAFKA_RESP_ERR__AUTHENTICATION ] { -169 } + Constant [ integer RD_KAFKA_RESP_ERR__NO_OFFSET ] { -168 } + Constant [ integer RD_KAFKA_RESP_ERR__OUTDATED ] { -167 } Constant [ integer RD_KAFKA_RESP_ERR__END ] { -100 } Constant [ integer RD_KAFKA_RESP_ERR_UNKNOWN ] { -1 } Constant [ integer RD_KAFKA_RESP_ERR_NO_ERROR ] { 0 } @@ -41,6 +58,29 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { Constant [ integer RD_KAFKA_RESP_ERR_MSG_SIZE_TOO_LARGE ] { 10 } Constant [ integer RD_KAFKA_RESP_ERR_STALE_CTRL_EPOCH ] { 11 } Constant [ integer RD_KAFKA_RESP_ERR_OFFSET_METADATA_TOO_LARGE ] { 12 } + Constant [ integer RD_KAFKA_RESP_ERR_NETWORK_EXCEPTION ] { 13 } + Constant [ integer RD_KAFKA_RESP_ERR_GROUP_LOAD_IN_PROGRESS ] { 14 } + Constant [ integer RD_KAFKA_RESP_ERR_GROUP_COORDINATOR_NOT_AVAILABLE ] { 15 } + Constant [ integer RD_KAFKA_RESP_ERR_NOT_COORDINATOR_FOR_GROUP ] { 16 } + Constant [ integer RD_KAFKA_RESP_ERR_TOPIC_EXCEPTION ] { 17 } + Constant [ integer RD_KAFKA_RESP_ERR_RECORD_LIST_TOO_LARGE ] { 18 } + Constant [ integer RD_KAFKA_RESP_ERR_NOT_ENOUGH_REPLICAS ] { 19 } + Constant [ integer RD_KAFKA_RESP_ERR_NOT_ENOUGH_REPLICAS_AFTER_APPEND ] { 20 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_REQUIRED_ACKS ] { 21 } + Constant [ integer RD_KAFKA_RESP_ERR_ILLEGAL_GENERATION ] { 22 } + Constant [ integer RD_KAFKA_RESP_ERR_INCONSISTENT_GROUP_PROTOCOL ] { 23 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_GROUP_ID ] { 24 } + Constant [ integer RD_KAFKA_RESP_ERR_UNKNOWN_MEMBER_ID ] { 25 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_SESSION_TIMEOUT ] { 26 } + Constant [ integer RD_KAFKA_RESP_ERR_REBALANCE_IN_PROGRESS ] { 27 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_COMMIT_OFFSET_SIZE ] { 28 } + Constant [ integer RD_KAFKA_RESP_ERR_TOPIC_AUTHORIZATION_FAILED ] { 29 } + Constant [ integer RD_KAFKA_RESP_ERR_GROUP_AUTHORIZATION_FAILED ] { 30 } + Constant [ integer RD_KAFKA_RESP_ERR_CLUSTER_AUTHORIZATION_FAILED ] { 31 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_TIMESTAMP ] { 32 } + Constant [ integer RD_KAFKA_RESP_ERR_UNSUPPORTED_SASL_MECHANISM ] { 33 } + Constant [ integer RD_KAFKA_RESP_ERR_ILLEGAL_SASL_STATE ] { 34 } + Constant [ integer RD_KAFKA_RESP_ERR_UNSUPPORTED_VERSION ] { 35 } Constant [ integer RD_KAFKA_CONF_UNKNOWN ] { -2 } Constant [ integer RD_KAFKA_CONF_INVALID ] { -1 } Constant [ integer RD_KAFKA_CONF_OK ] { 0 } @@ -52,6 +92,11 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } - Functions { + Function [ function rd_kafka_get_err_descs ] { + + - Parameters [0] { + } + } Function [ function rd_kafka_err2str ] { - Parameters [1] { @@ -66,13 +111,13 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } Function [ function rd_kafka_errno ] { - - Parameters [1] { - Parameter #0 [ $errnox ] + - Parameters [0] { } } Function [ function rd_kafka_offset_tail ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $cnt ] } } Function [ function rd_kafka_thread_cnt ] { @@ -82,7 +127,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - - Classes [16] { + - Classes [19] { Class [ abstract class RdKafka ] { - Constants [0] { @@ -94,10 +139,12 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Static methods [0] { } - - Properties [0] { + - Properties [2] { + Property [ private $error_cb ] + Property [ private $dr_cb ] } - - Methods [8] { + - Methods [11] { Method [ public method addBrokers ] { - Parameters [1] { @@ -105,7 +152,22 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Method [ public method metadata ] { + Method [ public method getMetadata ] { + + - Parameters [3] { + Parameter #0 [ $all_topics ] + Parameter #1 [ $only_topic ] + Parameter #2 [ $timeout_ms ] + } + } + + Method [ public method getOutQLen ] { + + - Parameters [0] { + } + } + + Method [ public method metadata ] { - Parameters [3] { Parameter #0 [ $all_topics ] @@ -135,7 +197,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Method [ public method outqLen ] { + Method [ public method outqLen ] { - Parameters [0] { } @@ -154,6 +216,12 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { Parameter #0 [ $logger ] } } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } } } @@ -171,12 +239,11 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Properties [0] { } - - Methods [9] { + - Methods [12] { Method [ public method __construct ] { - - Parameters [2] { + - Parameters [1] { Parameter #0 [ $conf ] - Parameter #1 [ &$errstr ] } } @@ -187,7 +254,22 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Method [ public method metadata ] { + Method [ public method getMetadata ] { + + - Parameters [3] { + Parameter #0 [ $all_topics ] + Parameter #1 [ $only_topic ] + Parameter #2 [ $timeout_ms ] + } + } + + Method [ public method getOutQLen ] { + + - Parameters [0] { + } + } + + Method [ public method metadata ] { - Parameters [3] { Parameter #0 [ $all_topics ] @@ -217,7 +299,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Method [ public method outqLen ] { + Method [ public method outqLen ] { - Parameters [0] { } @@ -236,6 +318,12 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { Parameter #0 [ $logger ] } } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } } } @@ -253,12 +341,11 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Properties [0] { } - - Methods [9] { + - Methods [12] { Method [ public method __construct ] { - - Parameters [2] { + - Parameters [1] { Parameter #0 [ $conf ] - Parameter #1 [ &$errstr ] } } @@ -269,7 +356,22 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Method [ public method metadata ] { + Method [ public method getMetadata ] { + + - Parameters [3] { + Parameter #0 [ $all_topics ] + Parameter #1 [ $only_topic ] + Parameter #2 [ $timeout_ms ] + } + } + + Method [ public method getOutQLen ] { + + - Parameters [0] { + } + } + + Method [ public method metadata ] { - Parameters [3] { Parameter #0 [ $all_topics ] @@ -299,7 +401,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Method [ public method outqLen ] { + Method [ public method outqLen ] { - Parameters [0] { } @@ -318,6 +420,69 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { Parameter #0 [ $logger ] } } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\Exception extends Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } } } @@ -335,7 +500,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Properties [0] { } - - Methods [4] { + - Methods [7] { Method [ public method __construct ] { - Parameters [0] { @@ -350,10 +515,16 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { Method [ public method set ] { - - Parameters [3] { + - Parameters [2] { Parameter #0 [ $name ] Parameter #1 [ $value ] - Parameter #2 [ $errstr ] + } + } + + Method [ public method setDefaultTopicConf ] { + + - Parameters [1] { + Parameter #0 [ $topic_conf ] } } @@ -363,6 +534,20 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { Parameter #0 [ $callback ] } } + + Method [ public method setDrMsgCb ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method setRebalanceCb ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } } } @@ -408,7 +593,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Class [ abstract class RdKafka\Topic ] { + Class [ class RdKafka\KafkaConsumer ] { - Constants [0] { } @@ -419,80 +604,120 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Static methods [0] { } - - Properties [0] { + - Properties [3] { + Property [ private $error_cb ] + Property [ private $rebalance_cb ] + Property [ private $dr_msg_cb ] } - - Methods [1] { - Method [ public method getName ] { + - Methods [12] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $conf ] + } + } + + Method [ public method assign ] { + + - Parameters [1] { + Parameter #0 [ $topic_partitions ] + } + } + + Method [ public method getAssignment ] { - Parameters [0] { } } - } - } - Class [ class RdKafka\ConsumerTopic extends RdKafka\Topic ] { + Method [ public method commit ] { - - Constants [0] { - } + - Parameters [1] { + Parameter #0 [ $message_or_offsets ] + } + } - - Static properties [0] { - } + Method [ public method commitAsync ] { - - Static methods [0] { - } + - Parameters [1] { + Parameter #0 [ $message_or_offsets ] + } + } - - Properties [0] { - } + Method [ public method consume ] { - - Methods [7] { - Method [ private method __construct ] { + - Parameters [1] { + Parameter #0 [ $timeout_ms ] + } + } - - Parameters [0] { + Method [ public method subscribe ] { + + - Parameters [1] { + Parameter #0 [ $topics ] } } - Method [ public method consumeQueueStart ] { + Method [ public method getSubscription ] { - - Parameters [3] { - Parameter #0 [ $partition ] - Parameter #1 [ $offset ] - Parameter #2 [ $queue ] + - Parameters [0] { } } - Method [ public method consumeStart ] { + Method [ public method unsubscribe ] { - - Parameters [2] { - Parameter #0 [ $partition ] - Parameter #1 [ $offset ] + - Parameters [0] { } } - Method [ public method consumeStop ] { + Method [ public method getMetadata ] { - - Parameters [1] { - Parameter #0 [ $partition ] + - Parameters [3] { + Parameter #0 [ $all_topics ] + Parameter #1 [ $only_topic ] + Parameter #2 [ $timeout_ms ] } } - Method [ public method consume ] { + Method [ public method newTopic ] { - Parameters [2] { - Parameter #0 [ $partition ] - Parameter #1 [ $timeout_ms ] + Parameter #0 [ $topic_name ] + Parameter #1 [ $topic_conf ] } } - Method [ public method offsetStore ] { + Method [ final public method __destruct ] { - - Parameters [2] { - Parameter #0 [ $partition ] - Parameter #1 [ $offset ] + - Parameters [0] { } } + } + } - Method [ public method getName ] { + Class [ class RdKafka\Message ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [6] { + Property [ public $err ] + Property [ public $topic_name ] + Property [ public $partition ] + Property [ public $payload ] + Property [ public $key ] + Property [ public $offset ] + } + + - Methods [1] { + Method [ public method errstr ] { - Parameters [0] { } @@ -500,7 +725,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Class [ class RdKafka\ProducerTopic extends RdKafka\Topic ] { + Class [ class RdKafka\Metadata ] { - Constants [0] { } @@ -514,24 +739,26 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Properties [0] { } - - Methods [3] { - Method [ private method __construct ] { + - Methods [4] { + Method [ public method getOrigBrokerId ] { - Parameters [0] { } } - Method [ public method produce ] { + Method [ public method getOrigBrokerName ] { - - Parameters [4] { - Parameter #0 [ $partition ] - Parameter #1 [ $msgflags ] - Parameter #2 [ $payload ] - Parameter #3 [ $key ] + - Parameters [0] { } } - Method [ public method getName ] { + Method [ public method getBrokers ] { + + - Parameters [0] { + } + } + + Method [ public method getTopics ] { - Parameters [0] { } @@ -539,7 +766,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Class [ class RdKafka\Message ] { + Class [ class RdKafka\Metadata\Topic ] { - Constants [0] { } @@ -550,17 +777,23 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Static methods [0] { } - - Properties [6] { - Property [ public $err ] - Property [ public $topic_name ] - Property [ public $partition ] - Property [ public $payload ] - Property [ public $key ] - Property [ public $offset ] + - Properties [0] { } - - Methods [1] { - Method [ public method errstr ] { + - Methods [3] { + Method [ public method getTopic ] { + + - Parameters [0] { + } + } + + Method [ public method getPartitions ] { + + - Parameters [0] { + } + } + + Method [ public method getErr ] { - Parameters [0] { } @@ -568,7 +801,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Class [ class RdKafka\Queue ] { + Class [ class RdKafka\Metadata\Broker ] { - Constants [0] { } @@ -582,23 +815,28 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Properties [0] { } - - Methods [2] { - Method [ private method __construct ] { + - Methods [3] { + Method [ public method getId ] { - Parameters [0] { } } - Method [ public method consume ] { + Method [ public method getHost ] { - - Parameters [1] { - Parameter #0 [ $timeout_ms ] + - Parameters [0] { + } + } + + Method [ public method getPort ] { + + - Parameters [0] { } } } } - Class [ class RdKafka\Exception extends Exception ] { + Class [ class RdKafka\Metadata\Partition ] { - Constants [0] { } @@ -609,53 +847,43 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Static methods [0] { } - - Properties [4] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] + - Properties [0] { } - - Methods [10] { - Method [ method __construct ] { + - Methods [5] { + Method [ public method getId ] { - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + - Parameters [0] { } } - Method [ public method __wakeup ] { - } - - Method [ final public method getMessage ] { - } + Method [ public method getErr ] { - Method [ final public method getCode ] { + - Parameters [0] { + } } - Method [ final public method getFile ] { - } + Method [ public method getLeader ] { - Method [ final public method getLine ] { + - Parameters [0] { + } } - Method [ final public method getTrace ] { - } + Method [ public method getReplicas ] { - Method [ final public method getPrevious ] { + - Parameters [0] { + } } - Method [ final public method getTraceAsString ] { - } + Method [ public method getIsrs ] { - Method [ public method __toString ] { + - Parameters [0] { + } } } } - Class [ class RdKafka\Metadata ] { + Class [ class RdKafka\Metadata\Collection implements Countable, Iterator, Traversable ] { - Constants [0] { } @@ -669,26 +897,38 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Properties [0] { } - - Methods [4] { - Method [ public method getOrigBrokerId ] { + - Methods [6] { + Method [ public method count ] { - Parameters [0] { } } - Method [ public method getOrigBrokerName ] { + Method [ public method current ] { - Parameters [0] { } } - Method [ public method getBrokers ] { + Method [ public method key ] { - Parameters [0] { } } - Method [ public method getTopics ] { + Method [ public method next ] { + + - Parameters [0] { + } + } + + Method [ public method rewind ] { + + - Parameters [0] { + } + } + + Method [ public method valid ] { - Parameters [0] { } @@ -696,7 +936,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Class [ class RdKafka\Metadata\Topic ] { + Class [ class RdKafka\TopicPartition ] { - Constants [0] { } @@ -710,28 +950,55 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Properties [0] { } - - Methods [3] { + - Methods [7] { + Method [ public method __construct ] { + + - Parameters [0] { + } + } + Method [ public method getTopic ] { - Parameters [0] { } } - Method [ public method getPartitions ] { + Method [ public method setTopic ] { + + - Parameters [1] { + Parameter #0 [ $topic_name ] + } + } + + Method [ public method getPartition ] { - Parameters [0] { } } - Method [ public method getErr ] { + Method [ public method setPartition ] { + + - Parameters [1] { + Parameter #0 [ $partition ] + } + } + + Method [ public method getOffset ] { - Parameters [0] { } } + + Method [ public method setOffset ] { + + - Parameters [1] { + Parameter #0 [ $offset ] + } + } } } - Class [ class RdKafka\Metadata\Broker ] { + Class [ class RdKafka\Queue ] { - Constants [0] { } @@ -745,20 +1012,38 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Properties [0] { } - - Methods [3] { - Method [ public method getId ] { + - Methods [2] { + Method [ private method __construct ] { - Parameters [0] { } } - Method [ public method getHost ] { + Method [ public method consume ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $timeout_ms ] } } + } + } - Method [ public method getPort ] { + Class [ abstract class RdKafka\Topic ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [1] { + Method [ public method getName ] { - Parameters [0] { } @@ -766,7 +1051,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Class [ class RdKafka\Metadata\Partition ] { + Class [ class RdKafka\ConsumerTopic extends RdKafka\Topic ] { - Constants [0] { } @@ -780,32 +1065,54 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Properties [0] { } - - Methods [5] { - Method [ public method getId ] { + - Methods [7] { + Method [ private method __construct ] { - Parameters [0] { } } - Method [ public method getErr ] { + Method [ public method consumeQueueStart ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ $partition ] + Parameter #1 [ $offset ] + Parameter #2 [ $queue ] } } - Method [ public method getLeader ] { + Method [ public method consumeStart ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ $partition ] + Parameter #1 [ $offset ] } } - Method [ public method getReplicas ] { + Method [ public method consumeStop ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $partition ] } } - Method [ public method getIsrs ] { + Method [ public method consume ] { + + - Parameters [2] { + Parameter #0 [ $partition ] + Parameter #1 [ $timeout_ms ] + } + } + + Method [ public method offsetStore ] { + + - Parameters [2] { + Parameter #0 [ $partition ] + Parameter #1 [ $offset ] + } + } + + Method [ public method getName ] { - Parameters [0] { } @@ -813,7 +1120,7 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { } } - Class [ class RdKafka\Metadata\Collection implements Countable, Iterator, Traversable ] { + Class [ class RdKafka\KafkaConsumerTopic extends RdKafka\Topic ] { - Constants [0] { } @@ -827,38 +1134,61 @@ Extension [ extension #151 rdkafka version 0.9.1 ] { - Properties [0] { } - - Methods [6] { - Method [ public method count ] { + - Methods [3] { + Method [ private method __construct ] { - Parameters [0] { } } - Method [ public method current ] { + Method [ public method offsetStore ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ $partition ] + Parameter #1 [ $offset ] } } - Method [ public method key ] { + Method [ public method getName ] { - Parameters [0] { } } + } + } - Method [ public method next ] { + Class [ class RdKafka\ProducerTopic extends RdKafka\Topic ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [3] { + Method [ private method __construct ] { - Parameters [0] { } } - Method [ public method rewind ] { + Method [ public method produce ] { - - Parameters [0] { + - Parameters [4] { + Parameter #0 [ $partition ] + Parameter #1 [ $msgflags ] + Parameter #2 [ $payload ] + Parameter #3 [ $key ] } } - Method [ public method valid ] { + Method [ public method getName ] { - Parameters [0] { } diff --git a/REFLECTION-PHP7 b/REFLECTION-PHP7 new file mode 100644 index 0000000..7cc4bf8 --- /dev/null +++ b/REFLECTION-PHP7 @@ -0,0 +1,1200 @@ +Extension [ extension #109 rdkafka version 2.0.0 ] { + + - Constants [88] { + Constant [ integer RD_KAFKA_CONSUMER ] { 1 } + Constant [ integer RD_KAFKA_OFFSET_BEGINNING ] { -2 } + Constant [ integer RD_KAFKA_OFFSET_END ] { -1 } + Constant [ integer RD_KAFKA_OFFSET_STORED ] { -1000 } + Constant [ integer RD_KAFKA_PARTITION_UA ] { -1 } + Constant [ integer RD_KAFKA_PRODUCER ] { 0 } + Constant [ integer RD_KAFKA_VERSION ] { 590335 } + Constant [ integer RD_KAFKA_BUILD_VERSION ] { 590335 } + Constant [ integer RD_KAFKA_RESP_ERR__BEGIN ] { -200 } + Constant [ integer RD_KAFKA_RESP_ERR__BAD_MSG ] { -199 } + Constant [ integer RD_KAFKA_RESP_ERR__BAD_COMPRESSION ] { -198 } + Constant [ integer RD_KAFKA_RESP_ERR__DESTROY ] { -197 } + Constant [ integer RD_KAFKA_RESP_ERR__FAIL ] { -196 } + Constant [ integer RD_KAFKA_RESP_ERR__TRANSPORT ] { -195 } + Constant [ integer RD_KAFKA_RESP_ERR__CRIT_SYS_RESOURCE ] { -194 } + Constant [ integer RD_KAFKA_RESP_ERR__RESOLVE ] { -193 } + Constant [ integer RD_KAFKA_RESP_ERR__MSG_TIMED_OUT ] { -192 } + Constant [ integer RD_KAFKA_RESP_ERR__PARTITION_EOF ] { -191 } + Constant [ integer RD_KAFKA_RESP_ERR__UNKNOWN_PARTITION ] { -190 } + Constant [ integer RD_KAFKA_RESP_ERR__FS ] { -189 } + Constant [ integer RD_KAFKA_RESP_ERR__UNKNOWN_TOPIC ] { -188 } + Constant [ integer RD_KAFKA_RESP_ERR__ALL_BROKERS_DOWN ] { -187 } + Constant [ integer RD_KAFKA_RESP_ERR__INVALID_ARG ] { -186 } + Constant [ integer RD_KAFKA_RESP_ERR__TIMED_OUT ] { -185 } + Constant [ integer RD_KAFKA_RESP_ERR__QUEUE_FULL ] { -184 } + Constant [ integer RD_KAFKA_RESP_ERR__ISR_INSUFF ] { -183 } + Constant [ integer RD_KAFKA_RESP_ERR__NODE_UPDATE ] { -182 } + Constant [ integer RD_KAFKA_RESP_ERR__SSL ] { -181 } + Constant [ integer RD_KAFKA_RESP_ERR__WAIT_COORD ] { -180 } + Constant [ integer RD_KAFKA_RESP_ERR__UNKNOWN_GROUP ] { -179 } + Constant [ integer RD_KAFKA_RESP_ERR__IN_PROGRESS ] { -178 } + Constant [ integer RD_KAFKA_RESP_ERR__PREV_IN_PROGRESS ] { -177 } + Constant [ integer RD_KAFKA_RESP_ERR__EXISTING_SUBSCRIPTION ] { -176 } + Constant [ integer RD_KAFKA_RESP_ERR__ASSIGN_PARTITIONS ] { -175 } + Constant [ integer RD_KAFKA_RESP_ERR__REVOKE_PARTITIONS ] { -174 } + Constant [ integer RD_KAFKA_RESP_ERR__CONFLICT ] { -173 } + Constant [ integer RD_KAFKA_RESP_ERR__STATE ] { -172 } + Constant [ integer RD_KAFKA_RESP_ERR__UNKNOWN_PROTOCOL ] { -171 } + Constant [ integer RD_KAFKA_RESP_ERR__NOT_IMPLEMENTED ] { -170 } + Constant [ integer RD_KAFKA_RESP_ERR__AUTHENTICATION ] { -169 } + Constant [ integer RD_KAFKA_RESP_ERR__NO_OFFSET ] { -168 } + Constant [ integer RD_KAFKA_RESP_ERR__OUTDATED ] { -167 } + Constant [ integer RD_KAFKA_RESP_ERR__END ] { -100 } + Constant [ integer RD_KAFKA_RESP_ERR_UNKNOWN ] { -1 } + Constant [ integer RD_KAFKA_RESP_ERR_NO_ERROR ] { 0 } + Constant [ integer RD_KAFKA_RESP_ERR_OFFSET_OUT_OF_RANGE ] { 1 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_MSG ] { 2 } + Constant [ integer RD_KAFKA_RESP_ERR_UNKNOWN_TOPIC_OR_PART ] { 3 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_MSG_SIZE ] { 4 } + Constant [ integer RD_KAFKA_RESP_ERR_LEADER_NOT_AVAILABLE ] { 5 } + Constant [ integer RD_KAFKA_RESP_ERR_NOT_LEADER_FOR_PARTITION ] { 6 } + Constant [ integer RD_KAFKA_RESP_ERR_REQUEST_TIMED_OUT ] { 7 } + Constant [ integer RD_KAFKA_RESP_ERR_BROKER_NOT_AVAILABLE ] { 8 } + Constant [ integer RD_KAFKA_RESP_ERR_REPLICA_NOT_AVAILABLE ] { 9 } + Constant [ integer RD_KAFKA_RESP_ERR_MSG_SIZE_TOO_LARGE ] { 10 } + Constant [ integer RD_KAFKA_RESP_ERR_STALE_CTRL_EPOCH ] { 11 } + Constant [ integer RD_KAFKA_RESP_ERR_OFFSET_METADATA_TOO_LARGE ] { 12 } + Constant [ integer RD_KAFKA_RESP_ERR_NETWORK_EXCEPTION ] { 13 } + Constant [ integer RD_KAFKA_RESP_ERR_GROUP_LOAD_IN_PROGRESS ] { 14 } + Constant [ integer RD_KAFKA_RESP_ERR_GROUP_COORDINATOR_NOT_AVAILABLE ] { 15 } + Constant [ integer RD_KAFKA_RESP_ERR_NOT_COORDINATOR_FOR_GROUP ] { 16 } + Constant [ integer RD_KAFKA_RESP_ERR_TOPIC_EXCEPTION ] { 17 } + Constant [ integer RD_KAFKA_RESP_ERR_RECORD_LIST_TOO_LARGE ] { 18 } + Constant [ integer RD_KAFKA_RESP_ERR_NOT_ENOUGH_REPLICAS ] { 19 } + Constant [ integer RD_KAFKA_RESP_ERR_NOT_ENOUGH_REPLICAS_AFTER_APPEND ] { 20 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_REQUIRED_ACKS ] { 21 } + Constant [ integer RD_KAFKA_RESP_ERR_ILLEGAL_GENERATION ] { 22 } + Constant [ integer RD_KAFKA_RESP_ERR_INCONSISTENT_GROUP_PROTOCOL ] { 23 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_GROUP_ID ] { 24 } + Constant [ integer RD_KAFKA_RESP_ERR_UNKNOWN_MEMBER_ID ] { 25 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_SESSION_TIMEOUT ] { 26 } + Constant [ integer RD_KAFKA_RESP_ERR_REBALANCE_IN_PROGRESS ] { 27 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_COMMIT_OFFSET_SIZE ] { 28 } + Constant [ integer RD_KAFKA_RESP_ERR_TOPIC_AUTHORIZATION_FAILED ] { 29 } + Constant [ integer RD_KAFKA_RESP_ERR_GROUP_AUTHORIZATION_FAILED ] { 30 } + Constant [ integer RD_KAFKA_RESP_ERR_CLUSTER_AUTHORIZATION_FAILED ] { 31 } + Constant [ integer RD_KAFKA_RESP_ERR_INVALID_TIMESTAMP ] { 32 } + Constant [ integer RD_KAFKA_RESP_ERR_UNSUPPORTED_SASL_MECHANISM ] { 33 } + Constant [ integer RD_KAFKA_RESP_ERR_ILLEGAL_SASL_STATE ] { 34 } + Constant [ integer RD_KAFKA_RESP_ERR_UNSUPPORTED_VERSION ] { 35 } + Constant [ integer RD_KAFKA_CONF_UNKNOWN ] { -2 } + Constant [ integer RD_KAFKA_CONF_INVALID ] { -1 } + Constant [ integer RD_KAFKA_CONF_OK ] { 0 } + Constant [ integer RD_KAFKA_MSG_PARTITIONER_RANDOM ] { 2 } + Constant [ integer RD_KAFKA_MSG_PARTITIONER_CONSISTENT ] { 3 } + Constant [ integer RD_KAFKA_LOG_PRINT ] { 100 } + Constant [ integer RD_KAFKA_LOG_SYSLOG ] { 101 } + Constant [ integer RD_KAFKA_LOG_SYSLOG_PRINT ] { 102 } + } + + - Functions { + Function [ function rd_kafka_get_err_descs ] { + + - Parameters [0] { + } + } + Function [ function rd_kafka_err2str ] { + + - Parameters [1] { + Parameter #0 [ $err ] + } + } + Function [ function rd_kafka_errno2err ] { + + - Parameters [1] { + Parameter #0 [ $errnox ] + } + } + Function [ function rd_kafka_errno ] { + + - Parameters [0] { + } + } + Function [ function rd_kafka_offset_tail ] { + + - Parameters [1] { + Parameter #0 [ $cnt ] + } + } + Function [ function rd_kafka_thread_cnt ] { + + - Parameters [0] { + } + } + } + + - Classes [19] { + Class [ abstract class RdKafka ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [2] { + Property [ private $error_cb ] + Property [ private $dr_cb ] + } + + - Methods [11] { + Method [ public method addBrokers ] { + + - Parameters [1] { + Parameter #0 [ $broker_list ] + } + } + + Method [ public method getMetadata ] { + + - Parameters [3] { + Parameter #0 [ $all_topics ] + Parameter #1 [ $only_topic ] + Parameter #2 [ $timeout_ms ] + } + } + + Method [ public method getOutQLen ] { + + - Parameters [0] { + } + } + + Method [ public method metadata ] { + + - Parameters [3] { + Parameter #0 [ $all_topics ] + Parameter #1 [ $only_topic ] + Parameter #2 [ $timeout_ms ] + } + } + + Method [ public method setLogLevel ] { + + - Parameters [1] { + Parameter #0 [ $level ] + } + } + + Method [ public method newQueue ] { + + - Parameters [0] { + } + } + + Method [ public method newTopic ] { + + - Parameters [2] { + Parameter #0 [ $topic_name ] + Parameter #1 [ $topic_conf ] + } + } + + Method [ public method outqLen ] { + + - Parameters [0] { + } + } + + Method [ public method poll ] { + + - Parameters [1] { + Parameter #0 [ $timeout_ms ] + } + } + + Method [ public method setLogger ] { + + - Parameters [1] { + Parameter #0 [ $logger ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\Consumer extends RdKafka ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [12] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $conf ] + } + } + + Method [ public method addBrokers ] { + + - Parameters [1] { + Parameter #0 [ $broker_list ] + } + } + + Method [ public method getMetadata ] { + + - Parameters [3] { + Parameter #0 [ $all_topics ] + Parameter #1 [ $only_topic ] + Parameter #2 [ $timeout_ms ] + } + } + + Method [ public method getOutQLen ] { + + - Parameters [0] { + } + } + + Method [ public method metadata ] { + + - Parameters [3] { + Parameter #0 [ $all_topics ] + Parameter #1 [ $only_topic ] + Parameter #2 [ $timeout_ms ] + } + } + + Method [ public method setLogLevel ] { + + - Parameters [1] { + Parameter #0 [ $level ] + } + } + + Method [ public method newQueue ] { + + - Parameters [0] { + } + } + + Method [ public method newTopic ] { + + - Parameters [2] { + Parameter #0 [ $topic_name ] + Parameter #1 [ $topic_conf ] + } + } + + Method [ public method outqLen ] { + + - Parameters [0] { + } + } + + Method [ public method poll ] { + + - Parameters [1] { + Parameter #0 [ $timeout_ms ] + } + } + + Method [ public method setLogger ] { + + - Parameters [1] { + Parameter #0 [ $logger ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\Producer extends RdKafka ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [12] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $conf ] + } + } + + Method [ public method addBrokers ] { + + - Parameters [1] { + Parameter #0 [ $broker_list ] + } + } + + Method [ public method getMetadata ] { + + - Parameters [3] { + Parameter #0 [ $all_topics ] + Parameter #1 [ $only_topic ] + Parameter #2 [ $timeout_ms ] + } + } + + Method [ public method getOutQLen ] { + + - Parameters [0] { + } + } + + Method [ public method metadata ] { + + - Parameters [3] { + Parameter #0 [ $all_topics ] + Parameter #1 [ $only_topic ] + Parameter #2 [ $timeout_ms ] + } + } + + Method [ public method setLogLevel ] { + + - Parameters [1] { + Parameter #0 [ $level ] + } + } + + Method [ public method newQueue ] { + + - Parameters [0] { + } + } + + Method [ public method newTopic ] { + + - Parameters [2] { + Parameter #0 [ $topic_name ] + Parameter #1 [ $topic_conf ] + } + } + + Method [ public method outqLen ] { + + - Parameters [0] { + } + } + + Method [ public method poll ] { + + - Parameters [1] { + Parameter #0 [ $timeout_ms ] + } + } + + Method [ public method setLogger ] { + + - Parameters [1] { + Parameter #0 [ $logger ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\Exception extends Exception implements Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class RdKafka\Conf ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [7] { + Method [ public method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method dump ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $value ] + } + } + + Method [ public method setDefaultTopicConf ] { + + - Parameters [1] { + Parameter #0 [ $topic_conf ] + } + } + + Method [ public method setErrorCb ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method setDrMsgCb ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method setRebalanceCb ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + } + } + + Class [ class RdKafka\TopicConf ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [4] { + Method [ public method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method dump ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [0] { + } + } + + Method [ public method setPartitioner ] { + + - Parameters [1] { + Parameter #0 [ $partitioner ] + } + } + } + } + + Class [ class RdKafka\KafkaConsumer ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [3] { + Property [ private $error_cb ] + Property [ private $rebalance_cb ] + Property [ private $dr_msg_cb ] + } + + - Methods [12] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $conf ] + } + } + + Method [ public method assign ] { + + - Parameters [1] { + Parameter #0 [ $topic_partitions ] + } + } + + Method [ public method getAssignment ] { + + - Parameters [0] { + } + } + + Method [ public method commit ] { + + - Parameters [1] { + Parameter #0 [ $message_or_offsets ] + } + } + + Method [ public method commitAsync ] { + + - Parameters [1] { + Parameter #0 [ $message_or_offsets ] + } + } + + Method [ public method consume ] { + + - Parameters [1] { + Parameter #0 [ $timeout_ms ] + } + } + + Method [ public method subscribe ] { + + - Parameters [1] { + Parameter #0 [ $topics ] + } + } + + Method [ public method getSubscription ] { + + - Parameters [0] { + } + } + + Method [ public method unsubscribe ] { + + - Parameters [0] { + } + } + + Method [ public method getMetadata ] { + + - Parameters [3] { + Parameter #0 [ $all_topics ] + Parameter #1 [ $only_topic ] + Parameter #2 [ $timeout_ms ] + } + } + + Method [ public method newTopic ] { + + - Parameters [2] { + Parameter #0 [ $topic_name ] + Parameter #1 [ $topic_conf ] + } + } + + Method [ final public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\Message ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [6] { + Property [ public $err ] + Property [ public $topic_name ] + Property [ public $partition ] + Property [ public $payload ] + Property [ public $key ] + Property [ public $offset ] + } + + - Methods [1] { + Method [ public method errstr ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\Metadata ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [4] { + Method [ public method getOrigBrokerId ] { + + - Parameters [0] { + } + } + + Method [ public method getOrigBrokerName ] { + + - Parameters [0] { + } + } + + Method [ public method getBrokers ] { + + - Parameters [0] { + } + } + + Method [ public method getTopics ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\Metadata\Topic ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [3] { + Method [ public method getTopic ] { + + - Parameters [0] { + } + } + + Method [ public method getPartitions ] { + + - Parameters [0] { + } + } + + Method [ public method getErr ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\Metadata\Broker ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [3] { + Method [ public method getId ] { + + - Parameters [0] { + } + } + + Method [ public method getHost ] { + + - Parameters [0] { + } + } + + Method [ public method getPort ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\Metadata\Partition ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [5] { + Method [ public method getId ] { + + - Parameters [0] { + } + } + + Method [ public method getErr ] { + + - Parameters [0] { + } + } + + Method [ public method getLeader ] { + + - Parameters [0] { + } + } + + Method [ public method getReplicas ] { + + - Parameters [0] { + } + } + + Method [ public method getIsrs ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\Metadata\Collection implements Countable, Iterator, Traversable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [6] { + Method [ public method count ] { + + - Parameters [0] { + } + } + + Method [ public method current ] { + + - Parameters [0] { + } + } + + Method [ public method key ] { + + - Parameters [0] { + } + } + + Method [ public method next ] { + + - Parameters [0] { + } + } + + Method [ public method rewind ] { + + - Parameters [0] { + } + } + + Method [ public method valid ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\TopicPartition ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [7] { + Method [ public method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method getTopic ] { + + - Parameters [0] { + } + } + + Method [ public method setTopic ] { + + - Parameters [1] { + Parameter #0 [ $topic_name ] + } + } + + Method [ public method getPartition ] { + + - Parameters [0] { + } + } + + Method [ public method setPartition ] { + + - Parameters [1] { + Parameter #0 [ $partition ] + } + } + + Method [ public method getOffset ] { + + - Parameters [0] { + } + } + + Method [ public method setOffset ] { + + - Parameters [1] { + Parameter #0 [ $offset ] + } + } + } + } + + Class [ class RdKafka\Queue ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [2] { + Method [ private method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method consume ] { + + - Parameters [1] { + Parameter #0 [ $timeout_ms ] + } + } + } + } + + Class [ abstract class RdKafka\Topic ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [1] { + Method [ public method getName ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\ConsumerTopic extends RdKafka\Topic ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [7] { + Method [ private method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method consumeQueueStart ] { + + - Parameters [3] { + Parameter #0 [ $partition ] + Parameter #1 [ $offset ] + Parameter #2 [ $queue ] + } + } + + Method [ public method consumeStart ] { + + - Parameters [2] { + Parameter #0 [ $partition ] + Parameter #1 [ $offset ] + } + } + + Method [ public method consumeStop ] { + + - Parameters [1] { + Parameter #0 [ $partition ] + } + } + + Method [ public method consume ] { + + - Parameters [2] { + Parameter #0 [ $partition ] + Parameter #1 [ $timeout_ms ] + } + } + + Method [ public method offsetStore ] { + + - Parameters [2] { + Parameter #0 [ $partition ] + Parameter #1 [ $offset ] + } + } + + Method [ public method getName ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\KafkaConsumerTopic extends RdKafka\Topic ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [3] { + Method [ private method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method offsetStore ] { + + - Parameters [2] { + Parameter #0 [ $partition ] + Parameter #1 [ $offset ] + } + } + + Method [ public method getName ] { + + - Parameters [0] { + } + } + } + } + + Class [ class RdKafka\ProducerTopic extends RdKafka\Topic ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [3] { + Method [ private method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method produce ] { + + - Parameters [4] { + Parameter #0 [ $partition ] + Parameter #1 [ $msgflags ] + Parameter #2 [ $payload ] + Parameter #3 [ $key ] + } + } + + Method [ public method getName ] { + + - Parameters [0] { + } + } + } + } + } +} + diff --git a/php-pecl-rdkafka-php7.spec b/php-pecl-rdkafka-php7.spec new file mode 100644 index 0000000..a297190 --- /dev/null +++ b/php-pecl-rdkafka-php7.spec @@ -0,0 +1,220 @@ +# remirepo/fedora spec file for php-pecl-rdkafka +# +# Copyright (c) 2015-2016 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# +%if 0%{?scl:1} +%global sub_prefix %{scl_prefix} +%scl_package php-pecl-rdkafka +%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 + +Summary: Kafka client based on librdkafka +Name: %{?sub_prefix}php-pecl-%{pecl_name} +Version: 2.0.0 +Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +License: MIT +Group: Development/Languages +URL: http://pecl.php.net/package/%{pecl_name} +Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz + +BuildRequires: librdkafka-devel > 0.8 +BuildRequires: %{?scl_prefix}php-devel > 7 +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}} + +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 "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} +# Other third party repo stuff +Obsoletes: php53-pecl-%{pecl_name} <= %{version} +Obsoletes: php53u-pecl-%{pecl_name} <= %{version} +Obsoletes: php54-pecl-%{pecl_name} <= %{version} +Obsoletes: php54w-pecl-%{pecl_name} <= %{version} +Obsoletes: php55u-pecl-%{pecl_name} <= %{version} +Obsoletes: php55w-pecl-%{pecl_name} <= %{version} +Obsoletes: php56u-pecl-%{pecl_name} <= %{version} +Obsoletes: php56w-pecl-%{pecl_name} <= %{version} +%if "%{php_version}" > "7.0" +Obsoletes: php70u-pecl-%{pecl_name} <= %{version} +Obsoletes: php70w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.1" +Obsoletes: php71u-pecl-%{pecl_name} <= %{version} +Obsoletes: php71w-pecl-%{pecl_name} <= %{version} +%endif +%endif + +%if 0%{?fedora} < 20 && 0%{?rhel} < 7 +# Filter shared private +%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} +%{?filter_setup} +%endif + + +%description +This extension is a librdkafka binding providing a working client +for Kafka 0.8, 0.9, 0.10. + +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. + + +%prep +%setup -q -c +mv %{pecl_name}-%{version} NTS + +mv package2.xml package.xml + +# Don't install tests +sed -e 's/role="test"/role="src"/' \ + %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ + -i package.xml + +cd NTS +# See https://github.com/arnaud-lb/php-rdkafka/issues/71 +sed -e 's/ LOG_/RD_KAFKA_LOG_/' -i rdkafka.c + +# 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 + : Error: Upstream extension version is ${extver}, expecting %{version}. + exit 1 +fi +cd .. + +%if %{with_zts} +# Duplicate source tree for NTS / ZTS build +cp -pr NTS ZTS +%endif + +# Create configuration file +cat > %{ini_name} << 'EOF' +; Enable %{pecl_name} extension module +extension=%{pecl_name}.so +EOF + + +%build +cd NTS +%{_bindir}/phpize +%configure \ + --with-php-config=%{_bindir}/php-config \ + --with-rdkafka +make %{?_smp_mflags} + +%if %{with_zts} +cd ../ZTS +%{_bindir}/zts-phpize +%configure \ + --with-php-config=%{_bindir}/zts-php-config \ + --with-rdkafka +make %{?_smp_mflags} +%endif + + +%install +make -C NTS install INSTALL_ROOT=%{buildroot} + +# install config file +install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} + +# Install XML package description +install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml + +%if %{with_zts} +make -C ZTS install INSTALL_ROOT=%{buildroot} + +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 +done + + +%if 0%{?fedora} < 24 +# 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 + + +%files +%{?_licensedir:%license NTS/LICENSE} +%doc %{pecl_docdir}/%{pecl_name} +%{pecl_xmldir}/%{name}.xml + +%config(noreplace) %{php_inidir}/%{ini_name} +%{php_extdir}/%{pecl_name}.so + +%if %{with_zts} +%config(noreplace) %{php_ztsinidir}/%{ini_name} +%{php_ztsextdir}/%{pecl_name}.so +%endif + + +%changelog +* Fri Sep 09 2016 Remi Collet - 2.0.0-1 +- Update to 2.0.0 (php 7) +- open https://github.com/arnaud-lb/php-rdkafka/issues/71 + +* Tue Mar 8 2016 Remi Collet - 0.9.1-2 +- adapt for F24 + +* Mon Jan 11 2016 Remi Collet - 0.9.1-1 +- Update to 0.9.1 (beta) + +* Sat Jan 09 2016 Remi Collet - 0.9.0-1 +- Update to 0.9.0 (beta) + +* Thu May 14 2015 Remi Collet - 0.0.2-1 +- initial package, version 0.0.2 (alpha) +- open https://github.com/arnaud-lb/php-rdkafka/pull/5 - ZTS build +- open https://github.com/arnaud-lb/php-rdkafka/pull/4 - License diff --git a/php-pecl-rdkafka.spec b/php-pecl-rdkafka.spec index a74e5b2..4a8683f 100644 --- a/php-pecl-rdkafka.spec +++ b/php-pecl-rdkafka.spec @@ -6,7 +6,14 @@ # # Please, preserve the changelog entries # -%{?scl: %scl_package php-pecl-rdkafka} +%if 0%{?scl:1} +%if "%{scl}" == "rh-php56" +%global sub_prefix more-php56- +%else +%global sub_prefix %{scl_prefix} +%endif +%scl_package php-pecl-rdkafka +%endif %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global pecl_name rdkafka @@ -18,9 +25,9 @@ %endif Summary: Kafka client based on librdkafka -Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 0.9.1 -Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Name: %{?sub_prefix}php-pecl-%{pecl_name} +Version: 1.0.0 +Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: MIT Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -39,8 +46,10 @@ 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 "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} # Other third party repo stuff @@ -67,7 +76,7 @@ Obsoletes: php56w-pecl-%{pecl_name} <= %{version} %description This extension is a librdkafka binding providing a working client -for Kafka 0.8 and 0.9. +for Kafka 0.8, 0.9, 0.10. Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. @@ -202,6 +211,9 @@ rm -rf %{buildroot} %changelog +* Fri Sep 09 2016 Remi Collet - 1.0.0-1 +- Update to 1.0.0 (php 5) + * Tue Mar 8 2016 Remi Collet - 0.9.1-2 - adapt for F24 -- cgit