diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PHPINFO | 4 | ||||
-rw-r--r-- | REFLECTION | 855 | ||||
-rw-r--r-- | php-pecl-gearman.spec | 54 |
4 files changed, 517 insertions, 398 deletions
@@ -1,5 +1,7 @@ +clog package-*.xml *.tgz +*.tar.bz2 *.tar.gz *.tar.xz *.tar.xz.asc @@ -2,7 +2,7 @@ gearman gearman support => enabled -extension version => 2.0.6 -libgearman version => 1.1.18 +extension version => 2.1.0 +libgearman version => 1.1.19.1 Default TCP Host => localhost Default TCP Port => 4730 @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #109 gearman version 2.0.6 ] { +Extension [ <persistent> extension #119 gearman version 2.1.0 ] { - Constants [157] { Constant [ string GEARMAN_DEFAULT_TCP_HOST ] { localhost } @@ -165,639 +165,714 @@ Extension [ <persistent> extension #109 gearman version 2.0.6 ] { - Parameters [0] { } + - Return [ string ] } Function [ <internal:gearman> function gearman_bugreport ] { - Parameters [0] { } + - Return [ string ] } Function [ <internal:gearman> function gearman_verbose_name ] { - Parameters [1] { - Parameter #0 [ <required> $verbose ] + Parameter #0 [ <required> int $verbose ] } + - Return [ string or NULL ] } Function [ <internal:gearman> function gearman_client_create ] { - Parameters [0] { } } + Function [ <internal:gearman> function gearman_worker_create ] { + + - Parameters [0] { + } + } Function [ <internal:gearman> function gearman_client_return_code ] { - Parameters [1] { - Parameter #0 [ <required> $client_object ] + Parameter #0 [ <required> GearmanClient $obj ] } + - Return [ int or NULL ] } Function [ <internal:gearman> function gearman_client_error ] { - Parameters [1] { - Parameter #0 [ <required> $client_object ] + Parameter #0 [ <required> GearmanClient $obj ] } } Function [ <internal:gearman> function gearman_client_get_errno ] { - Parameters [1] { - Parameter #0 [ <required> $client_object ] + Parameter #0 [ <required> GearmanClient $obj ] } + - Return [ int or NULL ] } Function [ <internal:gearman> function gearman_client_options ] { - Parameters [1] { - Parameter #0 [ <required> $client_object ] + Parameter #0 [ <required> GearmanClient $obj ] } + - Return [ int or NULL ] } Function [ <internal:gearman> function gearman_client_set_options ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $option ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> int $option ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_add_options ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $option ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> int $option ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_remove_options ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $option ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> int $option ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_timeout ] { - Parameters [1] { - Parameter #0 [ <required> $client_object ] + Parameter #0 [ <required> GearmanClient $obj ] } + - Return [ int or NULL ] } Function [ <internal:gearman> function gearman_client_set_timeout ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $timeout ] - } - } - Function [ <internal:gearman> function gearman_client_context ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } - Function [ <internal:gearman> function gearman_client_set_context ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $context ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> int $timeout ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_add_server ] { - Parameters [4] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <optional> $host ] - Parameter #2 [ <optional> $port ] - Parameter #3 [ <optional> $enableExceptionHandler ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <optional> string $host ] + Parameter #2 [ <optional> int $port ] + Parameter #3 [ <optional> bool $setupExceptionHandler ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_add_servers ] { - Parameters [3] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <optional> $servers ] - Parameter #2 [ <optional> $setupExceptionHandler ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <optional> string $servers ] + Parameter #2 [ <optional> bool $setupExceptionHandler ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_wait ] { - Parameters [1] { - Parameter #0 [ <required> $client_object ] + Parameter #0 [ <required> GearmanClient $obj ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_do_normal ] { - Parameters [4] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $unique ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function ] + Parameter #2 [ <required> string $workload ] + Parameter #3 [ <optional> string or NULL $unique ] } + - Return [ string ] } Function [ <internal:gearman> function gearman_client_do_high ] { - Parameters [4] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $unique ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function ] + Parameter #2 [ <required> string $workload ] + Parameter #3 [ <optional> string or NULL $unique ] } + - Return [ string ] } Function [ <internal:gearman> function gearman_client_do_low ] { - Parameters [4] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $unique ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function ] + Parameter #2 [ <required> string $workload ] + Parameter #3 [ <optional> string or NULL $unique ] } + - Return [ string ] } - Function [ <internal:gearman> function gearman_client_do_job_handle ] { + Function [ <internal:gearman> function gearman_client_do_background ] { - - Parameters [1] { - Parameter #0 [ <required> $client_object ] + - Parameters [4] { + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function ] + Parameter #2 [ <required> string $workload ] + Parameter #3 [ <optional> string or NULL $unique ] } + - Return [ string ] } - Function [ <internal:gearman> function gearman_client_do_status ] { + Function [ <internal:gearman> function gearman_client_do_high_background ] { - - Parameters [1] { - Parameter #0 [ <required> $client_object ] + - Parameters [4] { + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function ] + Parameter #2 [ <required> string $workload ] + Parameter #3 [ <optional> string or NULL $unique ] } + - Return [ string ] } - Function [ <internal:gearman> function gearman_client_do_background ] { + Function [ <internal:gearman> function gearman_client_do_low_background ] { - Parameters [4] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $unique ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function ] + Parameter #2 [ <required> string $workload ] + Parameter #3 [ <optional> string or NULL $unique ] } + - Return [ string ] } - Function [ <internal:gearman> function gearman_client_do_high_background ] { + Function [ <internal:gearman> function gearman_client_do_job_handle ] { - - Parameters [4] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $unique ] + - Parameters [1] { + Parameter #0 [ <required> GearmanClient $obj ] } + - Return [ string ] } - Function [ <internal:gearman> function gearman_client_do_low_background ] { + Function [ <internal:gearman> function gearman_client_do_status ] { - - Parameters [4] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $unique ] + - Parameters [1] { + Parameter #0 [ <required> GearmanClient $obj ] } + - Return [ array ] } Function [ <internal:gearman> function gearman_client_job_status ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $job_handle ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $job_handle ] } + - Return [ array ] } Function [ <internal:gearman> function gearman_client_job_status_by_unique_key ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $unique_key ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $unique_key ] } + - Return [ array ] } Function [ <internal:gearman> function gearman_client_ping ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $workload ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $workload ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_add_task ] { - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function_name ] Parameter #2 [ <required> $workload ] Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] + Parameter #4 [ <optional> string or NULL $unique_key ] } } Function [ <internal:gearman> function gearman_client_add_task_high ] { - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function_name ] Parameter #2 [ <required> $workload ] Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] + Parameter #4 [ <optional> string or NULL $unique_key ] } } Function [ <internal:gearman> function gearman_client_add_task_low ] { - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function_name ] Parameter #2 [ <required> $workload ] Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] + Parameter #4 [ <optional> string or NULL $unique_key ] } } Function [ <internal:gearman> function gearman_client_add_task_background ] { - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function_name ] Parameter #2 [ <required> $workload ] Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] + Parameter #4 [ <optional> string or NULL $unique_key ] } } Function [ <internal:gearman> function gearman_client_add_task_high_background ] { - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function_name ] Parameter #2 [ <required> $workload ] Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] + Parameter #4 [ <optional> string or NULL $unique_key ] } } Function [ <internal:gearman> function gearman_client_add_task_low_background ] { - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $function_name ] Parameter #2 [ <required> $workload ] Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] + Parameter #4 [ <optional> string or NULL $unique_key ] } } + Function [ <internal:gearman> function gearman_client_run_tasks ] { + + - Parameters [1] { + Parameter #0 [ <required> GearmanClient $obj ] + } + - Return [ bool ] + } Function [ <internal:gearman> function gearman_client_add_task_status ] { - Parameters [3] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $job_handle ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $job_handle ] Parameter #2 [ <optional> $context ] } + - Return [ GearmanTask ] } Function [ <internal:gearman> function gearman_client_set_workload_callback ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> callable $function ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_set_created_callback ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> callable $function ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_set_data_callback ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> callable $function ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_set_warning_callback ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> callable $function ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_set_status_callback ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> callable $function ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_set_complete_callback ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> callable $function ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_set_exception_callback ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> callable $function ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_set_fail_callback ] { - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> callable $function ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_client_clear_callbacks ] { - Parameters [1] { - Parameter #0 [ <required> $client_object ] + Parameter #0 [ <required> GearmanClient $obj ] } + - Return [ bool ] } - Function [ <internal:gearman> function gearman_client_run_tasks ] { + Function [ <internal:gearman> function gearman_client_context ] { - Parameters [1] { - Parameter #0 [ <required> $client_object ] + Parameter #0 [ <required> GearmanClient $obj ] } + - Return [ string ] + } + Function [ <internal:gearman> function gearman_client_set_context ] { + + - Parameters [2] { + Parameter #0 [ <required> GearmanClient $obj ] + Parameter #1 [ <required> string $data ] + } + - Return [ bool ] + } + Function [ <internal:gearman> function gearman_client_enable_exception_handler ] { + + - Parameters [1] { + Parameter #0 [ <required> GearmanClient $obj ] + } + - Return [ bool ] + } + Function [ <internal:gearman> function gearman_job_return_code ] { + + - Parameters [1] { + Parameter #0 [ <required> GearmanJob $obj ] + } + - Return [ int or NULL ] + } + Function [ <internal:gearman> function gearman_job_set_return ] { + + - Parameters [2] { + Parameter #0 [ <required> GearmanJob $obj ] + Parameter #1 [ <required> int $gearman_return_t ] + } + - Return [ bool or NULL ] + } + Function [ <internal:gearman> function gearman_job_send_data ] { + + - Parameters [2] { + Parameter #0 [ <required> GearmanJob $obj ] + Parameter #1 [ <required> string $data ] + } + - Return [ bool or NULL ] + } + Function [ <internal:gearman> function gearman_job_send_warning ] { + + - Parameters [2] { + Parameter #0 [ <required> GearmanJob $obj ] + Parameter #1 [ <required> string $warning ] + } + - Return [ bool ] + } + Function [ <internal:gearman> function gearman_job_send_status ] { + + - Parameters [3] { + Parameter #0 [ <required> GearmanJob $obj ] + Parameter #1 [ <required> int $numerator ] + Parameter #2 [ <required> int $denominator ] + } + - Return [ bool ] + } + Function [ <internal:gearman> function gearman_job_send_complete ] { + + - Parameters [2] { + Parameter #0 [ <required> GearmanJob $obj ] + Parameter #1 [ <required> string $result ] + } + - Return [ bool ] + } + Function [ <internal:gearman> function gearman_job_send_exception ] { + + - Parameters [2] { + Parameter #0 [ <required> GearmanJob $obj ] + Parameter #1 [ <required> string $exception ] + } + - Return [ bool ] + } + Function [ <internal:gearman> function gearman_job_send_fail ] { + + - Parameters [1] { + Parameter #0 [ <required> GearmanJob $obj ] + } + - Return [ bool ] + } + Function [ <internal:gearman> function gearman_job_handle ] { + + - Parameters [1] { + Parameter #0 [ <required> GearmanJob $obj ] + } + } + Function [ <internal:gearman> function gearman_job_function_name ] { + + - Parameters [1] { + Parameter #0 [ <required> GearmanJob $obj ] + } + } + Function [ <internal:gearman> function gearman_job_unique ] { + + - Parameters [1] { + Parameter #0 [ <required> GearmanJob $obj ] + } + } + Function [ <internal:gearman> function gearman_job_workload ] { + + - Parameters [1] { + Parameter #0 [ <required> GearmanJob $obj ] + } + - Return [ string ] + } + Function [ <internal:gearman> function gearman_job_workload_size ] { + + - Parameters [1] { + Parameter #0 [ <required> GearmanJob $obj ] + } + - Return [ int or NULL ] } Function [ <internal:gearman> function gearman_task_return_code ] { - Parameters [1] { - Parameter #0 [ <required> $task_object ] + Parameter #0 [ <required> GearmanTask $obj ] } + - Return [ int or NULL ] } Function [ <internal:gearman> function gearman_task_function_name ] { - Parameters [1] { - Parameter #0 [ <required> $task_object ] + Parameter #0 [ <required> GearmanTask $obj ] } } Function [ <internal:gearman> function gearman_task_unique ] { - Parameters [1] { - Parameter #0 [ <required> $task_object ] + Parameter #0 [ <required> GearmanTask $obj ] } } Function [ <internal:gearman> function gearman_task_job_handle ] { - Parameters [1] { - Parameter #0 [ <required> $task_object ] + Parameter #0 [ <required> GearmanTask $obj ] } } Function [ <internal:gearman> function gearman_task_is_known ] { - Parameters [1] { - Parameter #0 [ <required> $task_object ] + Parameter #0 [ <required> GearmanTask $obj ] } + - Return [ bool or NULL ] } Function [ <internal:gearman> function gearman_task_is_running ] { - Parameters [1] { - Parameter #0 [ <required> $task_object ] + Parameter #0 [ <required> GearmanTask $obj ] } + - Return [ bool or NULL ] } Function [ <internal:gearman> function gearman_task_numerator ] { - Parameters [1] { - Parameter #0 [ <required> $task_object ] + Parameter #0 [ <required> GearmanTask $obj ] } } Function [ <internal:gearman> function gearman_task_denominator ] { - Parameters [1] { - Parameter #0 [ <required> $task_object ] + Parameter #0 [ <required> GearmanTask $obj ] } } Function [ <internal:gearman> function gearman_task_data ] { - Parameters [1] { - Parameter #0 [ <required> $task_object ] + Parameter #0 [ <required> GearmanTask $obj ] } } Function [ <internal:gearman> function gearman_task_data_size ] { - Parameters [1] { - Parameter #0 [ <required> $task_object ] + Parameter #0 [ <required> GearmanTask $obj ] } } Function [ <internal:gearman> function gearman_task_send_workload ] { - Parameters [2] { - Parameter #0 [ <required> $task_object ] - Parameter #1 [ <required> $data ] + Parameter #0 [ <required> GearmanTask $obj ] + Parameter #1 [ <required> string $data ] } } Function [ <internal:gearman> function gearman_task_recv_data ] { - Parameters [2] { - Parameter #0 [ <required> $task_object ] - Parameter #1 [ <required> $data_len ] + Parameter #0 [ <required> GearmanTask $obj ] + Parameter #1 [ <required> int $data_len ] } } Function [ <internal:gearman> function gearman_worker_return_code ] { - Parameters [1] { - Parameter #0 [ <required> $worker_object ] - } - } - Function [ <internal:gearman> function gearman_worker_create ] { - - - Parameters [0] { + Parameter #0 [ <required> GearmanWorker $obj ] } + - Return [ int or NULL ] } Function [ <internal:gearman> function gearman_worker_error ] { - Parameters [1] { - Parameter #0 [ <required> $worker_object ] + Parameter #0 [ <required> GearmanWorker $obj ] } } Function [ <internal:gearman> function gearman_worker_errno ] { - Parameters [1] { - Parameter #0 [ <required> $worker_object ] + Parameter #0 [ <required> GearmanWorker $obj ] } } Function [ <internal:gearman> function gearman_worker_options ] { - Parameters [1] { - Parameter #0 [ <required> $worker_object ] + Parameter #0 [ <required> GearmanWorker $obj ] } + - Return [ int or NULL ] } Function [ <internal:gearman> function gearman_worker_set_options ] { - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $option ] + Parameter #0 [ <required> GearmanWorker $obj ] + Parameter #1 [ <required> int $option ] } + - Return [ bool or NULL ] } Function [ <internal:gearman> function gearman_worker_add_options ] { - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $option ] + Parameter #0 [ <required> GearmanWorker $obj ] + Parameter #1 [ <required> int $option ] } + - Return [ bool or NULL ] } Function [ <internal:gearman> function gearman_worker_remove_options ] { - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $option ] + Parameter #0 [ <required> GearmanWorker $obj ] + Parameter #1 [ <required> int $option ] } + - Return [ bool or NULL ] } Function [ <internal:gearman> function gearman_worker_timeout ] { - Parameters [1] { - Parameter #0 [ <required> $worker_object ] + Parameter #0 [ <required> GearmanWorker $obj ] } + - Return [ int or NULL ] } Function [ <internal:gearman> function gearman_worker_set_timeout ] { - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $timeout ] + Parameter #0 [ <required> GearmanWorker $obj ] + Parameter #1 [ <required> int $timeout ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_worker_set_id ] { - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $id ] + Parameter #0 [ <required> GearmanWorker $obj ] + Parameter #1 [ <required> string $id ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_worker_add_server ] { - Parameters [3] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <optional> $host ] - Parameter #2 [ <optional> $port ] + Parameter #0 [ <required> GearmanWorker $obj ] + Parameter #1 [ <optional> string $host ] + Parameter #2 [ <optional> int $port ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_worker_add_servers ] { - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $servers ] + Parameter #0 [ <required> GearmanWorker $obj ] + Parameter #1 [ <optional> string $servers ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_worker_wait ] { - Parameters [1] { - Parameter #0 [ <required> $worker_object ] + Parameter #0 [ <required> GearmanWorker $obj ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_worker_register ] { - Parameters [3] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <optional> $timeout ] + Parameter #0 [ <required> GearmanWorker $obj ] + Parameter #1 [ <required> string $function_name ] + Parameter #2 [ <optional> int $timeout ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_worker_unregister ] { - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $function_name ] + Parameter #0 [ <required> GearmanWorker $obj ] + Parameter #1 [ <required> string $function_name ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_worker_unregister_all ] { - Parameters [1] { - Parameter #0 [ <required> $worker_object ] + Parameter #0 [ <required> GearmanWorker $obj ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_worker_grab_job ] { - Parameters [1] { - Parameter #0 [ <required> $worker_object ] + Parameter #0 [ <required> GearmanWorker $obj ] } } Function [ <internal:gearman> function gearman_worker_add_function ] { - Parameters [5] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $function ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $timeout ] + 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 ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_worker_work ] { - Parameters [1] { - Parameter #0 [ <required> $worker_object ] + Parameter #0 [ <required> GearmanWorker $obj ] } + - Return [ bool ] } Function [ <internal:gearman> function gearman_worker_ping ] { - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $workload ] - } - } - Function [ <internal:gearman> function gearman_job_return_code ] { - - - Parameters [1] { - Parameter #0 [ <required> $job_object ] - } - } - Function [ <internal:gearman> function gearman_job_set_return ] { - - - Parameters [2] { - Parameter #0 [ <required> $job_object ] - Parameter #1 [ <required> $gearman_return_t ] - } - } - Function [ <internal:gearman> function gearman_job_send_data ] { - - - Parameters [2] { - Parameter #0 [ <required> $job_object ] - Parameter #1 [ <required> $data ] - } - } - Function [ <internal:gearman> function gearman_job_send_warning ] { - - - Parameters [2] { - Parameter #0 [ <required> $job_object ] - Parameter #1 [ <required> $warning ] - } - } - Function [ <internal:gearman> function gearman_job_send_status ] { - - - Parameters [3] { - Parameter #0 [ <required> $job_object ] - Parameter #1 [ <required> $numerator ] - Parameter #2 [ <required> $denominator ] - } - } - Function [ <internal:gearman> function gearman_job_send_complete ] { - - - Parameters [2] { - Parameter #0 [ <required> $job_object ] - Parameter #1 [ <required> $result ] - } - } - Function [ <internal:gearman> function gearman_job_send_exception ] { - - - Parameters [2] { - Parameter #0 [ <required> $job_object ] - Parameter #1 [ <required> $exception ] - } - } - Function [ <internal:gearman> function gearman_job_send_fail ] { - - - Parameters [1] { - Parameter #0 [ <required> $job_object ] - } - } - Function [ <internal:gearman> function gearman_job_handle ] { - - - Parameters [1] { - Parameter #0 [ <required> $job_object ] - } - } - Function [ <internal:gearman> function gearman_job_function_name ] { - - - Parameters [1] { - Parameter #0 [ <required> $job_object ] - } - } - Function [ <internal:gearman> function gearman_job_unique ] { - - - Parameters [1] { - Parameter #0 [ <required> $job_object ] - } - } - Function [ <internal:gearman> function gearman_job_workload ] { - - - Parameters [1] { - Parameter #0 [ <required> $job_object ] - } - } - Function [ <internal:gearman> function gearman_job_workload_size ] { - - - Parameters [1] { - Parameter #0 [ <required> $job_object ] + Parameter #0 [ <required> GearmanWorker $obj ] + Parameter #1 [ <required> string $data ] } + - Return [ bool ] } } @@ -833,6 +908,7 @@ Extension [ <persistent> extension #109 gearman version 2.0.6 ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:gearman> public method error ] { @@ -845,311 +921,346 @@ Extension [ <persistent> extension #109 gearman version 2.0.6 ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:gearman> public method options ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:gearman> public method setOptions ] { - Parameters [1] { - Parameter #0 [ <required> $option ] + Parameter #0 [ <required> int $option ] } + - Return [ bool ] } Method [ <internal:gearman> public method addOptions ] { - Parameters [1] { - Parameter #0 [ <required> $option ] + Parameter #0 [ <required> int $option ] } + - Return [ bool ] } Method [ <internal:gearman> public method removeOptions ] { - Parameters [1] { - Parameter #0 [ <required> $option ] + Parameter #0 [ <required> int $option ] } + - Return [ bool ] } Method [ <internal:gearman> public method timeout ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:gearman> public method setTimeout ] { - Parameters [1] { - Parameter #0 [ <required> $timeout ] - } - } - - Method [ <internal:gearman> public method context ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method setContext ] { - - - Parameters [1] { - Parameter #0 [ <required> $context ] + Parameter #0 [ <required> int $timeout ] } + - Return [ bool ] } Method [ <internal:gearman> public method addServer ] { - Parameters [3] { - Parameter #0 [ <optional> $host ] - Parameter #1 [ <optional> $port ] - Parameter #2 [ <optional> $enableExceptionHandler ] + Parameter #0 [ <optional> string $host ] + Parameter #1 [ <optional> int $port ] + Parameter #2 [ <optional> bool $setupExceptionHandler ] } + - Return [ bool ] } Method [ <internal:gearman> public method addServers ] { - Parameters [2] { - Parameter #0 [ <optional> $servers ] - Parameter #1 [ <optional> $setupExceptionHandler ] + Parameter #0 [ <optional> string $servers ] + Parameter #1 [ <optional> bool $setupExceptionHandler ] } + - Return [ bool ] } Method [ <internal:gearman> public method wait ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:gearman> public method doNormal ] { - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] + Parameter #0 [ <required> string $function ] + Parameter #1 [ <required> string $workload ] + Parameter #2 [ <optional> string or NULL $unique ] } + - Return [ string ] } Method [ <internal:gearman> public method doHigh ] { - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] + Parameter #0 [ <required> string $function ] + Parameter #1 [ <required> string $workload ] + Parameter #2 [ <optional> string or NULL $unique ] } + - Return [ string ] } - Method [ <internal:gearman> public method doLow ] { + Method [ <internal:gearman> public method dolow ] { - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] + Parameter #0 [ <required> string $function ] + Parameter #1 [ <required> string $workload ] + Parameter #2 [ <optional> string or NULL $unique ] } + - Return [ string ] } Method [ <internal:gearman> public method doBackground ] { - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] + Parameter #0 [ <required> string $function ] + Parameter #1 [ <required> string $workload ] + Parameter #2 [ <optional> string or NULL $unique ] } + - Return [ string ] } Method [ <internal:gearman> public method doHighBackground ] { - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] + Parameter #0 [ <required> string $function ] + Parameter #1 [ <required> string $workload ] + Parameter #2 [ <optional> string or NULL $unique ] } + - Return [ string ] } Method [ <internal:gearman> public method doLowBackground ] { - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] + Parameter #0 [ <required> string $function ] + Parameter #1 [ <required> string $workload ] + Parameter #2 [ <optional> string or NULL $unique ] } + - Return [ string ] } Method [ <internal:gearman> public method doJobHandle ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:gearman> public method doStatus ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:gearman> public method jobStatus ] { - Parameters [1] { - Parameter #0 [ <required> $job_handle ] + Parameter #0 [ <required> string $job_handle ] } + - Return [ array ] } Method [ <internal:gearman> public method jobStatusByUniqueKey ] { - Parameters [1] { - Parameter #0 [ <required> $unique_key ] + Parameter #0 [ <required> string $unique_key ] } + - Return [ array ] } Method [ <internal:gearman> public method ping ] { - Parameters [1] { - Parameter #0 [ <required> $workload ] + Parameter #0 [ <required> string $workload ] } + - Return [ bool ] } Method [ <internal:gearman> public method addTask ] { - Parameters [4] { - Parameter #0 [ <required> $function_name ] + Parameter #0 [ <required> string $function_name ] Parameter #1 [ <required> $workload ] Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] + Parameter #3 [ <optional> string or NULL $unique_key ] } } Method [ <internal:gearman> public method addTaskHigh ] { - Parameters [4] { - Parameter #0 [ <required> $function_name ] + Parameter #0 [ <required> string $function_name ] Parameter #1 [ <required> $workload ] Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] + Parameter #3 [ <optional> string or NULL $unique_key ] } } Method [ <internal:gearman> public method addTaskLow ] { - Parameters [4] { - Parameter #0 [ <required> $function_name ] + Parameter #0 [ <required> string $function_name ] Parameter #1 [ <required> $workload ] Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] + Parameter #3 [ <optional> string or NULL $unique_key ] } } Method [ <internal:gearman> public method addTaskBackground ] { - Parameters [4] { - Parameter #0 [ <required> $function_name ] + Parameter #0 [ <required> string $function_name ] Parameter #1 [ <required> $workload ] Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] + Parameter #3 [ <optional> string or NULL $unique_key ] } } Method [ <internal:gearman> public method addTaskHighBackground ] { - Parameters [4] { - Parameter #0 [ <required> $function_name ] + Parameter #0 [ <required> string $function_name ] Parameter #1 [ <required> $workload ] Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] + Parameter #3 [ <optional> string or NULL $unique_key ] } } Method [ <internal:gearman> public method addTaskLowBackground ] { - Parameters [4] { - Parameter #0 [ <required> $function_name ] + Parameter #0 [ <required> string $function_name ] Parameter #1 [ <required> $workload ] Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] + Parameter #3 [ <optional> string or NULL $unique_key ] + } + } + + Method [ <internal:gearman> public method runTasks ] { + + - Parameters [0] { } + - Return [ bool ] } Method [ <internal:gearman> public method addTaskStatus ] { - Parameters [2] { - Parameter #0 [ <required> $job_handle ] + Parameter #0 [ <required> string $job_handle ] Parameter #1 [ <optional> $context ] } + - Return [ GearmanTask ] } Method [ <internal:gearman> public method setWorkloadCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> callable $function ] } + - Return [ bool ] } Method [ <internal:gearman> public method setCreatedCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> callable $function ] } + - Return [ bool ] } Method [ <internal:gearman> public method setDataCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> callable $function ] } + - Return [ bool ] } Method [ <internal:gearman> public method setWarningCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> callable $function ] } + - Return [ bool ] } Method [ <internal:gearman> public method setStatusCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> callable $function ] } + - Return [ bool ] } Method [ <internal:gearman> public method setCompleteCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> callable $function ] } + - Return [ bool ] } Method [ <internal:gearman> public method setExceptionCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> callable $function ] } + - Return [ bool ] } Method [ <internal:gearman> public method setFailCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> callable $function ] } + - Return [ bool ] } Method [ <internal:gearman> public method clearCallbacks ] { - Parameters [0] { } + - Return [ bool ] } - Method [ <internal:gearman> public method runTasks ] { + Method [ <internal:gearman> public method context ] { - Parameters [0] { } + - Return [ string ] + } + + Method [ <internal:gearman> public method setContext ] { + + - Parameters [1] { + Parameter #0 [ <required> string $data ] + } + - Return [ bool ] } Method [ <internal:gearman> public method enableExceptionHandler ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -1168,23 +1279,18 @@ Extension [ <persistent> extension #109 gearman version 2.0.6 ] { - Properties [0] { } - - Methods [14] { + - Methods [13] { Method [ <internal:gearman, ctor> public method __construct ] { - Parameters [0] { } } - Method [ <internal:gearman, dtor> public method __destruct ] { - - - Parameters [0] { - } - } - Method [ <internal:gearman> public method returnCode ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:gearman> public method functionName ] { @@ -1209,12 +1315,14 @@ Extension [ <persistent> extension #109 gearman version 2.0.6 ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:gearman> public method isRunning ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:gearman> public method taskNumerator ] { @@ -1229,29 +1337,29 @@ Extension [ <persistent> extension #109 gearman version 2.0.6 ] { } } - Method [ <internal:gearman> public method sendWorkload ] { + Method [ <internal:gearman> public method data ] { - - Parameters [1] { - Parameter #0 [ <required> $data ] + - Parameters [0] { } } - Method [ <internal:gearman> public method data ] { + Method [ <internal:gearman> public method dataSize ] { - Parameters [0] { } } - Method [ <internal:gearman> public method dataSize ] { + Method [ <internal:gearman> public method sendWorkload ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <required> string $data ] } } Method [ <internal:gearman> public method recvData ] { - Parameters [1] { - Parameter #0 [ <required> $data_len ] + Parameter #0 [ <required> int $data_len ] } } } @@ -1288,6 +1396,7 @@ Extension [ <persistent> extension #109 gearman version 2.0.6 ] { - Parameters [0] { } + - Return [ int or NULL ] } Method [ <internal:gearman> public method error ] { @@ -1306,89 +1415,102 @@ Extension [ <persistent> extension #109 gearman version 2.0.6 ] { - Parameters [0] { } + - Return [ int or NULL ] } Method [ <internal:gearman> public method setOptions ] { - Parameters [1] { - Parameter #0 [ <required> $option ] + Parameter #0 [ <required> int $option ] } + - Return [ bool or NULL ] } Method [ <internal:gearman> public method addOptions ] { - Parameters [1] { - Parameter #0 [ <required> $option ] + Parameter #0 [ <required> int $option ] } + - Return [ bool or NULL ] } Method [ <internal:gearman> public method removeOptions ] { - Parameters [1] { - Parameter #0 [ <required> $option ] + Parameter #0 [ <required> int $option ] } + - Return [ bool or NULL ] } Method [ <internal:gearman> public method timeout ] { - Parameters [0] { } + - Return [ int or NULL ] } Method [ <internal:gearman> public method setTimeout ] { - Parameters [1] { - Parameter #0 [ <required> $timeout ] + Parameter #0 [ <required> int $timeout ] } + - Return [ bool ] } Method [ <internal:gearman> public method setId ] { - Parameters [1] { - Parameter #0 [ <required> $id ] + Parameter #0 [ <required> string $id ] } + - Return [ bool ] } Method [ <internal:gearman> public method addServer ] { - Parameters [2] { - Parameter #0 [ <optional> $host ] - Parameter #1 [ <optional> $port ] + Parameter #0 [ <optional> string $host ] + Parameter #1 [ <optional> int $port ] } + - Return [ bool ] } Method [ <internal:gearman> public method addServers ] { - Parameters [1] { - Parameter #0 [ <required> $servers ] + Parameter #0 [ <optional> string $servers ] } + - Return [ bool ] } Method [ <internal:gearman> public method wait ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:gearman> public method register ] { - Parameters [2] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <optional> $timeout ] + Parameter #0 [ <required> string $function_name ] + Parameter #1 [ <optional> int $timeout ] } + - Return [ bool ] } Method [ <internal:gearman> public method unregister ] { - Parameters [1] { - Parameter #0 [ <required> $function_name ] + Parameter #0 [ <required> string $function_name ] } + - Return [ bool ] } Method [ <internal:gearman> public method unregisterAll ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:gearman> public method grabJob ] { @@ -1400,24 +1522,27 @@ Extension [ <persistent> extension #109 gearman version 2.0.6 ] { Method [ <internal:gearman> public method addFunction ] { - Parameters [4] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $function ] - Parameter #2 [ <optional> $data ] - Parameter #3 [ <optional> $timeout ] + Parameter #0 [ <required> string $function_name ] + Parameter #1 [ <required> callable $function ] + Parameter #2 [ <optional> $context ] + Parameter #3 [ <optional> int $timeout ] } + - Return [ bool ] } Method [ <internal:gearman> public method work ] { - Parameters [0] { } + - Return [ bool ] } - Method [ <internal:gearman> public method echo ] { + Method [ <internal:gearman> public method ping ] { - Parameters [1] { - Parameter #0 [ <required> $workload ] + Parameter #0 [ <required> string $data ] } + - Return [ bool ] } } } @@ -1447,55 +1572,63 @@ Extension [ <persistent> extension #109 gearman version 2.0.6 ] { - Parameters [0] { } + - Return [ int or NULL ] } Method [ <internal:gearman> public method setReturn ] { - Parameters [1] { - Parameter #0 [ <required> $gearman_return_t ] + Parameter #0 [ <required> int $gearman_return_t ] } + - Return [ bool or NULL ] } Method [ <internal:gearman> public method sendData ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> string $data ] } + - Return [ bool or NULL ] } Method [ <internal:gearman> public method sendWarning ] { - Parameters [1] { - Parameter #0 [ <required> $warning ] + Parameter #0 [ <required> string $warning ] } + - Return [ bool ] } Method [ <internal:gearman> public method sendStatus ] { - Parameters [2] { - Parameter #0 [ <required> $numerator ] - Parameter #1 [ <required> $denominator ] + Parameter #0 [ <required> int $numerator ] + Parameter #1 [ <required> int $denominator ] } + - Return [ bool ] } Method [ <internal:gearman> public method sendComplete ] { - Parameters [1] { - Parameter #0 [ <required> $result ] + Parameter #0 [ <required> string $result ] } + - Return [ bool ] } Method [ <internal:gearman> public method sendException ] { - Parameters [1] { - Parameter #0 [ <required> $exception ] + Parameter #0 [ <required> string $exception ] } + - Return [ bool ] } Method [ <internal:gearman> public method sendFail ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:gearman> public method handle ] { @@ -1520,12 +1653,14 @@ Extension [ <persistent> extension #109 gearman version 2.0.6 ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:gearman> public method workloadSize ] { - Parameters [0] { } + - Return [ int or NULL ] } } } diff --git a/php-pecl-gearman.spec b/php-pecl-gearman.spec index 66935d5..0349188 100644 --- a/php-pecl-gearman.spec +++ b/php-pecl-gearman.spec @@ -13,12 +13,6 @@ %scl_package php-pecl-gearman %endif -%global gh_commit afd2ed880c67455fbf28097dfde7bd3e368c183e -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_date 20200120 -%global gh_owner wcgallego -%global gh_project pecl-gearman -%global with_tests 0%{?_with_tests:1} %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global pecl_name gearman %if "%{php_version}" < "5.6" @@ -27,22 +21,24 @@ %global ini_name 40-%{pecl_name}.ini %endif -%global extver 2.0.6 +%global extver 2.1.0 %global libver 1.1.0 Name: %{?sub_prefix}php-pecl-gearman Version: %{extver} -Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} Summary: PHP wrapper to libgearman License: PHP -URL: https://github.com/%{gh_owner}/%{gh_project} -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}%{?prever}-%{gh_short}.tar.gz +URL: https://pecl.php.net/package/gearman +Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz BuildRequires: libgearman-devel > %{libver} +BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel > 7 +BuildRequires: %{?dtsprefix}gcc +BuildRequires: %{?scl_prefix}php-devel >= 7.0 BuildRequires: %{?scl_prefix}php-pear # Required by phpize BuildRequires: autoconf, automake, libtool @@ -60,32 +56,20 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{rele Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} %endif -%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} +%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # 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.1" -Obsoletes: php71u-pecl-%{pecl_name} <= %{version} -Obsoletes: php71w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.2" -Obsoletes: php72u-pecl-%{pecl_name} <= %{version} -Obsoletes: php72w-pecl-%{pecl_name} <= %{version} -%endif %if "%{php_version}" > "7.3" Obsoletes: php73-pecl-%{pecl_name} <= %{version} -Obsoletes: php73w-pecl-%{pecl_name} <= %{version} %endif %if "%{php_version}" > "7.4" Obsoletes: php74-pecl-%{pecl_name} <= %{version} -Obsoletes: php74w-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "8.0" +Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter shared private -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} %endif @@ -100,13 +84,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -mv %{gh_project}-%{gh_commit} NTS -%{__php} -r ' - $pkg = simplexml_load_file("NTS/package.xml"); - $pkg->date = substr("%{gh_date}",0,4)."-".substr("%{gh_date}",4,2)."-".substr("%{gh_date}",6,2); - $pkg->version->release = "%{version}"; - $pkg->asXML("package.xml"); -' +mv %{pecl_name}-%{version} NTS # Dont register tests on install sed -e 's/role="test"/role="src"/' \ @@ -174,13 +152,13 @@ done : Minimal load test for NTS extension %{__php} --no-php-ini \ --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ - --modules | grep %{pecl_name} + --modules | grep '^%{pecl_name}$' %if %{with_zts} : Minimal load test for ZTS extension %{__ztsphp} --no-php-ini \ --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ - --modules | grep %{pecl_name} + --modules | grep '^%{pecl_name}$' %endif @@ -219,6 +197,10 @@ fi %changelog +* Sun Jan 17 2021 Remi Collet <remi@remirepo.net> - 2.1.0-1 +- update to 2.1.0 +- sources from pecl + * Thu Feb 6 2020 Remi Collet <remi@remirepo.net> - 2.0.6-2 - add upstream patch for PHP 7.4 https://github.com/remicollet/remirepo/issues/139 |