From 94041889b3988def9ab9b0a8f8ecbc1f2c180d13 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 4 Apr 2020 08:29:00 +0200 Subject: v1.10.0 --- PHPINFO | 10 +++-- REFLECTION | 129 ++++++++++++++++++++++++++++++++++++++++------------- php-pecl-amqp.spec | 19 +++++--- 3 files changed, 118 insertions(+), 40 deletions(-) diff --git a/PHPINFO b/PHPINFO index fcde918..7db9bba 100644 --- a/PHPINFO +++ b/PHPINFO @@ -1,11 +1,11 @@ amqp -Version => 1.9.4 +Version => 1.10.0 Revision => release -Compiled => Jan 2 2019 @ 15:02:47 +Compiled => Apr 4 2020 @ 00:00:00 AMQP protocol version => 0-9-1 -librabbitmq version => 0.9.0 +librabbitmq version => 0.10.0 Default max channels per connection => 256 Default max frame size => 131072 Default heartbeats interval => 0 @@ -18,10 +18,14 @@ amqp.timeout => no value => no value amqp.read_timeout => 0 => 0 amqp.write_timeout => 0 => 0 amqp.connect_timeout => 0 => 0 +amqp.rpc_timeout => 0 => 0 amqp.login => guest => guest amqp.password => guest => guest amqp.auto_ack => 0 => 0 amqp.prefetch_count => 3 => 3 +amqp.prefetch_size => 0 => 0 +amqp.global_prefetch_count => 0 => 0 +amqp.global_prefetch_size => 0 => 0 amqp.channel_max => 256 => 256 amqp.frame_max => 131072 => 131072 amqp.heartbeat => 0 => 0 diff --git a/REFLECTION b/REFLECTION index ee989ab..7760bf7 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #71 amqp version 1.9.4 ] { +Extension [ extension #113 amqp version 1.10.0 ] { - INI { Entry [ amqp.host ] @@ -22,6 +22,9 @@ Extension [ extension #71 amqp version 1.9.4 ] { Entry [ amqp.connect_timeout ] Current = '0' } + Entry [ amqp.rpc_timeout ] + Current = '0' + } Entry [ amqp.login ] Current = 'guest' } @@ -34,6 +37,15 @@ Extension [ extension #71 amqp version 1.9.4 ] { Entry [ amqp.prefetch_count ] Current = '3' } + Entry [ amqp.prefetch_size ] + Current = '0' + } + Entry [ amqp.global_prefetch_count ] + Current = '0' + } + Entry [ amqp.global_prefetch_size ] + Current = '0' + } Entry [ amqp.channel_max ] Current = '256' } @@ -61,30 +73,30 @@ Extension [ extension #71 amqp version 1.9.4 ] { } - Constants [24] { - Constant [ integer AMQP_NOPARAM ] { 0 } - Constant [ integer AMQP_JUST_CONSUME ] { 1 } - Constant [ integer AMQP_DURABLE ] { 2 } - Constant [ integer AMQP_PASSIVE ] { 4 } - Constant [ integer AMQP_EXCLUSIVE ] { 8 } - Constant [ integer AMQP_AUTODELETE ] { 16 } - Constant [ integer AMQP_INTERNAL ] { 32 } - Constant [ integer AMQP_NOLOCAL ] { 64 } - Constant [ integer AMQP_AUTOACK ] { 128 } - Constant [ integer AMQP_IFEMPTY ] { 256 } - Constant [ integer AMQP_IFUNUSED ] { 512 } - Constant [ integer AMQP_MANDATORY ] { 1024 } - Constant [ integer AMQP_IMMEDIATE ] { 2048 } - Constant [ integer AMQP_MULTIPLE ] { 4096 } - Constant [ integer AMQP_NOWAIT ] { 8192 } - Constant [ integer AMQP_REQUEUE ] { 16384 } + Constant [ int AMQP_NOPARAM ] { 0 } + Constant [ int AMQP_JUST_CONSUME ] { 1 } + Constant [ int AMQP_DURABLE ] { 2 } + Constant [ int AMQP_PASSIVE ] { 4 } + Constant [ int AMQP_EXCLUSIVE ] { 8 } + Constant [ int AMQP_AUTODELETE ] { 16 } + Constant [ int AMQP_INTERNAL ] { 32 } + Constant [ int AMQP_NOLOCAL ] { 64 } + Constant [ int AMQP_AUTOACK ] { 128 } + Constant [ int AMQP_IFEMPTY ] { 256 } + Constant [ int AMQP_IFUNUSED ] { 512 } + Constant [ int AMQP_MANDATORY ] { 1024 } + Constant [ int AMQP_IMMEDIATE ] { 2048 } + Constant [ int AMQP_MULTIPLE ] { 4096 } + Constant [ int AMQP_NOWAIT ] { 8192 } + Constant [ int AMQP_REQUEUE ] { 16384 } Constant [ string AMQP_EX_TYPE_DIRECT ] { direct } Constant [ string AMQP_EX_TYPE_FANOUT ] { fanout } Constant [ string AMQP_EX_TYPE_TOPIC ] { topic } Constant [ string AMQP_EX_TYPE_HEADERS ] { headers } - Constant [ integer AMQP_OS_SOCKET_TIMEOUT_ERRNO ] { 536870923 } - Constant [ integer PHP_AMQP_MAX_CHANNELS ] { 256 } - Constant [ integer AMQP_SASL_METHOD_PLAIN ] { 0 } - Constant [ integer AMQP_SASL_METHOD_EXTERNAL ] { 1 } + Constant [ int AMQP_OS_SOCKET_TIMEOUT_ERRNO ] { 536870923 } + Constant [ int PHP_AMQP_MAX_CHANNELS ] { 256 } + Constant [ int AMQP_SASL_METHOD_PLAIN ] { 0 } + Constant [ int AMQP_SASL_METHOD_EXTERNAL ] { 1 } } - Classes [15] { @@ -99,7 +111,7 @@ Extension [ extension #71 amqp version 1.9.4 ] { - Static methods [0] { } - - Properties [16] { + - Properties [18] { Property [ private $login ] Property [ private $password ] Property [ private $host ] @@ -108,6 +120,7 @@ Extension [ extension #71 amqp version 1.9.4 ] { Property [ private $read_timeout ] Property [ private $write_timeout ] Property [ private $connect_timeout ] + Property [ private $rpc_timeout ] Property [ private $channel_max ] Property [ private $frame_max ] Property [ private $heartbeat ] @@ -116,9 +129,10 @@ Extension [ extension #71 amqp version 1.9.4 ] { Property [ private $cert ] Property [ private $verify ] Property [ private $sasl_method ] + Property [ private $connection_name ] } - - Methods [39] { + - Methods [43] { Method [ public method __construct ] { - Parameters [1] { @@ -272,6 +286,19 @@ Extension [ extension #71 amqp version 1.9.4 ] { } } + Method [ public method getRpcTimeout ] { + + - Parameters [0] { + } + } + + Method [ public method setRpcTimeout ] { + + - Parameters [1] { + Parameter #0 [ $timeout ] + } + } + Method [ public method getUsedChannels ] { - Parameters [0] { @@ -366,6 +393,19 @@ Extension [ extension #71 amqp version 1.9.4 ] { Parameter #0 [ $sasl_method ] } } + + Method [ public method getConnectionName ] { + + - Parameters [0] { + } + } + + Method [ public method setConnectionName ] { + + - Parameters [1] { + Parameter #0 [ $connection_name ] + } + } } } @@ -380,14 +420,16 @@ Extension [ extension #71 amqp version 1.9.4 ] { - Static methods [0] { } - - Properties [4] { + - Properties [6] { Property [ private $connection ] Property [ private $prefetch_count ] Property [ private $prefetch_size ] + Property [ private $global_prefetch_count ] + Property [ private $global_prefetch_size ] Property [ private $consumers ] } - - Methods [20] { + - Methods [24] { Method [ public method __construct ] { - Parameters [1] { @@ -439,11 +481,38 @@ Extension [ extension #71 amqp version 1.9.4 ] { } } + Method [ public method setGlobalPrefetchSize ] { + + - Parameters [1] { + Parameter #0 [ $size ] + } + } + + Method [ public method getGlobalPrefetchSize ] { + + - Parameters [0] { + } + } + + Method [ public method setGlobalPrefetchCount ] { + + - Parameters [1] { + Parameter #0 [ $count ] + } + } + + Method [ public method getGlobalPrefetchCount ] { + + - Parameters [0] { + } + } + Method [ public method qos ] { - - Parameters [2] { + - Parameters [3] { Parameter #0 [ $size ] Parameter #1 [ $count ] + Parameter #2 [ $global ] } } @@ -1216,10 +1285,10 @@ Extension [ extension #71 amqp version 1.9.4 ] { Class [ final class AMQPDecimal ] { - Constants [4] { - Constant [ public integer EXPONENT_MIN ] { 0 } - Constant [ public integer EXPONENT_MAX ] { 255 } - Constant [ public integer SIGNIFICAND_MIN ] { 0 } - Constant [ public integer SIGNIFICAND_MAX ] { 4294967295 } + Constant [ public int EXPONENT_MIN ] { 0 } + Constant [ public int EXPONENT_MAX ] { 255 } + Constant [ public int SIGNIFICAND_MIN ] { 0 } + Constant [ public int SIGNIFICAND_MAX ] { 4294967295 } } - Static properties [0] { diff --git a/php-pecl-amqp.spec b/php-pecl-amqp.spec index e296c32..c609145 100644 --- a/php-pecl-amqp.spec +++ b/php-pecl-amqp.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-amqp # -# Copyright (c) 2012-2019 Remi Collet +# Copyright (c) 2012-2020 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -32,18 +32,16 @@ Summary: Communicate with any AMQP compliant server Name: %{?sub_prefix}php-pecl-amqp -Version: 1.9.4 -Release: 9%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 1.10.0 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP -URL: http://pecl.php.net/package/amqp -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +URL: https://pecl.php.net/package/amqp +Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel > 5.6 BuildRequires: %{?scl_prefix}php-pear -#BuildRequires: php-debuginfo valgrind gdb # Upstream requires 0.7.1, set 0.8.0 to ensure "last" is used. -# see https://github.com/pdezwart/php-amqp/pull/347 %if 0%{?fedora} >= 23 || 0%{?rhel} >= 7 BuildRequires: librabbitmq-devel >= 0.8.0 Requires: librabbitmq%{?_isa} >= %{buildver} @@ -161,6 +159,9 @@ extension = %{pecl_name}.so ; call to AMQPQueue::get() or AMQPQueue::consume() during which ; the AMQP_AUTOACK flag is not set. ;amqp.prefetch_count = 3 +;amqp.prefetch_size = 0 +;amqp.global_prefetch_count =0 +;amqp.global_prefetch_size =0 ; The virtual host on the broker to which to connect. ;amqp.vhost = / @@ -170,6 +171,7 @@ extension = %{pecl_name}.so ;amqp.read_timeout = 0 ;amqp.write_timeout = 0 ;amqp.connect_timeout = 0 +;amqp.rpc_timeout = 0 ;amqp.channel_max = 256 ;amqp.frame_max = 131072 @@ -314,6 +316,9 @@ fi %changelog +* Sat Apr 4 2020 Remi Collet - 1.10.0-1 +- update to 1.10.0 + * Tue Sep 03 2019 Remi Collet - 1.9.4-9 - rebuild for 7.4.0RC1 -- cgit