diff options
author | Remi Collet <remi@remirepo.net> | 2023-07-20 11:09:03 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-07-20 11:09:03 +0200 |
commit | b6111d70ed462e6e28f50cf9f9d5d129fa43afa4 (patch) | |
tree | 22a425738915ffe0b9eb28bd0c10d59af98dcea3 | |
parent | 109d6c65de2335db9c7c98186afe04f04aec6a3c (diff) |
build out of sources tree
-rw-r--r-- | REFLECTION | 307 | ||||
-rw-r--r-- | php-pecl-gearman.spec | 76 |
2 files changed, 223 insertions, 160 deletions
@@ -1,4 +1,4 @@ -Extension [ <persistent> extension #119 gearman version 2.1.0 ] { +Extension [ <persistent> extension #124 gearman version 2.1.0 ] { - Constants [157] { Constant [ string GEARMAN_DEFAULT_TCP_HOST ] { localhost } @@ -178,44 +178,47 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> int $verbose ] } - - Return [ string or NULL ] + - Return [ ?string ] } Function [ <internal:gearman> function gearman_client_create ] { - Parameters [0] { } + - Return [ GearmanClient|false ] } Function [ <internal:gearman> function gearman_worker_create ] { - Parameters [0] { } + - Return [ GearmanWorker|false ] } Function [ <internal:gearman> function gearman_client_return_code ] { - Parameters [1] { Parameter #0 [ <required> GearmanClient $obj ] } - - Return [ int or NULL ] + - Return [ ?int ] } Function [ <internal:gearman> function gearman_client_error ] { - Parameters [1] { Parameter #0 [ <required> GearmanClient $obj ] } + - Return [ string|false|null ] } Function [ <internal:gearman> function gearman_client_get_errno ] { - Parameters [1] { Parameter #0 [ <required> GearmanClient $obj ] } - - Return [ int or NULL ] + - Return [ ?int ] } Function [ <internal:gearman> function gearman_client_options ] { - Parameters [1] { Parameter #0 [ <required> GearmanClient $obj ] } - - Return [ int or NULL ] + - Return [ ?int ] } Function [ <internal:gearman> function gearman_client_set_options ] { @@ -246,7 +249,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> GearmanClient $obj ] } - - Return [ int or NULL ] + - Return [ ?int ] } Function [ <internal:gearman> function gearman_client_set_timeout ] { @@ -260,9 +263,9 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [4] { Parameter #0 [ <required> GearmanClient $obj ] - Parameter #1 [ <optional> string $host ] - Parameter #2 [ <optional> int $port ] - Parameter #3 [ <optional> bool $setupExceptionHandler ] + Parameter #1 [ <optional> string $host = null ] + Parameter #2 [ <optional> int $port = 0 ] + Parameter #3 [ <optional> bool $setupExceptionHandler = true ] } - Return [ bool ] } @@ -270,8 +273,8 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [3] { Parameter #0 [ <required> GearmanClient $obj ] - Parameter #1 [ <optional> string $servers ] - Parameter #2 [ <optional> bool $setupExceptionHandler ] + Parameter #1 [ <optional> string $servers = null ] + Parameter #2 [ <optional> bool $setupExceptionHandler = true ] } - Return [ bool ] } @@ -288,7 +291,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function ] Parameter #2 [ <required> string $workload ] - Parameter #3 [ <optional> string or NULL $unique ] + Parameter #3 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -298,7 +301,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function ] Parameter #2 [ <required> string $workload ] - Parameter #3 [ <optional> string or NULL $unique ] + Parameter #3 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -308,7 +311,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function ] Parameter #2 [ <required> string $workload ] - Parameter #3 [ <optional> string or NULL $unique ] + Parameter #3 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -318,7 +321,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function ] Parameter #2 [ <required> string $workload ] - Parameter #3 [ <optional> string or NULL $unique ] + Parameter #3 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -328,7 +331,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function ] Parameter #2 [ <required> string $workload ] - Parameter #3 [ <optional> string or NULL $unique ] + Parameter #3 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -338,7 +341,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function ] Parameter #2 [ <required> string $workload ] - Parameter #3 [ <optional> string or NULL $unique ] + Parameter #3 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -385,60 +388,66 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [5] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> string or NULL $unique_key ] + Parameter #2 [ <required> string|int|float $workload ] + Parameter #3 [ <optional> mixed $context = null ] + Parameter #4 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Function [ <internal:gearman> function gearman_client_add_task_high ] { - Parameters [5] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> string or NULL $unique_key ] + Parameter #2 [ <required> string|int|float $workload ] + Parameter #3 [ <optional> mixed $context = null ] + Parameter #4 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Function [ <internal:gearman> function gearman_client_add_task_low ] { - Parameters [5] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> string or NULL $unique_key ] + Parameter #2 [ <required> string|int|float $workload ] + Parameter #3 [ <optional> mixed $context = null ] + Parameter #4 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Function [ <internal:gearman> function gearman_client_add_task_background ] { - Parameters [5] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> string or NULL $unique_key ] + Parameter #2 [ <required> string|int|float $workload ] + Parameter #3 [ <optional> mixed $context = null ] + Parameter #4 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Function [ <internal:gearman> function gearman_client_add_task_high_background ] { - Parameters [5] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> string or NULL $unique_key ] + Parameter #2 [ <required> string|int|float $workload ] + Parameter #3 [ <optional> mixed $context = null ] + Parameter #4 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Function [ <internal:gearman> function gearman_client_add_task_low_background ] { - Parameters [5] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> string or NULL $unique_key ] + Parameter #2 [ <required> string|int|float $workload ] + Parameter #3 [ <optional> mixed $context = null ] + Parameter #4 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Function [ <internal:gearman> function gearman_client_run_tasks ] { @@ -452,7 +461,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [3] { Parameter #0 [ <required> GearmanClient $obj ] Parameter #1 [ <required> string $job_handle ] - Parameter #2 [ <optional> $context ] + Parameter #2 [ <optional> mixed $context = null ] } - Return [ GearmanTask ] } @@ -554,7 +563,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> GearmanJob $obj ] } - - Return [ int or NULL ] + - Return [ ?int ] } Function [ <internal:gearman> function gearman_job_set_return ] { @@ -562,7 +571,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanJob $obj ] Parameter #1 [ <required> int $gearman_return_t ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Function [ <internal:gearman> function gearman_job_send_data ] { @@ -570,7 +579,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanJob $obj ] Parameter #1 [ <required> string $data ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Function [ <internal:gearman> function gearman_job_send_warning ] { @@ -617,18 +626,21 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> GearmanJob $obj ] } + - Return [ string|bool ] } Function [ <internal:gearman> function gearman_job_function_name ] { - Parameters [1] { Parameter #0 [ <required> GearmanJob $obj ] } + - Return [ string|bool ] } Function [ <internal:gearman> function gearman_job_unique ] { - Parameters [1] { Parameter #0 [ <required> GearmanJob $obj ] } + - Return [ string|bool ] } Function [ <internal:gearman> function gearman_job_workload ] { @@ -642,70 +654,77 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> GearmanJob $obj ] } - - Return [ int or NULL ] + - Return [ ?int ] } Function [ <internal:gearman> function gearman_task_return_code ] { - Parameters [1] { Parameter #0 [ <required> GearmanTask $obj ] } - - Return [ int or NULL ] + - Return [ ?int ] } Function [ <internal:gearman> function gearman_task_function_name ] { - Parameters [1] { Parameter #0 [ <required> GearmanTask $obj ] } + - Return [ string|bool|null ] } Function [ <internal:gearman> function gearman_task_unique ] { - Parameters [1] { Parameter #0 [ <required> GearmanTask $obj ] } + - Return [ string|bool|null ] } Function [ <internal:gearman> function gearman_task_job_handle ] { - Parameters [1] { Parameter #0 [ <required> GearmanTask $obj ] } + - Return [ string|bool|null ] } Function [ <internal:gearman> function gearman_task_is_known ] { - Parameters [1] { Parameter #0 [ <required> GearmanTask $obj ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Function [ <internal:gearman> function gearman_task_is_running ] { - Parameters [1] { Parameter #0 [ <required> GearmanTask $obj ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Function [ <internal:gearman> function gearman_task_numerator ] { - Parameters [1] { Parameter #0 [ <required> GearmanTask $obj ] } + - Return [ int|bool|null ] } Function [ <internal:gearman> function gearman_task_denominator ] { - Parameters [1] { Parameter #0 [ <required> GearmanTask $obj ] } + - Return [ int|bool|null ] } Function [ <internal:gearman> function gearman_task_data ] { - Parameters [1] { Parameter #0 [ <required> GearmanTask $obj ] } + - Return [ string|bool|null ] } Function [ <internal:gearman> function gearman_task_data_size ] { - Parameters [1] { Parameter #0 [ <required> GearmanTask $obj ] } + - Return [ int|false ] } Function [ <internal:gearman> function gearman_task_send_workload ] { @@ -713,6 +732,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanTask $obj ] Parameter #1 [ <required> string $data ] } + - Return [ int|false ] } Function [ <internal:gearman> function gearman_task_recv_data ] { @@ -720,32 +740,35 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanTask $obj ] Parameter #1 [ <required> int $data_len ] } + - Return [ array|bool ] } Function [ <internal:gearman> function gearman_worker_return_code ] { - Parameters [1] { Parameter #0 [ <required> GearmanWorker $obj ] } - - Return [ int or NULL ] + - Return [ ?int ] } Function [ <internal:gearman> function gearman_worker_error ] { - Parameters [1] { Parameter #0 [ <required> GearmanWorker $obj ] } + - Return [ string|false ] } Function [ <internal:gearman> function gearman_worker_errno ] { - Parameters [1] { Parameter #0 [ <required> GearmanWorker $obj ] } + - Return [ int|false ] } Function [ <internal:gearman> function gearman_worker_options ] { - Parameters [1] { Parameter #0 [ <required> GearmanWorker $obj ] } - - Return [ int or NULL ] + - Return [ ?int ] } Function [ <internal:gearman> function gearman_worker_set_options ] { @@ -753,7 +776,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanWorker $obj ] Parameter #1 [ <required> int $option ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Function [ <internal:gearman> function gearman_worker_add_options ] { @@ -761,7 +784,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanWorker $obj ] Parameter #1 [ <required> int $option ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Function [ <internal:gearman> function gearman_worker_remove_options ] { @@ -769,14 +792,14 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanWorker $obj ] Parameter #1 [ <required> int $option ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Function [ <internal:gearman> function gearman_worker_timeout ] { - Parameters [1] { Parameter #0 [ <required> GearmanWorker $obj ] } - - Return [ int or NULL ] + - Return [ ?int ] } Function [ <internal:gearman> function gearman_worker_set_timeout ] { @@ -798,8 +821,8 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [3] { Parameter #0 [ <required> GearmanWorker $obj ] - Parameter #1 [ <optional> string $host ] - Parameter #2 [ <optional> int $port ] + Parameter #1 [ <optional> string $host = null ] + Parameter #2 [ <optional> int $port = 0 ] } - Return [ bool ] } @@ -807,7 +830,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [2] { Parameter #0 [ <required> GearmanWorker $obj ] - Parameter #1 [ <optional> string $servers ] + Parameter #1 [ <optional> string $servers = null ] } - Return [ bool ] } @@ -823,7 +846,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [3] { Parameter #0 [ <required> GearmanWorker $obj ] Parameter #1 [ <required> string $function_name ] - Parameter #2 [ <optional> int $timeout ] + Parameter #2 [ <optional> int $timeout = 0 ] } - Return [ bool ] } @@ -847,6 +870,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> GearmanWorker $obj ] } + - Return [ GearmanWorker|false ] } Function [ <internal:gearman> function gearman_worker_add_function ] { @@ -854,8 +878,8 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Parameter #0 [ <required> GearmanWorker $obj ] Parameter #1 [ <required> string $function_name ] Parameter #2 [ <required> callable $function ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> int $timeout ] + Parameter #3 [ <optional> mixed $context = null ] + Parameter #4 [ <optional> int $timeout = 0 ] } - Return [ bool ] } @@ -898,7 +922,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { } } - Method [ <internal:gearman, dtor> public method __destruct ] { + Method [ <internal:gearman> public method __destruct ] { - Parameters [0] { } @@ -915,6 +939,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [0] { } + - Return [ string|false ] } Method [ <internal:gearman> public method getErrno ] { @@ -973,9 +998,9 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Method [ <internal:gearman> public method addServer ] { - Parameters [3] { - Parameter #0 [ <optional> string $host ] - Parameter #1 [ <optional> int $port ] - Parameter #2 [ <optional> bool $setupExceptionHandler ] + Parameter #0 [ <optional> string $host = null ] + Parameter #1 [ <optional> int $port = 0 ] + Parameter #2 [ <optional> bool $setupExceptionHandler = true ] } - Return [ bool ] } @@ -983,8 +1008,8 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Method [ <internal:gearman> public method addServers ] { - Parameters [2] { - Parameter #0 [ <optional> string $servers ] - Parameter #1 [ <optional> bool $setupExceptionHandler ] + Parameter #0 [ <optional> string $servers = null ] + Parameter #1 [ <optional> bool $setupExceptionHandler = true ] } - Return [ bool ] } @@ -1001,7 +1026,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [3] { Parameter #0 [ <required> string $function ] Parameter #1 [ <required> string $workload ] - Parameter #2 [ <optional> string or NULL $unique ] + Parameter #2 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -1011,7 +1036,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [3] { Parameter #0 [ <required> string $function ] Parameter #1 [ <required> string $workload ] - Parameter #2 [ <optional> string or NULL $unique ] + Parameter #2 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -1021,7 +1046,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [3] { Parameter #0 [ <required> string $function ] Parameter #1 [ <required> string $workload ] - Parameter #2 [ <optional> string or NULL $unique ] + Parameter #2 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -1031,7 +1056,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [3] { Parameter #0 [ <required> string $function ] Parameter #1 [ <required> string $workload ] - Parameter #2 [ <optional> string or NULL $unique ] + Parameter #2 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -1041,7 +1066,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [3] { Parameter #0 [ <required> string $function ] Parameter #1 [ <required> string $workload ] - Parameter #2 [ <optional> string or NULL $unique ] + Parameter #2 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -1051,7 +1076,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [3] { Parameter #0 [ <required> string $function ] Parameter #1 [ <required> string $workload ] - Parameter #2 [ <optional> string or NULL $unique ] + Parameter #2 [ <optional> ?string $unique = null ] } - Return [ string ] } @@ -1098,60 +1123,66 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [4] { Parameter #0 [ <required> string $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> string or NULL $unique_key ] + Parameter #1 [ <required> string|int|float $workload ] + Parameter #2 [ <optional> mixed $context = null ] + Parameter #3 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Method [ <internal:gearman> public method addTaskHigh ] { - Parameters [4] { Parameter #0 [ <required> string $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> string or NULL $unique_key ] + Parameter #1 [ <required> string|int|float $workload ] + Parameter #2 [ <optional> mixed $context = null ] + Parameter #3 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Method [ <internal:gearman> public method addTaskLow ] { - Parameters [4] { Parameter #0 [ <required> string $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> string or NULL $unique_key ] + Parameter #1 [ <required> string|int|float $workload ] + Parameter #2 [ <optional> mixed $context = null ] + Parameter #3 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Method [ <internal:gearman> public method addTaskBackground ] { - Parameters [4] { Parameter #0 [ <required> string $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> string or NULL $unique_key ] + Parameter #1 [ <required> string|int|float $workload ] + Parameter #2 [ <optional> mixed $context = null ] + Parameter #3 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Method [ <internal:gearman> public method addTaskHighBackground ] { - Parameters [4] { Parameter #0 [ <required> string $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> string or NULL $unique_key ] + Parameter #1 [ <required> string|int|float $workload ] + Parameter #2 [ <optional> mixed $context = null ] + Parameter #3 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Method [ <internal:gearman> public method addTaskLowBackground ] { - Parameters [4] { Parameter #0 [ <required> string $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> string or NULL $unique_key ] + Parameter #1 [ <required> string|int|float $workload ] + Parameter #2 [ <optional> mixed $context = null ] + Parameter #3 [ <optional> ?string $unique_key = null ] } + - Return [ GearmanTask|false ] } Method [ <internal:gearman> public method runTasks ] { @@ -1165,7 +1196,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [2] { Parameter #0 [ <required> string $job_handle ] - Parameter #1 [ <optional> $context ] + Parameter #1 [ <optional> mixed $context = null ] } - Return [ GearmanTask ] } @@ -1297,18 +1328,21 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:gearman> public method unique ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:gearman> public method jobHandle ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:gearman> public method isKnown ] { @@ -1329,24 +1363,28 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [0] { } + - Return [ int|bool ] } Method [ <internal:gearman> public method taskDenominator ] { - Parameters [0] { } + - Return [ int|bool ] } Method [ <internal:gearman> public method data ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:gearman> public method dataSize ] { - Parameters [0] { } + - Return [ int|false ] } Method [ <internal:gearman> public method sendWorkload ] { @@ -1354,6 +1392,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> string $data ] } + - Return [ int|false ] } Method [ <internal:gearman> public method recvData ] { @@ -1361,6 +1400,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> int $data_len ] } + - Return [ array|bool ] } } } @@ -1386,7 +1426,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { } } - Method [ <internal:gearman, dtor> public method __destruct ] { + Method [ <internal:gearman> public method __destruct ] { - Parameters [0] { } @@ -1396,26 +1436,28 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [0] { } - - Return [ int or NULL ] + - Return [ ?int ] } Method [ <internal:gearman> public method error ] { - Parameters [0] { } + - Return [ string|false ] } Method [ <internal:gearman> public method getErrno ] { - Parameters [0] { } + - Return [ int|false ] } Method [ <internal:gearman> public method options ] { - Parameters [0] { } - - Return [ int or NULL ] + - Return [ ?int ] } Method [ <internal:gearman> public method setOptions ] { @@ -1423,7 +1465,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> int $option ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Method [ <internal:gearman> public method addOptions ] { @@ -1431,7 +1473,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> int $option ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Method [ <internal:gearman> public method removeOptions ] { @@ -1439,14 +1481,14 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> int $option ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Method [ <internal:gearman> public method timeout ] { - Parameters [0] { } - - Return [ int or NULL ] + - Return [ ?int ] } Method [ <internal:gearman> public method setTimeout ] { @@ -1468,8 +1510,8 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Method [ <internal:gearman> public method addServer ] { - Parameters [2] { - Parameter #0 [ <optional> string $host ] - Parameter #1 [ <optional> int $port ] + Parameter #0 [ <optional> string $host = null ] + Parameter #1 [ <optional> int $port = 0 ] } - Return [ bool ] } @@ -1477,7 +1519,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { Method [ <internal:gearman> public method addServers ] { - Parameters [1] { - Parameter #0 [ <optional> string $servers ] + Parameter #0 [ <optional> string $servers = null ] } - Return [ bool ] } @@ -1493,7 +1535,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [2] { Parameter #0 [ <required> string $function_name ] - Parameter #1 [ <optional> int $timeout ] + Parameter #1 [ <optional> int $timeout = 0 ] } - Return [ bool ] } @@ -1517,6 +1559,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [0] { } + - Return [ GearmanWorker|false ] } Method [ <internal:gearman> public method addFunction ] { @@ -1524,8 +1567,8 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [4] { Parameter #0 [ <required> string $function_name ] Parameter #1 [ <required> callable $function ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> int $timeout ] + Parameter #2 [ <optional> mixed $context = null ] + Parameter #3 [ <optional> int $timeout = 0 ] } - Return [ bool ] } @@ -1562,7 +1605,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { } - Methods [14] { - Method [ <internal:gearman, dtor> public method __destruct ] { + Method [ <internal:gearman> public method __destruct ] { - Parameters [0] { } @@ -1572,7 +1615,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [0] { } - - Return [ int or NULL ] + - Return [ ?int ] } Method [ <internal:gearman> public method setReturn ] { @@ -1580,7 +1623,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> int $gearman_return_t ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Method [ <internal:gearman> public method sendData ] { @@ -1588,7 +1631,7 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [1] { Parameter #0 [ <required> string $data ] } - - Return [ bool or NULL ] + - Return [ ?bool ] } Method [ <internal:gearman> public method sendWarning ] { @@ -1635,18 +1678,21 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:gearman> public method functionName ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:gearman> public method unique ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:gearman> public method workload ] { @@ -1660,12 +1706,12 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Parameters [0] { } - - Return [ int or NULL ] + - Return [ ?int ] } } } - Class [ <internal:gearman> final class GearmanException extends Exception implements Throwable ] { + Class [ <internal:gearman> final class GearmanException extends Exception implements Throwable, Stringable ] { - Constants [0] { } @@ -1677,47 +1723,82 @@ Extension [ <persistent> extension #119 gearman version 2.1.0 ] { } - Properties [4] { - Property [ <default> protected $message ] - Property [ <default> protected $file ] - Property [ <default> protected $line ] - Property [ <default> public $code ] + Property [ protected $message = '' ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] + Property [ public $code = 0 ] } - Methods [10] { Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - Parameters [3] { - Parameter #0 [ <optional> $message ] - Parameter #1 [ <optional> $code ] - Parameter #2 [ <optional> $previous ] + Parameter #0 [ <optional> string $message = "" ] + Parameter #1 [ <optional> int $code = 0 ] + Parameter #2 [ <optional> ?Throwable $previous = null ] } } Method [ <internal:Core, inherits Exception> public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { + + - Parameters [0] { + } } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { + Method [ <internal:Core, inherits Exception, prototype Stringable> public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } diff --git a/php-pecl-gearman.spec b/php-pecl-gearman.spec index 8da46ec..4674333 100644 --- a/php-pecl-gearman.spec +++ b/php-pecl-gearman.spec @@ -8,30 +8,25 @@ # # Please, preserve the changelog entries # -%if 0%{?scl:1} -%global sub_prefix %{scl_prefix} -%scl_package php-pecl-gearman -%endif +%{?scl:%scl_package php-pecl-gearman} %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global pecl_name gearman -%if "%{php_version}" < "5.6" -%global ini_name %{pecl_name}.ini -%else -%global ini_name 40-%{pecl_name}.ini -%endif +%global ini_name 40-%{pecl_name}.ini +%global sources %{pecl_name}-%{version} +%global _configure ../%{sources}/configure -%bcond_without tests +%bcond_without tests -%global extver 2.1.0 -%global libver 1.1.0 +%global extver 2.1.0 +%global libver 1.1.0 -Name: %{?sub_prefix}php-pecl-gearman +Name: %{?scl_prefix}php-pecl-gearman Version: %{extver} -Release: 5%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 6%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} Summary: PHP wrapper to libgearman -License: PHP +License: PHP-3.01 URL: https://pecl.php.net/package/gearman Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz @@ -48,34 +43,17 @@ BuildRequires: autoconf, automake, libtool 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 "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} +%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} == 7 # Other third party repo stuff Obsoletes: php55w-pecl-%{pecl_name} <= %{version} Obsoletes: php56u-pecl-%{pecl_name} <= %{version} Obsoletes: php56w-pecl-%{pecl_name} <= %{version} -%if "%{php_version}" > "7.3" -Obsoletes: php73-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.4" -Obsoletes: php74-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "8.0" -Obsoletes: php80-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "8.1" -Obsoletes: php81-pecl-%{pecl_name} <= %{version} -%endif %endif @@ -90,7 +68,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -mv %{pecl_name}-%{version} NTS # Dont register tests on install sed -e 's/role="test"/role="src"/' \ @@ -98,8 +75,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml -pushd NTS -%patch0 -p1 +pushd %{sources} +%patch -P0 -p1 extver=$(sed -n '/#define PHP_GEARMAN_VERSION/{s/.* "//;s/".*$//;p}' php_gearman.h) if test "x${extver}" != "x%{version}"; then @@ -113,25 +90,27 @@ cat >%{ini_name} <<EOF extension=%{pecl_name}.so EOF -find NTS -type f -exec chmod -x {} \; +find %{sources} -type f -exec chmod -x {} \; +mkdir NTS %if %{with_zts} -cp -pr NTS ZTS +mkdir ZTS %endif %build %{?dtsenable} -cd NTS -%{_bindir}/phpize -%configure --with-php-config=%{_bindir}/php-config +cd %{sources} +%{__phpize} + +cd ../NTS +%configure --with-php-config=%{__phpconfig} make %{?_smp_mflags} %if %{with_zts} cd ../ZTS -%{_bindir}/zts-phpize -%configure --with-php-config=%{_bindir}/zts-php-config +%configure --with-php-config=%{__ztsphpconfig} make %{?_smp_mflags} %endif @@ -154,7 +133,7 @@ install -Dpm644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} # 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 +do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done @@ -166,9 +145,9 @@ done %if %{with tests} : Upstream test suite for NTS extension -cd NTS +cd %{sources} TEST_PHP_EXECUTABLE=%{__php} \ -TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \ +TEST_PHP_ARGS="-n -d extension=$PWD/../NTS/modules/%{pecl_name}.so" \ REPORT_EXIT_STATUS=1 \ %{__php} -n run-tests.php -q --offline --show-diff %endif @@ -202,7 +181,7 @@ fi %files -%{?_licensedir:%license NTS/LICENSE} +%{?_licensedir:%license %{sources}/LICENSE} %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -216,6 +195,9 @@ fi %changelog +* Thu Jul 20 2023 Remi Collet <remi@remirepo.net> - 2.1.0-6 +- build out of sources tree + * Wed Sep 01 2021 Remi Collet <remi@remirepo.net> - 2.1.0-5 - rebuild for 8.1.0RC1 |