summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-01-08 07:50:44 +0100
committerRemi Collet <remi@php.net>2025-01-08 07:50:44 +0100
commit76cf2f1cdc670565331e55f5c021dfa83244ec2b (patch)
tree39a70c5980c20f7d5d8c54921b62c68fb526a296
parentca5491c6d0f357675b7be4b5b00b62ffea997dba (diff)
update to 2.1.4HEADmaster
raise dependency on PHP 7.1
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION126
-rw-r--r--php-pecl-gearman.spec9
3 files changed, 70 insertions, 67 deletions
diff --git a/PHPINFO b/PHPINFO
index ae94639..aca0896 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,7 +2,7 @@
gearman
gearman support => enabled
-extension version => 2.1.3
+extension version => 2.1.4
libgearman version => 1.1.21
Default TCP Host => localhost
Default TCP Port => 4730
diff --git a/REFLECTION b/REFLECTION
index dedd494..690f432 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
+Extension [ <persistent> extension #78 gearman version 2.1.4 ] {
- Constants [157] {
Constant [ string GEARMAN_DEFAULT_TCP_HOST ] { localhost }
@@ -197,28 +197,28 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanClient $obj ]
}
- - Return [ ?int ]
+ - Return [ int ]
}
Function [ <internal:gearman> function gearman_client_error ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanClient $obj ]
}
- - Return [ string|false|null ]
+ - Return [ string|false ]
}
Function [ <internal:gearman> function gearman_client_get_errno ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanClient $obj ]
}
- - Return [ ?int ]
+ - Return [ int ]
}
Function [ <internal:gearman> function gearman_client_options ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanClient $obj ]
}
- - Return [ ?int ]
+ - Return [ int ]
}
Function [ <internal:gearman> function gearman_client_set_options ] {
@@ -263,7 +263,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [4] {
Parameter #0 [ <required> GearmanClient $obj ]
- Parameter #1 [ <optional> string $host = null ]
+ Parameter #1 [ <optional> ?string $host = null ]
Parameter #2 [ <optional> int $port = 0 ]
Parameter #3 [ <optional> bool $setupExceptionHandler = true ]
}
@@ -273,7 +273,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [3] {
Parameter #0 [ <required> GearmanClient $obj ]
- Parameter #1 [ <optional> string $servers = null ]
+ Parameter #1 [ <optional> ?string $servers = null ]
Parameter #2 [ <optional> bool $setupExceptionHandler = true ]
}
- Return [ bool ]
@@ -463,7 +463,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Parameter #1 [ <required> string $job_handle ]
Parameter #2 [ <optional> mixed $context = null ]
}
- - Return [ GearmanTask ]
+ - Return [ GearmanTask|false ]
}
Function [ <internal:gearman> function gearman_client_set_workload_callback ] {
@@ -563,7 +563,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanJob $obj ]
}
- - Return [ ?int ]
+ - Return [ int ]
}
Function [ <internal:gearman> function gearman_job_set_return ] {
@@ -571,7 +571,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Parameter #0 [ <required> GearmanJob $obj ]
Parameter #1 [ <required> int $gearman_return_t ]
}
- - Return [ ?bool ]
+ - Return [ bool ]
}
Function [ <internal:gearman> function gearman_job_send_data ] {
@@ -579,7 +579,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Parameter #0 [ <required> GearmanJob $obj ]
Parameter #1 [ <required> string $data ]
}
- - Return [ ?bool ]
+ - Return [ bool ]
}
Function [ <internal:gearman> function gearman_job_send_warning ] {
@@ -626,21 +626,21 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanJob $obj ]
}
- - Return [ string|bool ]
+ - Return [ string|false ]
}
Function [ <internal:gearman> function gearman_job_function_name ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanJob $obj ]
}
- - Return [ string|bool ]
+ - Return [ string|false ]
}
Function [ <internal:gearman> function gearman_job_unique ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanJob $obj ]
}
- - Return [ string|bool ]
+ - Return [ string|false ]
}
Function [ <internal:gearman> function gearman_job_workload ] {
@@ -654,70 +654,70 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanJob $obj ]
}
- - Return [ ?int ]
+ - Return [ int ]
}
Function [ <internal:gearman> function gearman_task_return_code ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanTask $obj ]
}
- - Return [ ?int ]
+ - Return [ int ]
}
Function [ <internal:gearman> function gearman_task_function_name ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanTask $obj ]
}
- - Return [ string|bool|null ]
+ - Return [ string|false ]
}
Function [ <internal:gearman> function gearman_task_unique ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanTask $obj ]
}
- - Return [ string|bool|null ]
+ - Return [ string|false ]
}
Function [ <internal:gearman> function gearman_task_job_handle ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanTask $obj ]
}
- - Return [ string|bool|null ]
+ - Return [ string|false ]
}
Function [ <internal:gearman> function gearman_task_is_known ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanTask $obj ]
}
- - Return [ ?bool ]
+ - Return [ bool ]
}
Function [ <internal:gearman> function gearman_task_is_running ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanTask $obj ]
}
- - Return [ ?bool ]
+ - Return [ bool ]
}
Function [ <internal:gearman> function gearman_task_numerator ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanTask $obj ]
}
- - Return [ int|bool|null ]
+ - Return [ int|false ]
}
Function [ <internal:gearman> function gearman_task_denominator ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanTask $obj ]
}
- - Return [ int|bool|null ]
+ - Return [ int|false ]
}
Function [ <internal:gearman> function gearman_task_data ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanTask $obj ]
}
- - Return [ string|bool|null ]
+ - Return [ string|false ]
}
Function [ <internal:gearman> function gearman_task_data_size ] {
@@ -740,14 +740,14 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Parameter #0 [ <required> GearmanTask $obj ]
Parameter #1 [ <required> int $data_len ]
}
- - Return [ array|bool ]
+ - Return [ array|false ]
}
Function [ <internal:gearman> function gearman_worker_return_code ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanWorker $obj ]
}
- - Return [ ?int ]
+ - Return [ int ]
}
Function [ <internal:gearman> function gearman_worker_error ] {
@@ -761,14 +761,14 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanWorker $obj ]
}
- - Return [ int|false ]
+ - Return [ int ]
}
Function [ <internal:gearman> function gearman_worker_options ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanWorker $obj ]
}
- - Return [ ?int ]
+ - Return [ int ]
}
Function [ <internal:gearman> function gearman_worker_set_options ] {
@@ -776,7 +776,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Parameter #0 [ <required> GearmanWorker $obj ]
Parameter #1 [ <required> int $option ]
}
- - Return [ ?bool ]
+ - Return [ true ]
}
Function [ <internal:gearman> function gearman_worker_add_options ] {
@@ -784,7 +784,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Parameter #0 [ <required> GearmanWorker $obj ]
Parameter #1 [ <required> int $option ]
}
- - Return [ ?bool ]
+ - Return [ true ]
}
Function [ <internal:gearman> function gearman_worker_remove_options ] {
@@ -792,14 +792,14 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Parameter #0 [ <required> GearmanWorker $obj ]
Parameter #1 [ <required> int $option ]
}
- - Return [ ?bool ]
+ - Return [ true ]
}
Function [ <internal:gearman> function gearman_worker_timeout ] {
- Parameters [1] {
Parameter #0 [ <required> GearmanWorker $obj ]
}
- - Return [ ?int ]
+ - Return [ int ]
}
Function [ <internal:gearman> function gearman_worker_set_timeout ] {
@@ -807,7 +807,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Parameter #0 [ <required> GearmanWorker $obj ]
Parameter #1 [ <required> int $timeout ]
}
- - Return [ bool ]
+ - Return [ true ]
}
Function [ <internal:gearman> function gearman_worker_set_id ] {
@@ -821,7 +821,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [4] {
Parameter #0 [ <required> GearmanWorker $obj ]
- Parameter #1 [ <optional> string $host = null ]
+ Parameter #1 [ <optional> ?string $host = null ]
Parameter #2 [ <optional> int $port = 0 ]
Parameter #3 [ <optional> bool $setupExceptionHandler = true ]
}
@@ -831,7 +831,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [3] {
Parameter #0 [ <required> GearmanWorker $obj ]
- Parameter #1 [ <optional> string $servers = null ]
+ Parameter #1 [ <optional> ?string $servers = null ]
Parameter #2 [ <optional> bool $setupExceptionHandler = true ]
}
- Return [ bool ]
@@ -1007,7 +1007,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Method [ <internal:gearman> public method addServer ] {
- Parameters [3] {
- Parameter #0 [ <optional> string $host = null ]
+ Parameter #0 [ <optional> ?string $host = null ]
Parameter #1 [ <optional> int $port = 0 ]
Parameter #2 [ <optional> bool $setupExceptionHandler = true ]
}
@@ -1017,7 +1017,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Method [ <internal:gearman> public method addServers ] {
- Parameters [2] {
- Parameter #0 [ <optional> string $servers = null ]
+ Parameter #0 [ <optional> ?string $servers = null ]
Parameter #1 [ <optional> bool $setupExceptionHandler = true ]
}
- Return [ bool ]
@@ -1050,7 +1050,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Return [ string ]
}
- Method [ <internal:gearman> public method dolow ] {
+ Method [ <internal:gearman> public method doLow ] {
- Parameters [3] {
Parameter #0 [ <required> string $function ]
@@ -1207,7 +1207,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Parameter #0 [ <required> string $job_handle ]
Parameter #1 [ <optional> mixed $context = null ]
}
- - Return [ GearmanTask ]
+ - Return [ GearmanTask|false ]
}
Method [ <internal:gearman> public method setWorkloadCallback ] {
@@ -1337,21 +1337,21 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [0] {
}
- - Return [ string|bool ]
+ - Return [ string|false ]
}
Method [ <internal:gearman> public method unique ] {
- Parameters [0] {
}
- - Return [ string|bool ]
+ - Return [ string|false ]
}
Method [ <internal:gearman> public method jobHandle ] {
- Parameters [0] {
}
- - Return [ string|bool ]
+ - Return [ string|false ]
}
Method [ <internal:gearman> public method isKnown ] {
@@ -1372,21 +1372,21 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [0] {
}
- - Return [ int|bool ]
+ - Return [ int|false ]
}
Method [ <internal:gearman> public method taskDenominator ] {
- Parameters [0] {
}
- - Return [ int|bool ]
+ - Return [ int|false ]
}
Method [ <internal:gearman> public method data ] {
- Parameters [0] {
}
- - Return [ string|bool ]
+ - Return [ string|false ]
}
Method [ <internal:gearman> public method dataSize ] {
@@ -1409,7 +1409,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> int $data_len ]
}
- - Return [ array|bool ]
+ - Return [ array|false ]
}
}
}
@@ -1445,7 +1445,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [0] {
}
- - Return [ ?int ]
+ - Return [ int ]
}
Method [ <internal:gearman> public method error ] {
@@ -1459,14 +1459,14 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [0] {
}
- - Return [ int|false ]
+ - Return [ int ]
}
Method [ <internal:gearman> public method options ] {
- Parameters [0] {
}
- - Return [ ?int ]
+ - Return [ int ]
}
Method [ <internal:gearman> public method setOptions ] {
@@ -1474,7 +1474,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> int $option ]
}
- - Return [ ?bool ]
+ - Return [ true ]
}
Method [ <internal:gearman> public method addOptions ] {
@@ -1482,7 +1482,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> int $option ]
}
- - Return [ ?bool ]
+ - Return [ true ]
}
Method [ <internal:gearman> public method removeOptions ] {
@@ -1490,14 +1490,14 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> int $option ]
}
- - Return [ ?bool ]
+ - Return [ true ]
}
Method [ <internal:gearman> public method timeout ] {
- Parameters [0] {
}
- - Return [ ?int ]
+ - Return [ int ]
}
Method [ <internal:gearman> public method setTimeout ] {
@@ -1505,7 +1505,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> int $timeout ]
}
- - Return [ bool ]
+ - Return [ true ]
}
Method [ <internal:gearman> public method setId ] {
@@ -1519,7 +1519,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Method [ <internal:gearman> public method addServer ] {
- Parameters [3] {
- Parameter #0 [ <optional> string $host = null ]
+ Parameter #0 [ <optional> ?string $host = null ]
Parameter #1 [ <optional> int $port = 0 ]
Parameter #2 [ <optional> bool $setupExceptionHandler = true ]
}
@@ -1529,7 +1529,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
Method [ <internal:gearman> public method addServers ] {
- Parameters [2] {
- Parameter #0 [ <optional> string $servers = null ]
+ Parameter #0 [ <optional> ?string $servers = null ]
Parameter #1 [ <optional> bool $setupExceptionHandler = true ]
}
- Return [ bool ]
@@ -1633,7 +1633,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [0] {
}
- - Return [ ?int ]
+ - Return [ int ]
}
Method [ <internal:gearman> public method setReturn ] {
@@ -1641,7 +1641,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> int $gearman_return_t ]
}
- - Return [ ?bool ]
+ - Return [ bool ]
}
Method [ <internal:gearman> public method sendData ] {
@@ -1649,7 +1649,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [1] {
Parameter #0 [ <required> string $data ]
}
- - Return [ ?bool ]
+ - Return [ bool ]
}
Method [ <internal:gearman> public method sendWarning ] {
@@ -1696,21 +1696,21 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [0] {
}
- - Return [ string|bool ]
+ - Return [ string|false ]
}
Method [ <internal:gearman> public method functionName ] {
- Parameters [0] {
}
- - Return [ string|bool ]
+ - Return [ string|false ]
}
Method [ <internal:gearman> public method unique ] {
- Parameters [0] {
}
- - Return [ string|bool ]
+ - Return [ string|false ]
}
Method [ <internal:gearman> public method workload ] {
@@ -1724,7 +1724,7 @@ Extension [ <persistent> extension #78 gearman version 2.1.3 ] {
- Parameters [0] {
}
- - Return [ ?int ]
+ - Return [ int ]
}
}
}
diff --git a/php-pecl-gearman.spec b/php-pecl-gearman.spec
index 30050dc..3612df5 100644
--- a/php-pecl-gearman.spec
+++ b/php-pecl-gearman.spec
@@ -18,11 +18,10 @@
%bcond_without tests
-%global extver 2.1.3
%global libver 1.1.0
Name: %{?scl_prefix}php-pecl-gearman
-Version: %{extver}
+Version: 2.1.4
Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
Summary: PHP wrapper to libgearman
@@ -34,7 +33,7 @@ BuildRequires: libgearman-devel > %{libver}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?dtsprefix}gcc
-BuildRequires: %{?scl_prefix}php-devel >= 7.0
+BuildRequires: %{?scl_prefix}php-devel >= 7.1
BuildRequires: %{?scl_prefix}php-pear
# Required by phpize
BuildRequires: autoconf, automake, libtool
@@ -163,6 +162,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Wed Jan 8 2025 Remi Collet <remi@remirepo.net> - 2.1.4-1
+- update to 2.1.4
+- raise dependency on PHP 7.1
+
* Tue Jan 7 2025 Remi Collet <remi@remirepo.net> - 2.1.3-1
- update to 2.1.3 (no change)