From 1c7e4b90f37c081d9da1d34bf29d37fe56e5f844 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 9 Jan 2016 16:33:11 +0100 Subject: php-pecl-rdkafka: 0.9.0 (beta) --- REFLECTION | 94 ++++++++++++++++++++++++++++++++++++++++++++------- php-pecl-rdkafka.spec | 18 +++++----- 2 files changed, 92 insertions(+), 20 deletions(-) diff --git a/REFLECTION b/REFLECTION index 9a0a17f..65695fa 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,6 +1,6 @@ -Extension [ extension #138 rdkafka version 0.0.2 ] { +Extension [ extension #151 rdkafka version 0.9.0 ] { - - Constants [43] { + - Constants [47] { Constant [ integer RD_KAFKA_CONSUMER ] { 1 } Constant [ integer RD_KAFKA_OFFSET_BEGINNING ] { -2 } Constant [ integer RD_KAFKA_OFFSET_END ] { -1 } @@ -44,6 +44,10 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { 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_LOG_PRINT ] { 100 } + Constant [ integer RD_KAFKA_LOG_SYSLOG ] { 101 } + Constant [ integer RD_KAFKA_LOG_SYSLOG_PRINT ] { 102 } } - Functions { @@ -92,7 +96,7 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { - Properties [0] { } - - Methods [7] { + - Methods [8] { Method [ public method addBrokers ] { - Parameters [1] { @@ -142,6 +146,13 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { Parameter #0 [ $timeout_ms ] } } + + Method [ public method setLogger ] { + + - Parameters [1] { + Parameter #0 [ $logger ] + } + } } } @@ -159,7 +170,7 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { - Properties [0] { } - - Methods [8] { + - Methods [9] { Method [ public method __construct ] { - Parameters [2] { @@ -217,6 +228,13 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { Parameter #0 [ $timeout_ms ] } } + + Method [ public method setLogger ] { + + - Parameters [1] { + Parameter #0 [ $logger ] + } + } } } @@ -234,7 +252,7 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { - Properties [0] { } - - Methods [8] { + - Methods [9] { Method [ public method __construct ] { - Parameters [2] { @@ -292,6 +310,13 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { Parameter #0 [ $timeout_ms ] } } + + Method [ public method setLogger ] { + + - Parameters [1] { + Parameter #0 [ $logger ] + } + } } } @@ -309,7 +334,7 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { - Properties [0] { } - - Methods [3] { + - Methods [4] { Method [ public method __construct ] { - Parameters [0] { @@ -324,7 +349,17 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { Method [ public method set ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ $name ] + Parameter #1 [ $value ] + Parameter #2 [ $errstr ] + } + } + + Method [ public method setErrorCb ] { + + - Parameters [1] { + Parameter #0 [ $callback ] } } } @@ -344,7 +379,7 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { - Properties [0] { } - - Methods [3] { + - Methods [4] { Method [ public method __construct ] { - Parameters [0] { @@ -362,6 +397,13 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { - Parameters [0] { } } + + Method [ public method setPartitioner ] { + + - Parameters [1] { + Parameter #0 [ $partitioner ] + } + } } } @@ -379,7 +421,12 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { - Properties [0] { } - - Methods [0] { + - Methods [1] { + Method [ public method getName ] { + + - Parameters [0] { + } + } } } @@ -397,7 +444,7 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { - Properties [0] { } - - Methods [5] { + - Methods [7] { Method [ private method __construct ] { - Parameters [0] { @@ -435,6 +482,20 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { Parameter #1 [ $timeout_ms ] } } + + Method [ public method offsetStore ] { + + - Parameters [2] { + Parameter #0 [ $partition ] + Parameter #1 [ $offset ] + } + } + + Method [ public method getName ] { + + - Parameters [0] { + } + } } } @@ -452,7 +513,7 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { - Properties [0] { } - - Methods [2] { + - Methods [3] { Method [ private method __construct ] { - Parameters [0] { @@ -468,6 +529,12 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { Parameter #3 [ $key ] } } + + Method [ public method getName ] { + + - Parameters [0] { + } + } } } @@ -548,7 +615,7 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { Property [ protected $line ] } - - Methods [9] { + - Methods [10] { Method [ method __construct ] { - Parameters [3] { @@ -558,6 +625,9 @@ Extension [ extension #138 rdkafka version 0.0.2 ] { } } + Method [ public method __wakeup ] { + } + Method [ final public method getMessage ] { } diff --git a/php-pecl-rdkafka.spec b/php-pecl-rdkafka.spec index d3cba90..b5087b8 100644 --- a/php-pecl-rdkafka.spec +++ b/php-pecl-rdkafka.spec @@ -11,8 +11,7 @@ %{!?__pecl: %global __pecl %{_bindir}/pecl} %{!?__php: %global __php %{_bindir}/php} -# https://github.com/arnaud-lb/php-rdkafka/issues/2 -%global with_zts 0 +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global pecl_name rdkafka %global with_tests %{?_without_tests:0}%{!?_without_tests:1} %if "%{php_version}" < "5.6" @@ -23,17 +22,16 @@ Summary: Kafka client based on librdkafka Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 0.0.2 +Version: 0.9.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 -# https://github.com/arnaud-lb/php-rdkafka/issues/3 -Source1: https://raw.githubusercontent.com/arnaud-lb/php-rdkafka/master/LICENSE BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: librdkafka-devel +BuildRequires: librdkafka-devel > 0.8 +BuildRequires: librdkafka-devel < 0.9 BuildRequires: %{?scl_prefix}php-devel > 5.4 BuildRequires: %{?scl_prefix}php-pear @@ -80,11 +78,12 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %setup -q -c mv %{pecl_name}-%{version} NTS +mv package2.xml package.xml + # Don't install tests sed -e '/role="test"/d' -i package.xml cd NTS -cp %{SOURCE1} LICENSE # Sanity check, really often broken extver=$(sed -n '/#define PHP_RDKAFKA_VERSION/{s/.* "//;s/".*$//;p}' php_rdkafka.h) @@ -142,7 +141,7 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif # Documentation -for i in LICENSE $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') +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 @@ -201,6 +200,9 @@ rm -rf %{buildroot} %changelog +* 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 -- cgit