summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--REFLECTION94
-rw-r--r--php-pecl-rdkafka.spec18
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 [ <persistent> extension #138 rdkafka version 0.0.2 ] {
+Extension [ <persistent> 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 [ <persistent> 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 [ <persistent> extension #138 rdkafka version 0.0.2 ] {
- Properties [0] {
}
- - Methods [7] {
+ - Methods [8] {
Method [ <internal:rdkafka> public method addBrokers ] {
- Parameters [1] {
@@ -142,6 +146,13 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
Parameter #0 [ <required> $timeout_ms ]
}
}
+
+ Method [ <internal:rdkafka> public method setLogger ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $logger ]
+ }
+ }
}
}
@@ -159,7 +170,7 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
- Properties [0] {
}
- - Methods [8] {
+ - Methods [9] {
Method [ <internal:rdkafka, ctor> public method __construct ] {
- Parameters [2] {
@@ -217,6 +228,13 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
Parameter #0 [ <required> $timeout_ms ]
}
}
+
+ Method [ <internal:rdkafka, inherits RdKafka> public method setLogger ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $logger ]
+ }
+ }
}
}
@@ -234,7 +252,7 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
- Properties [0] {
}
- - Methods [8] {
+ - Methods [9] {
Method [ <internal:rdkafka, ctor> public method __construct ] {
- Parameters [2] {
@@ -292,6 +310,13 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
Parameter #0 [ <required> $timeout_ms ]
}
}
+
+ Method [ <internal:rdkafka, inherits RdKafka> public method setLogger ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $logger ]
+ }
+ }
}
}
@@ -309,7 +334,7 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
- Properties [0] {
}
- - Methods [3] {
+ - Methods [4] {
Method [ <internal:rdkafka, ctor> public method __construct ] {
- Parameters [0] {
@@ -324,7 +349,17 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
Method [ <internal:rdkafka> public method set ] {
- - Parameters [0] {
+ - Parameters [3] {
+ Parameter #0 [ <required> $name ]
+ Parameter #1 [ <required> $value ]
+ Parameter #2 [ <required> $errstr ]
+ }
+ }
+
+ Method [ <internal:rdkafka> public method setErrorCb ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $callback ]
}
}
}
@@ -344,7 +379,7 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
- Properties [0] {
}
- - Methods [3] {
+ - Methods [4] {
Method [ <internal:rdkafka, ctor> public method __construct ] {
- Parameters [0] {
@@ -362,6 +397,13 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
- Parameters [0] {
}
}
+
+ Method [ <internal:rdkafka> public method setPartitioner ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $partitioner ]
+ }
+ }
}
}
@@ -379,7 +421,12 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
- Properties [0] {
}
- - Methods [0] {
+ - Methods [1] {
+ Method [ <internal:rdkafka> public method getName ] {
+
+ - Parameters [0] {
+ }
+ }
}
}
@@ -397,7 +444,7 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
- Properties [0] {
}
- - Methods [5] {
+ - Methods [7] {
Method [ <internal:rdkafka, ctor> private method __construct ] {
- Parameters [0] {
@@ -435,6 +482,20 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
Parameter #1 [ <required> $timeout_ms ]
}
}
+
+ Method [ <internal:rdkafka> public method offsetStore ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $partition ]
+ Parameter #1 [ <required> $offset ]
+ }
+ }
+
+ Method [ <internal:rdkafka, inherits RdKafka\Topic> public method getName ] {
+
+ - Parameters [0] {
+ }
+ }
}
}
@@ -452,7 +513,7 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
- Properties [0] {
}
- - Methods [2] {
+ - Methods [3] {
Method [ <internal:rdkafka, ctor> private method __construct ] {
- Parameters [0] {
@@ -468,6 +529,12 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
Parameter #3 [ <optional> $key ]
}
}
+
+ Method [ <internal:rdkafka, inherits RdKafka\Topic> public method getName ] {
+
+ - Parameters [0] {
+ }
+ }
}
}
@@ -548,7 +615,7 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
Property [ <default> protected $line ]
}
- - Methods [9] {
+ - Methods [10] {
Method [ <internal:Core, inherits Exception, ctor> <visibility error> method __construct ] {
- Parameters [3] {
@@ -558,6 +625,9 @@ Extension [ <persistent> extension #138 rdkafka version 0.0.2 ] {
}
}
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+ }
+
Method [ <internal:Core, inherits Exception> 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 <remi@fedoraproject.org> - 0.9.0-1
+- Update to 0.9.0 (beta)
+
* Thu May 14 2015 Remi Collet <remi@fedoraproject.org> - 0.0.2-1
- initial package, version 0.0.2 (alpha)
- open https://github.com/arnaud-lb/php-rdkafka/pull/5 - ZTS build