diff options
author | Remi Collet <remi@remirepo.net> | 2017-10-03 13:55:51 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-10-03 13:55:51 +0200 |
commit | df19d061676a4bc5321b105bedaa4c67a6f298d8 (patch) | |
tree | 08e07b52a787d965bf5051404caab857cd078daa | |
parent | 1a73ca58576b330f564e990d9c117429c2c8f3f1 (diff) |
switcvh
-rw-r--r-- | REFLECTION | 186 | ||||
-rw-r--r-- | REFLECTION-DEV | 1581 | ||||
-rw-r--r-- | php-pecl-gearman-dev.spec | 348 | ||||
-rw-r--r-- | php-pecl-gearman.spec | 65 |
4 files changed, 138 insertions, 2042 deletions
@@ -1,4 +1,4 @@ -Extension [ <persistent> extension #85 gearman version 1.1.2 ] { +Extension [ <persistent> extension #86 gearman version 2.0.3 ] { - Constants [157] { Constant [ string GEARMAN_DEFAULT_TCP_HOST ] { localhost } @@ -63,7 +63,7 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { Constant [ integer GEARMAN_IGNORE_PACKET ] { 45 } Constant [ integer GEARMAN_UNKNOWN_OPTION ] { 46 } Constant [ integer GEARMAN_TIMEOUT ] { 47 } - Constant [ integer GEARMAN_MAX_RETURN ] { 52 } + Constant [ integer GEARMAN_MAX_RETURN ] { 53 } Constant [ integer GEARMAN_VERBOSE_FATAL ] { 1 } Constant [ integer GEARMAN_VERBOSE_ERROR ] { 2 } Constant [ integer GEARMAN_VERBOSE_INFO ] { 3 } @@ -177,19 +177,12 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { Parameter #0 [ <required> $verbose ] } } - Function [ <internal:gearman> function gearman_client_return_code ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } Function [ <internal:gearman> function gearman_client_create ] { - - Parameters [1] { - Parameter #0 [ <required> $client_object ] + - Parameters [0] { } } - Function [ <internal:gearman> function gearman_client_clone ] { + Function [ <internal:gearman> function gearman_client_return_code ] { - Parameters [1] { Parameter #0 [ <required> $client_object ] @@ -201,7 +194,7 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { Parameter #0 [ <required> $client_object ] } } - Function [ <internal:gearman> function gearman_client_errno ] { + Function [ <internal:gearman> function gearman_client_get_errno ] { - Parameters [1] { Parameter #0 [ <required> $client_object ] @@ -281,15 +274,6 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { Parameter #0 [ <required> $client_object ] } } - Function [ <internal:gearman> function gearman_client_do ] { - - - Parameters [4] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $unique ] - } - } Function [ <internal:gearman> function gearman_client_do_normal ] { - Parameters [4] { @@ -370,13 +354,6 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { Parameter #1 [ <required> $unique_key ] } } - Function [ <internal:gearman> function gearman_client_echo ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $workload ] - } - } Function [ <internal:gearman> function gearman_client_ping ] { - Parameters [2] { @@ -452,63 +429,63 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { Parameter #2 [ <optional> $context ] } } - Function [ <internal:gearman> function gearman_client_set_workload_fn ] { + Function [ <internal:gearman> function gearman_client_set_workload_callback ] { - Parameters [2] { Parameter #0 [ <required> $client_object ] Parameter #1 [ <required> $callback ] } } - Function [ <internal:gearman> function gearman_client_set_created_fn ] { + Function [ <internal:gearman> function gearman_client_set_created_callback ] { - Parameters [2] { Parameter #0 [ <required> $client_object ] Parameter #1 [ <required> $callback ] } } - Function [ <internal:gearman> function gearman_client_set_data_fn ] { + Function [ <internal:gearman> function gearman_client_set_data_callback ] { - Parameters [2] { Parameter #0 [ <required> $client_object ] Parameter #1 [ <required> $callback ] } } - Function [ <internal:gearman> function gearman_client_set_warning_fn ] { + Function [ <internal:gearman> function gearman_client_set_warning_callback ] { - Parameters [2] { Parameter #0 [ <required> $client_object ] Parameter #1 [ <required> $callback ] } } - Function [ <internal:gearman> function gearman_client_set_status_fn ] { + Function [ <internal:gearman> function gearman_client_set_status_callback ] { - Parameters [2] { Parameter #0 [ <required> $client_object ] Parameter #1 [ <required> $callback ] } } - Function [ <internal:gearman> function gearman_client_set_complete_fn ] { + Function [ <internal:gearman> function gearman_client_set_complete_callback ] { - Parameters [2] { Parameter #0 [ <required> $client_object ] Parameter #1 [ <required> $callback ] } } - Function [ <internal:gearman> function gearman_client_set_exception_fn ] { + Function [ <internal:gearman> function gearman_client_set_exception_callback ] { - Parameters [2] { Parameter #0 [ <required> $client_object ] Parameter #1 [ <required> $callback ] } } - Function [ <internal:gearman> function gearman_client_set_fail_fn ] { + Function [ <internal:gearman> function gearman_client_set_fail_callback ] { - Parameters [2] { Parameter #0 [ <required> $client_object ] Parameter #1 [ <required> $callback ] } } - Function [ <internal:gearman> function gearman_client_clear_fn ] { + Function [ <internal:gearman> function gearman_client_clear_callbacks ] { - Parameters [1] { Parameter #0 [ <required> $client_object ] @@ -517,7 +494,7 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { Function [ <internal:gearman> function gearman_client_run_tasks ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> $client_object ] } } Function [ <internal:gearman> function gearman_task_return_code ] { @@ -568,23 +545,23 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { Parameter #0 [ <required> $task_object ] } } - Function [ <internal:gearman> function gearman_task_send_workload ] { + Function [ <internal:gearman> function gearman_task_data ] { - - Parameters [2] { + - Parameters [1] { Parameter #0 [ <required> $task_object ] - Parameter #1 [ <required> $data ] } } - Function [ <internal:gearman> function gearman_task_data ] { + Function [ <internal:gearman> function gearman_task_data_size ] { - Parameters [1] { Parameter #0 [ <required> $task_object ] } } - Function [ <internal:gearman> function gearman_task_data_size ] { + Function [ <internal:gearman> function gearman_task_send_workload ] { - - Parameters [1] { + - Parameters [2] { Parameter #0 [ <required> $task_object ] + Parameter #1 [ <required> $data ] } } Function [ <internal:gearman> function gearman_task_recv_data ] { @@ -605,12 +582,6 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { - Parameters [0] { } } - Function [ <internal:gearman> function gearman_worker_clone ] { - - - Parameters [1] { - Parameter #0 [ <required> $worker_object ] - } - } Function [ <internal:gearman> function gearman_worker_error ] { - Parameters [1] { @@ -734,7 +705,7 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { Parameter #0 [ <required> $worker_object ] } } - Function [ <internal:gearman> function gearman_worker_echo ] { + Function [ <internal:gearman> function gearman_worker_ping ] { - Parameters [2] { Parameter #0 [ <required> $worker_object ] @@ -747,6 +718,13 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { 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] { @@ -836,17 +814,20 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { - Properties [0] { } - - Methods [46] { + - Methods [44] { Method [ <internal:gearman, ctor> public method __construct ] { + + - Parameters [0] { + } } - Method [ <internal:gearman> public method returnCode ] { + Method [ <internal:gearman, dtor> public method __destruct ] { - Parameters [0] { } } - Method [ <internal:gearman> public method clone ] { + Method [ <internal:gearman> public method returnCode ] { - Parameters [0] { } @@ -938,15 +919,6 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { } } - Method [ <internal:gearman> public method do ] { - - - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] - } - } - Method [ <internal:gearman> public method doNormal ] { - Parameters [3] { @@ -974,18 +946,6 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { } } - Method [ <internal:gearman> public method doJobHandle ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method doStatus ] { - - - Parameters [0] { - } - } - Method [ <internal:gearman> public method doBackground ] { - Parameters [3] { @@ -1013,24 +973,29 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { } } - Method [ <internal:gearman> public method jobStatus ] { + Method [ <internal:gearman> public method doJobHandle ] { - - Parameters [1] { - Parameter #0 [ <required> $job_handle ] + - Parameters [0] { } } - Method [ <internal:gearman> public method jobStatusByUniqueKey ] { + Method [ <internal:gearman> public method doStatus ] { + + - Parameters [0] { + } + } + + Method [ <internal:gearman> public method jobStatus ] { - Parameters [1] { - Parameter #0 [ <required> $unique_key ] + Parameter #0 [ <required> $job_handle ] } } - Method [ <internal:gearman> public method echo ] { + Method [ <internal:gearman> public method jobStatusByUniqueKey ] { - Parameters [1] { - Parameter #0 [ <required> $workload ] + Parameter #0 [ <required> $unique_key ] } } @@ -1132,9 +1097,8 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { Method [ <internal:gearman> public method setWarningCallback ] { - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <optional> $callback ] + - Parameters [1] { + Parameter #0 [ <required> $callback ] } } @@ -1194,7 +1158,19 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { - Properties [0] { } - - Methods [12] { + - Methods [14] { + 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] { @@ -1287,15 +1263,18 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { - Methods [22] { Method [ <internal:gearman, ctor> public method __construct ] { + + - Parameters [0] { + } } - Method [ <internal:gearman> public method returnCode ] { + Method [ <internal:gearman, dtor> public method __destruct ] { - Parameters [0] { } } - Method [ <internal:gearman> public method clone ] { + Method [ <internal:gearman> public method returnCode ] { - Parameters [0] { } @@ -1447,7 +1426,13 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { - Properties [0] { } - - Methods [13] { + - Methods [14] { + Method [ <internal:gearman, dtor> public method __destruct ] { + + - Parameters [0] { + } + } + Method [ <internal:gearman> public method returnCode ] { - Parameters [0] { @@ -1535,7 +1520,7 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { } } - Class [ <internal:gearman> class GearmanException extends Exception ] { + Class [ <internal:gearman> final class GearmanException extends Exception implements Throwable ] { - Constants [0] { } @@ -1553,7 +1538,7 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { Property [ <default> public $code ] } - - Methods [9] { + - Methods [10] { Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - Parameters [3] { @@ -1563,28 +1548,31 @@ Extension [ <persistent> extension #85 gearman version 1.1.2 ] { } } - Method [ <internal:Core, inherits Exception> final public method getMessage ] { + Method [ <internal:Core, inherits Exception> public method __wakeup ] { + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { } - Method [ <internal:Core, inherits Exception> final public method getCode ] { + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { } - Method [ <internal:Core, inherits Exception> final public method getFile ] { + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { } - Method [ <internal:Core, inherits Exception> final public method getLine ] { + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { } - Method [ <internal:Core, inherits Exception> final public method getTrace ] { + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { } - Method [ <internal:Core, inherits Exception> final public method getPrevious ] { + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { } - Method [ <internal:Core, inherits Exception> final public method getTraceAsString ] { + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { } - Method [ <internal:Core, inherits Exception> public method __toString ] { + Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { } } } diff --git a/REFLECTION-DEV b/REFLECTION-DEV deleted file mode 100644 index fdf7f35..0000000 --- a/REFLECTION-DEV +++ /dev/null @@ -1,1581 +0,0 @@ -Extension [ <persistent> extension #86 gearman version 2.0.3 ] { - - - Constants [157] { - Constant [ string GEARMAN_DEFAULT_TCP_HOST ] { localhost } - Constant [ integer GEARMAN_DEFAULT_TCP_PORT ] { 4730 } - Constant [ integer GEARMAN_DEFAULT_SOCKET_TIMEOUT ] { 10 } - Constant [ integer GEARMAN_DEFAULT_SOCKET_SEND_SIZE ] { 32768 } - Constant [ integer GEARMAN_DEFAULT_SOCKET_RECV_SIZE ] { 32768 } - Constant [ integer GEARMAN_MAX_ERROR_SIZE ] { 2048 } - Constant [ integer GEARMAN_PACKET_HEADER_SIZE ] { 12 } - Constant [ integer GEARMAN_JOB_HANDLE_SIZE ] { 64 } - Constant [ integer GEARMAN_OPTION_SIZE ] { 64 } - Constant [ integer GEARMAN_UNIQUE_SIZE ] { 64 } - Constant [ integer GEARMAN_MAX_COMMAND_ARGS ] { 8 } - Constant [ integer GEARMAN_ARGS_BUFFER_SIZE ] { 128 } - Constant [ integer GEARMAN_SEND_BUFFER_SIZE ] { 8192 } - Constant [ integer GEARMAN_RECV_BUFFER_SIZE ] { 8192 } - Constant [ integer GEARMAN_WORKER_WAIT_TIMEOUT ] { 10000 } - Constant [ integer GEARMAN_SUCCESS ] { 0 } - Constant [ integer GEARMAN_IO_WAIT ] { 1 } - Constant [ integer GEARMAN_SHUTDOWN ] { 2 } - Constant [ integer GEARMAN_SHUTDOWN_GRACEFUL ] { 3 } - Constant [ integer GEARMAN_ERRNO ] { 4 } - Constant [ integer GEARMAN_EVENT ] { 5 } - Constant [ integer GEARMAN_TOO_MANY_ARGS ] { 6 } - Constant [ integer GEARMAN_NO_ACTIVE_FDS ] { 7 } - Constant [ integer GEARMAN_INVALID_MAGIC ] { 8 } - Constant [ integer GEARMAN_INVALID_COMMAND ] { 9 } - Constant [ integer GEARMAN_INVALID_PACKET ] { 10 } - Constant [ integer GEARMAN_UNEXPECTED_PACKET ] { 11 } - Constant [ integer GEARMAN_GETADDRINFO ] { 12 } - Constant [ integer GEARMAN_NO_SERVERS ] { 13 } - Constant [ integer GEARMAN_LOST_CONNECTION ] { 14 } - Constant [ integer GEARMAN_MEMORY_ALLOCATION_FAILURE ] { 15 } - Constant [ integer GEARMAN_JOB_EXISTS ] { 16 } - Constant [ integer GEARMAN_JOB_QUEUE_FULL ] { 17 } - Constant [ integer GEARMAN_SERVER_ERROR ] { 18 } - Constant [ integer GEARMAN_WORK_ERROR ] { 19 } - Constant [ integer GEARMAN_WORK_DATA ] { 20 } - Constant [ integer GEARMAN_WORK_WARNING ] { 21 } - Constant [ integer GEARMAN_WORK_STATUS ] { 22 } - Constant [ integer GEARMAN_WORK_EXCEPTION ] { 23 } - Constant [ integer GEARMAN_WORK_FAIL ] { 24 } - Constant [ integer GEARMAN_NOT_CONNECTED ] { 25 } - Constant [ integer GEARMAN_COULD_NOT_CONNECT ] { 26 } - Constant [ integer GEARMAN_SEND_IN_PROGRESS ] { 27 } - Constant [ integer GEARMAN_RECV_IN_PROGRESS ] { 28 } - Constant [ integer GEARMAN_NOT_FLUSHING ] { 29 } - Constant [ integer GEARMAN_DATA_TOO_LARGE ] { 30 } - Constant [ integer GEARMAN_INVALID_FUNCTION_NAME ] { 31 } - Constant [ integer GEARMAN_INVALID_WORKER_FUNCTION ] { 32 } - Constant [ integer GEARMAN_NO_REGISTERED_FUNCTIONS ] { 34 } - Constant [ integer GEARMAN_NO_JOBS ] { 35 } - Constant [ integer GEARMAN_ECHO_DATA_CORRUPTION ] { 36 } - Constant [ integer GEARMAN_NEED_WORKLOAD_FN ] { 37 } - Constant [ integer GEARMAN_PAUSE ] { 38 } - Constant [ integer GEARMAN_UNKNOWN_STATE ] { 39 } - Constant [ integer GEARMAN_PTHREAD ] { 40 } - Constant [ integer GEARMAN_PIPE_EOF ] { 41 } - Constant [ integer GEARMAN_QUEUE_ERROR ] { 42 } - Constant [ integer GEARMAN_FLUSH_DATA ] { 43 } - Constant [ integer GEARMAN_SEND_BUFFER_TOO_SMALL ] { 44 } - Constant [ integer GEARMAN_IGNORE_PACKET ] { 45 } - Constant [ integer GEARMAN_UNKNOWN_OPTION ] { 46 } - Constant [ integer GEARMAN_TIMEOUT ] { 47 } - Constant [ integer GEARMAN_MAX_RETURN ] { 53 } - Constant [ integer GEARMAN_VERBOSE_FATAL ] { 1 } - Constant [ integer GEARMAN_VERBOSE_ERROR ] { 2 } - Constant [ integer GEARMAN_VERBOSE_INFO ] { 3 } - Constant [ integer GEARMAN_VERBOSE_DEBUG ] { 4 } - Constant [ integer GEARMAN_VERBOSE_CRAZY ] { 5 } - Constant [ integer GEARMAN_VERBOSE_MAX ] { 6 } - Constant [ integer GEARMAN_NON_BLOCKING ] { 0 } - Constant [ integer GEARMAN_DONT_TRACK_PACKETS ] { 1 } - Constant [ integer GEARMAN_CON_READY ] { 0 } - Constant [ integer GEARMAN_CON_PACKET_IN_USE ] { 1 } - Constant [ integer GEARMAN_CON_EXTERNAL_FD ] { 2 } - Constant [ integer GEARMAN_CON_IGNORE_LOST_CONNECTION ] { 3 } - Constant [ integer GEARMAN_CON_CLOSE_AFTER_FLUSH ] { 4 } - Constant [ integer GEARMAN_CON_SEND_STATE_NONE ] { 0 } - Constant [ integer GEARMAN_CON_RECV_STATE_READ_DATA ] { 2 } - Constant [ integer GEARMAN_COMMAND_TEXT ] { 0 } - Constant [ integer GEARMAN_COMMAND_CAN_DO ] { 1 } - Constant [ integer GEARMAN_COMMAND_CANT_DO ] { 2 } - Constant [ integer GEARMAN_COMMAND_RESET_ABILITIES ] { 3 } - Constant [ integer GEARMAN_COMMAND_PRE_SLEEP ] { 4 } - Constant [ integer GEARMAN_COMMAND_UNUSED ] { 5 } - Constant [ integer GEARMAN_COMMAND_NOOP ] { 6 } - Constant [ integer GEARMAN_COMMAND_SUBMIT_JOB ] { 7 } - Constant [ integer GEARMAN_COMMAND_JOB_CREATED ] { 8 } - Constant [ integer GEARMAN_COMMAND_GRAB_JOB ] { 9 } - Constant [ integer GEARMAN_COMMAND_NO_JOB ] { 10 } - Constant [ integer GEARMAN_COMMAND_JOB_ASSIGN ] { 11 } - Constant [ integer GEARMAN_COMMAND_WORK_STATUS ] { 12 } - Constant [ integer GEARMAN_COMMAND_WORK_COMPLETE ] { 13 } - Constant [ integer GEARMAN_COMMAND_WORK_FAIL ] { 14 } - Constant [ integer GEARMAN_COMMAND_GET_STATUS ] { 15 } - Constant [ integer GEARMAN_COMMAND_ECHO_REQ ] { 16 } - Constant [ integer GEARMAN_COMMAND_ECHO_RES ] { 17 } - Constant [ integer GEARMAN_COMMAND_SUBMIT_JOB_BG ] { 18 } - Constant [ integer GEARMAN_COMMAND_ERROR ] { 19 } - Constant [ integer GEARMAN_COMMAND_STATUS_RES ] { 20 } - Constant [ integer GEARMAN_COMMAND_SUBMIT_JOB_HIGH ] { 21 } - Constant [ integer GEARMAN_COMMAND_SET_CLIENT_ID ] { 22 } - Constant [ integer GEARMAN_COMMAND_CAN_DO_TIMEOUT ] { 23 } - Constant [ integer GEARMAN_COMMAND_ALL_YOURS ] { 24 } - Constant [ integer GEARMAN_COMMAND_WORK_EXCEPTION ] { 25 } - Constant [ integer GEARMAN_COMMAND_OPTION_REQ ] { 26 } - Constant [ integer GEARMAN_COMMAND_OPTION_RES ] { 27 } - Constant [ integer GEARMAN_COMMAND_WORK_DATA ] { 28 } - Constant [ integer GEARMAN_COMMAND_WORK_WARNING ] { 29 } - Constant [ integer GEARMAN_COMMAND_GRAB_JOB_UNIQ ] { 30 } - Constant [ integer GEARMAN_COMMAND_JOB_ASSIGN_UNIQ ] { 31 } - Constant [ integer GEARMAN_COMMAND_SUBMIT_JOB_HIGH_BG ] { 32 } - Constant [ integer GEARMAN_COMMAND_SUBMIT_JOB_LOW ] { 33 } - Constant [ integer GEARMAN_COMMAND_SUBMIT_JOB_LOW_BG ] { 34 } - Constant [ integer GEARMAN_COMMAND_SUBMIT_JOB_SCHED ] { 35 } - Constant [ integer GEARMAN_COMMAND_SUBMIT_JOB_EPOCH ] { 36 } - Constant [ integer GEARMAN_COMMAND_MAX ] { 43 } - Constant [ integer GEARMAN_TASK_STATE_NEW ] { 0 } - Constant [ integer GEARMAN_TASK_STATE_SUBMIT ] { 1 } - Constant [ integer GEARMAN_TASK_STATE_WORKLOAD ] { 2 } - Constant [ integer GEARMAN_TASK_STATE_WORK ] { 3 } - Constant [ integer GEARMAN_TASK_STATE_CREATED ] { 4 } - Constant [ integer GEARMAN_TASK_STATE_DATA ] { 5 } - Constant [ integer GEARMAN_TASK_STATE_WARNING ] { 6 } - Constant [ integer GEARMAN_TASK_STATE_STATUS ] { 7 } - Constant [ integer GEARMAN_TASK_STATE_COMPLETE ] { 8 } - Constant [ integer GEARMAN_TASK_STATE_EXCEPTION ] { 9 } - Constant [ integer GEARMAN_TASK_STATE_FAIL ] { 10 } - Constant [ integer GEARMAN_TASK_STATE_FINISHED ] { 11 } - Constant [ integer GEARMAN_JOB_PRIORITY_HIGH ] { 0 } - Constant [ integer GEARMAN_JOB_PRIORITY_NORMAL ] { 1 } - Constant [ integer GEARMAN_JOB_PRIORITY_LOW ] { 2 } - Constant [ integer GEARMAN_JOB_PRIORITY_MAX ] { 3 } - Constant [ integer GEARMAN_CLIENT_ALLOCATED ] { 1 } - Constant [ integer GEARMAN_CLIENT_NON_BLOCKING ] { 2 } - Constant [ integer GEARMAN_CLIENT_TASK_IN_USE ] { 4 } - Constant [ integer GEARMAN_CLIENT_UNBUFFERED_RESULT ] { 8 } - Constant [ integer GEARMAN_CLIENT_NO_NEW ] { 16 } - Constant [ integer GEARMAN_CLIENT_FREE_TASKS ] { 32 } - Constant [ integer GEARMAN_CLIENT_STATE_IDLE ] { 0 } - Constant [ integer GEARMAN_CLIENT_STATE_NEW ] { 1 } - Constant [ integer GEARMAN_CLIENT_STATE_SUBMIT ] { 2 } - Constant [ integer GEARMAN_CLIENT_STATE_PACKET ] { 3 } - Constant [ integer GEARMAN_WORKER_ALLOCATED ] { 1 } - Constant [ integer GEARMAN_WORKER_NON_BLOCKING ] { 2 } - Constant [ integer GEARMAN_WORKER_PACKET_INIT ] { 4 } - Constant [ integer GEARMAN_WORKER_GRAB_JOB_IN_USE ] { 8 } - Constant [ integer GEARMAN_WORKER_PRE_SLEEP_IN_USE ] { 16 } - Constant [ integer GEARMAN_WORKER_WORK_JOB_IN_USE ] { 32 } - Constant [ integer GEARMAN_WORKER_CHANGE ] { 64 } - Constant [ integer GEARMAN_WORKER_GRAB_UNIQ ] { 128 } - Constant [ integer GEARMAN_WORKER_TIMEOUT_RETURN ] { 256 } - Constant [ integer GEARMAN_WORKER_STATE_START ] { 0 } - Constant [ integer GEARMAN_WORKER_STATE_FUNCTION_SEND ] { 1 } - Constant [ integer GEARMAN_WORKER_STATE_CONNECT ] { 2 } - Constant [ integer GEARMAN_WORKER_STATE_GRAB_JOB_SEND ] { 3 } - Constant [ integer GEARMAN_WORKER_STATE_GRAB_JOB_RECV ] { 4 } - Constant [ integer GEARMAN_WORKER_STATE_PRE_SLEEP ] { 5 } - } - - - Functions { - Function [ <internal:gearman> function gearman_version ] { - - - Parameters [0] { - } - } - Function [ <internal:gearman> function gearman_bugreport ] { - - - Parameters [0] { - } - } - Function [ <internal:gearman> function gearman_verbose_name ] { - - - Parameters [1] { - Parameter #0 [ <required> $verbose ] - } - } - Function [ <internal:gearman> function gearman_client_create ] { - - - Parameters [0] { - } - } - Function [ <internal:gearman> function gearman_client_return_code ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } - Function [ <internal:gearman> function gearman_client_error ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } - Function [ <internal:gearman> function gearman_client_get_errno ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } - Function [ <internal:gearman> function gearman_client_options ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } - Function [ <internal:gearman> function gearman_client_set_options ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $option ] - } - } - Function [ <internal:gearman> function gearman_client_add_options ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $option ] - } - } - Function [ <internal:gearman> function gearman_client_remove_options ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $option ] - } - } - Function [ <internal:gearman> function gearman_client_timeout ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } - 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 ] - } - } - Function [ <internal:gearman> function gearman_client_add_server ] { - - - Parameters [3] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $host ] - Parameter #2 [ <required> $port ] - } - } - Function [ <internal:gearman> function gearman_client_add_servers ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $servers ] - } - } - Function [ <internal:gearman> function gearman_client_wait ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } - 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 ] - } - } - 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 ] - } - } - 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 ] - } - } - Function [ <internal:gearman> function gearman_client_do_job_handle ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } - Function [ <internal:gearman> function gearman_client_do_status ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } - Function [ <internal:gearman> function gearman_client_do_background ] { - - - Parameters [4] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $unique ] - } - } - Function [ <internal:gearman> function gearman_client_do_high_background ] { - - - Parameters [4] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $unique ] - } - } - 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 ] - } - } - Function [ <internal:gearman> function gearman_client_job_status ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $job_handle ] - } - } - Function [ <internal:gearman> function gearman_client_job_status_by_unique_key ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $unique_key ] - } - } - Function [ <internal:gearman> function gearman_client_ping ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $workload ] - } - } - Function [ <internal:gearman> function gearman_client_add_task ] { - - - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] - } - } - Function [ <internal:gearman> function gearman_client_add_task_high ] { - - - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] - } - } - Function [ <internal:gearman> function gearman_client_add_task_low ] { - - - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] - } - } - Function [ <internal:gearman> function gearman_client_add_task_background ] { - - - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] - } - } - Function [ <internal:gearman> function gearman_client_add_task_high_background ] { - - - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] - } - } - Function [ <internal:gearman> function gearman_client_add_task_low_background ] { - - - Parameters [5] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <required> $workload ] - Parameter #3 [ <optional> $context ] - Parameter #4 [ <optional> $unique ] - } - } - Function [ <internal:gearman> function gearman_client_add_task_status ] { - - - Parameters [3] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $job_handle ] - Parameter #2 [ <optional> $context ] - } - } - Function [ <internal:gearman> function gearman_client_set_workload_callback ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] - } - } - Function [ <internal:gearman> function gearman_client_set_created_callback ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] - } - } - Function [ <internal:gearman> function gearman_client_set_data_callback ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] - } - } - Function [ <internal:gearman> function gearman_client_set_warning_callback ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] - } - } - Function [ <internal:gearman> function gearman_client_set_status_callback ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] - } - } - Function [ <internal:gearman> function gearman_client_set_complete_callback ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] - } - } - Function [ <internal:gearman> function gearman_client_set_exception_callback ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] - } - } - Function [ <internal:gearman> function gearman_client_set_fail_callback ] { - - - Parameters [2] { - Parameter #0 [ <required> $client_object ] - Parameter #1 [ <required> $callback ] - } - } - Function [ <internal:gearman> function gearman_client_clear_callbacks ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } - Function [ <internal:gearman> function gearman_client_run_tasks ] { - - - Parameters [1] { - Parameter #0 [ <required> $client_object ] - } - } - Function [ <internal:gearman> function gearman_task_return_code ] { - - - Parameters [1] { - Parameter #0 [ <required> $task_object ] - } - } - Function [ <internal:gearman> function gearman_task_function_name ] { - - - Parameters [1] { - Parameter #0 [ <required> $task_object ] - } - } - Function [ <internal:gearman> function gearman_task_unique ] { - - - Parameters [1] { - Parameter #0 [ <required> $task_object ] - } - } - Function [ <internal:gearman> function gearman_task_job_handle ] { - - - Parameters [1] { - Parameter #0 [ <required> $task_object ] - } - } - Function [ <internal:gearman> function gearman_task_is_known ] { - - - Parameters [1] { - Parameter #0 [ <required> $task_object ] - } - } - Function [ <internal:gearman> function gearman_task_is_running ] { - - - Parameters [1] { - Parameter #0 [ <required> $task_object ] - } - } - Function [ <internal:gearman> function gearman_task_numerator ] { - - - Parameters [1] { - Parameter #0 [ <required> $task_object ] - } - } - Function [ <internal:gearman> function gearman_task_denominator ] { - - - Parameters [1] { - Parameter #0 [ <required> $task_object ] - } - } - Function [ <internal:gearman> function gearman_task_data ] { - - - Parameters [1] { - Parameter #0 [ <required> $task_object ] - } - } - Function [ <internal:gearman> function gearman_task_data_size ] { - - - Parameters [1] { - Parameter #0 [ <required> $task_object ] - } - } - Function [ <internal:gearman> function gearman_task_send_workload ] { - - - Parameters [2] { - Parameter #0 [ <required> $task_object ] - Parameter #1 [ <required> $data ] - } - } - Function [ <internal:gearman> function gearman_task_recv_data ] { - - - Parameters [2] { - Parameter #0 [ <required> $task_object ] - Parameter #1 [ <required> $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] { - } - } - Function [ <internal:gearman> function gearman_worker_error ] { - - - Parameters [1] { - Parameter #0 [ <required> $worker_object ] - } - } - Function [ <internal:gearman> function gearman_worker_errno ] { - - - Parameters [1] { - Parameter #0 [ <required> $worker_object ] - } - } - Function [ <internal:gearman> function gearman_worker_options ] { - - - Parameters [1] { - Parameter #0 [ <required> $worker_object ] - } - } - Function [ <internal:gearman> function gearman_worker_set_options ] { - - - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $option ] - } - } - Function [ <internal:gearman> function gearman_worker_add_options ] { - - - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $option ] - } - } - Function [ <internal:gearman> function gearman_worker_remove_options ] { - - - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $option ] - } - } - Function [ <internal:gearman> function gearman_worker_timeout ] { - - - Parameters [1] { - Parameter #0 [ <required> $worker_object ] - } - } - Function [ <internal:gearman> function gearman_worker_set_timeout ] { - - - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $timeout ] - } - } - Function [ <internal:gearman> function gearman_worker_set_id ] { - - - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $id ] - } - } - Function [ <internal:gearman> function gearman_worker_add_server ] { - - - Parameters [3] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <optional> $host ] - Parameter #2 [ <optional> $port ] - } - } - Function [ <internal:gearman> function gearman_worker_add_servers ] { - - - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $servers ] - } - } - Function [ <internal:gearman> function gearman_worker_wait ] { - - - Parameters [1] { - Parameter #0 [ <required> $worker_object ] - } - } - Function [ <internal:gearman> function gearman_worker_register ] { - - - Parameters [3] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $function_name ] - Parameter #2 [ <optional> $timeout ] - } - } - Function [ <internal:gearman> function gearman_worker_unregister ] { - - - Parameters [2] { - Parameter #0 [ <required> $worker_object ] - Parameter #1 [ <required> $function_name ] - } - } - Function [ <internal:gearman> function gearman_worker_unregister_all ] { - - - Parameters [1] { - Parameter #0 [ <required> $worker_object ] - } - } - Function [ <internal:gearman> function gearman_worker_grab_job ] { - - - Parameters [1] { - Parameter #0 [ <required> $worker_object ] - } - } - 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 ] - } - } - Function [ <internal:gearman> function gearman_worker_work ] { - - - Parameters [1] { - Parameter #0 [ <required> $worker_object ] - } - } - 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 ] - } - } - } - - - Classes [5] { - Class [ <internal:gearman> class GearmanClient ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [44] { - 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] { - } - } - - Method [ <internal:gearman> public method error ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method getErrno ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method options ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method setOptions ] { - - - Parameters [1] { - Parameter #0 [ <required> $option ] - } - } - - Method [ <internal:gearman> public method addOptions ] { - - - Parameters [1] { - Parameter #0 [ <required> $option ] - } - } - - Method [ <internal:gearman> public method removeOptions ] { - - - Parameters [1] { - Parameter #0 [ <required> $option ] - } - } - - Method [ <internal:gearman> public method timeout ] { - - - Parameters [0] { - } - } - - 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 ] - } - } - - Method [ <internal:gearman> public method addServer ] { - - - Parameters [2] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <required> $port ] - } - } - - Method [ <internal:gearman> public method addServers ] { - - - Parameters [1] { - Parameter #0 [ <required> $servers ] - } - } - - Method [ <internal:gearman> public method wait ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method doNormal ] { - - - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method doHigh ] { - - - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method doLow ] { - - - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method doBackground ] { - - - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method doHighBackground ] { - - - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method doLowBackground ] { - - - Parameters [3] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method doJobHandle ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method doStatus ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method jobStatus ] { - - - Parameters [1] { - Parameter #0 [ <required> $job_handle ] - } - } - - Method [ <internal:gearman> public method jobStatusByUniqueKey ] { - - - Parameters [1] { - Parameter #0 [ <required> $unique_key ] - } - } - - Method [ <internal:gearman> public method ping ] { - - - Parameters [1] { - Parameter #0 [ <required> $workload ] - } - } - - Method [ <internal:gearman> public method addTask ] { - - - Parameters [4] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method addTaskHigh ] { - - - Parameters [4] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method addTaskLow ] { - - - Parameters [4] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method addTaskBackground ] { - - - Parameters [4] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method addTaskHighBackground ] { - - - Parameters [4] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method addTaskLowBackground ] { - - - Parameters [4] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <required> $workload ] - Parameter #2 [ <optional> $context ] - Parameter #3 [ <optional> $unique ] - } - } - - Method [ <internal:gearman> public method addTaskStatus ] { - - - Parameters [2] { - Parameter #0 [ <required> $job_handle ] - Parameter #1 [ <optional> $context ] - } - } - - Method [ <internal:gearman> public method setWorkloadCallback ] { - - - Parameters [1] { - Parameter #0 [ <required> $callback ] - } - } - - Method [ <internal:gearman> public method setCreatedCallback ] { - - - Parameters [1] { - Parameter #0 [ <required> $callback ] - } - } - - Method [ <internal:gearman> public method setDataCallback ] { - - - Parameters [1] { - Parameter #0 [ <required> $callback ] - } - } - - Method [ <internal:gearman> public method setWarningCallback ] { - - - Parameters [1] { - Parameter #0 [ <required> $callback ] - } - } - - Method [ <internal:gearman> public method setStatusCallback ] { - - - Parameters [1] { - Parameter #0 [ <required> $callback ] - } - } - - Method [ <internal:gearman> public method setCompleteCallback ] { - - - Parameters [1] { - Parameter #0 [ <required> $callback ] - } - } - - Method [ <internal:gearman> public method setExceptionCallback ] { - - - Parameters [1] { - Parameter #0 [ <required> $callback ] - } - } - - Method [ <internal:gearman> public method setFailCallback ] { - - - Parameters [1] { - Parameter #0 [ <required> $callback ] - } - } - - Method [ <internal:gearman> public method clearCallbacks ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method runTasks ] { - - - Parameters [0] { - } - } - } - } - - Class [ <internal:gearman> class GearmanTask ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [14] { - 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] { - } - } - - Method [ <internal:gearman> public method functionName ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method unique ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method jobHandle ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method isKnown ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method isRunning ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method taskNumerator ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method taskDenominator ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method sendWorkload ] { - - - Parameters [1] { - Parameter #0 [ <required> $data ] - } - } - - Method [ <internal:gearman> public method data ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method dataSize ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method recvData ] { - - - Parameters [1] { - Parameter #0 [ <required> $data_len ] - } - } - } - } - - Class [ <internal:gearman> class GearmanWorker ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [22] { - 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] { - } - } - - Method [ <internal:gearman> public method error ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method getErrno ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method options ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method setOptions ] { - - - Parameters [1] { - Parameter #0 [ <required> $option ] - } - } - - Method [ <internal:gearman> public method addOptions ] { - - - Parameters [1] { - Parameter #0 [ <required> $option ] - } - } - - Method [ <internal:gearman> public method removeOptions ] { - - - Parameters [1] { - Parameter #0 [ <required> $option ] - } - } - - Method [ <internal:gearman> public method timeout ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method setTimeout ] { - - - Parameters [1] { - Parameter #0 [ <required> $timeout ] - } - } - - Method [ <internal:gearman> public method setId ] { - - - Parameters [1] { - Parameter #0 [ <required> $id ] - } - } - - Method [ <internal:gearman> public method addServer ] { - - - Parameters [2] { - Parameter #0 [ <optional> $host ] - Parameter #1 [ <optional> $port ] - } - } - - Method [ <internal:gearman> public method addServers ] { - - - Parameters [1] { - Parameter #0 [ <required> $servers ] - } - } - - Method [ <internal:gearman> public method wait ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method register ] { - - - Parameters [2] { - Parameter #0 [ <required> $function_name ] - Parameter #1 [ <optional> $timeout ] - } - } - - Method [ <internal:gearman> public method unregister ] { - - - Parameters [1] { - Parameter #0 [ <required> $function_name ] - } - } - - Method [ <internal:gearman> public method unregisterAll ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method grabJob ] { - - - Parameters [0] { - } - } - - 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 ] - } - } - - Method [ <internal:gearman> public method work ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method echo ] { - - - Parameters [1] { - Parameter #0 [ <required> $workload ] - } - } - } - } - - Class [ <internal:gearman> class GearmanJob ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [14] { - Method [ <internal:gearman, dtor> public method __destruct ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method returnCode ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method setReturn ] { - - - Parameters [1] { - Parameter #0 [ <required> $gearman_return_t ] - } - } - - Method [ <internal:gearman> public method sendData ] { - - - Parameters [1] { - Parameter #0 [ <required> $data ] - } - } - - Method [ <internal:gearman> public method sendWarning ] { - - - Parameters [1] { - Parameter #0 [ <required> $warning ] - } - } - - Method [ <internal:gearman> public method sendStatus ] { - - - Parameters [2] { - Parameter #0 [ <required> $numerator ] - Parameter #1 [ <required> $denominator ] - } - } - - Method [ <internal:gearman> public method sendComplete ] { - - - Parameters [1] { - Parameter #0 [ <required> $result ] - } - } - - Method [ <internal:gearman> public method sendException ] { - - - Parameters [1] { - Parameter #0 [ <required> $exception ] - } - } - - Method [ <internal:gearman> public method sendFail ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method handle ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method functionName ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method unique ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method workload ] { - - - Parameters [0] { - } - } - - Method [ <internal:gearman> public method workloadSize ] { - - - Parameters [0] { - } - } - } - } - - Class [ <internal:gearman> final class GearmanException extends Exception implements Throwable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [4] { - Property [ <default> protected $message ] - Property [ <default> protected $file ] - Property [ <default> protected $line ] - Property [ <default> public $code ] - } - - - 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 ] - } - } - - Method [ <internal:Core, inherits Exception> public method __wakeup ] { - } - - Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { - } - - Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { - } - - Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { - } - - Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { - } - - Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { - } - - Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { - } - - Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { - } - - Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { - } - } - } - } -} - diff --git a/php-pecl-gearman-dev.spec b/php-pecl-gearman-dev.spec deleted file mode 100644 index 99aa84e..0000000 --- a/php-pecl-gearman-dev.spec +++ /dev/null @@ -1,348 +0,0 @@ -# remirepo spec file for php-pecl-gearman -# with SCL compatibility, from: -# -# Fedora spec file for php-pecl-gearman -# -# License: MIT -# http://opensource.org/licenses/MIT -# -# Please, preserve the changelog entries -# -%if 0%{?scl:1} -%global sub_prefix %{scl_prefix} -%scl_package php-pecl-gearman -%endif - -%global gh_commit 4cb9afcc9dc73a8dd8bcd481f9e8df25a09048fc -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_date 20161112 -%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" -%global ini_name %{pecl_name}.ini -%else -%global ini_name 40-%{pecl_name}.ini -%endif - -%global extver 2.0.3 -%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;')} -Summary: PHP wrapper to libgearman - -Group: Development/Tools -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 - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: libgearman-devel > %{libver} -BuildRequires: %{?scl_prefix}php-devel -BuildRequires: %{?scl_prefix}php-pear -# Required by phpize -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 "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} -# Other third party repo stuff -Obsoletes: php53-pecl-%{pecl_name} <= %{version} -Obsoletes: php53u-pecl-%{pecl_name} <= %{version} -Obsoletes: php54-pecl-%{pecl_name} <= %{version} -Obsoletes: php54w-pecl-%{pecl_name} <= %{version} -%if "%{php_version}" > "5.5" -Obsoletes: php55u-pecl-%{pecl_name} <= %{version} -Obsoletes: php55w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "5.6" -Obsoletes: php56u-pecl-%{pecl_name} <= %{version} -Obsoletes: php56w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.0" -Obsoletes: php70u-pecl-%{pecl_name} <= %{version} -Obsoletes: php70w-pecl-%{pecl_name} <= %{version} -%endif -%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 -%endif - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter shared private -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} -%endif - - -%description -This extension uses libgearman library to provide API for -communicating with gearmand, and writing clients and workers - -Documentation: http://php.net/gearman - -Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. - - -%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"); -' - -# Dont register tests on install -sed -e 's/role="test"/role="src"/' \ - %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ - -i package.xml - - -extver=$(sed -n '/#define PHP_GEARMAN_VERSION/{s/.* "//;s/".*$//;p}' NTS/php_gearman.h) -if test "x${extver}" != "x%{version}"; then - : Error: Upstream version is ${extver}, expecting %{version}. - exit 1 -fi - -cat >%{ini_name} <<EOF -; enable %{pecl_name} extension -extension=%{pecl_name}.so -EOF - -find NTS -type f -exec chmod -x {} \; - -%if %{with_zts} -cp -pr NTS ZTS -%endif - - -%build -cd NTS -%{_bindir}/phpize -%configure --with-php-config=%{_bindir}/php-config -make %{?_smp_mflags} - -%if %{with_zts} -cd ../ZTS -%{_bindir}/zts-phpize -%configure --with-php-config=%{_bindir}/zts-php-config -make %{?_smp_mflags} -%endif - - -%install -rm -rf %{buildroot} - -make -C NTS install INSTALL_ROOT=%{buildroot} - -# Install XML package description -install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - -# install config file -install -Dpm644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} - -%if %{with_zts} -make -C ZTS install INSTALL_ROOT=%{buildroot} -install -Dpm644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} -%endif - -# 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 -done - - -%check -: Minimal load test for NTS extension -%{__php} --no-php-ini \ - --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ - --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} -%endif - - -%clean -rm -rf %{buildroot} - - -%if 0%{?fedora} < 24 -# when pear installed alone, after us -%triggerin -- %{?scl_prefix}php-pear -if [ -x %{__pecl} ] ; then - %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : -fi - -# posttrans as pear can be installed after us -%posttrans -if [ -x %{__pecl} ] ; then - %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : -fi - -%postun -if [ $1 -eq 0 -a -x %{__pecl} ] ; then - %{pecl_uninstall} %{pecl_name} >/dev/null || : -fi -%endif - - -%files -%defattr(-,root,root,-) -%{?_licensedir:%license NTS/LICENSE} -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml - -%config(noreplace) %{php_inidir}/%{ini_name} -%{php_extdir}/%{pecl_name}.so - -%if %{with_zts} -%{php_ztsextdir}/%{pecl_name}.so -%config(noreplace) %{php_ztsinidir}/%{ini_name} -%endif - - -%changelog -* Tue Jul 18 2017 Remi Collet <remi@remirepo.net> - 2.0.3-2.7.0 -- rebuild for PHP 7.2.0beta1 new API - -* Mon Jan 16 2017 Remi Collet <remi@fedoraproject.org> - 2.0.3-1 -- update to 2.0.3 - -* Thu Dec 1 2016 Remi Collet <remi@fedoraproject.org> - 2.0.2-2 -- rebuild with PHP 7.1.0 GA - -* Sat Nov 12 2016 Remi Collet <remi@fedoraproject.org> - 2.0.2-1 -- update to 2.0.2 - -* Tue Sep 20 2016 Remi Collet <remi@fedoraproject.org> - 2.0.1-1 -- update to 2.0.1 for PHP 7 -- use sources from https://github.com/wcgallego/pecl-gearman fork - -* Wed Mar 9 2016 Remi Collet <remi@fedoraproject.org> - 1.1.2-8 -- adapt for F24 - -* Sat Jun 20 2015 Remi Collet <remi@fedoraproject.org> - 1.1.2-7 -- allow build against rh-php56 (as more-php56) -- drop runtime dependency on pear, new scriptlets - -* Wed Dec 24 2014 Remi Collet <remi@fedoraproject.org> - 1.1.2-6.1 -- Fedora 21 SCL mass rebuild - -* Tue Sep 9 2014 Remi Collet <remi@fedoraproject.org> - 1.1.2-6 -- don't install tests -- fix license handling - -* Mon Aug 25 2014 Remi Collet <rcollet@redhat.com> - 1.1.2-5 -- improve SCL build - -* Wed Apr 9 2014 Remi Collet <remi@fedoraproject.org> - 1.1.2-4 -- add numerical prefix to extension configuration file - -* Wed Mar 19 2014 Remi Collet <rcollet@redhat.com> - 1.1.2-3 -- allow SCL build - -* Mon Mar 3 2014 Remi Collet <remi@fedoraproject.org> - 1.1.2-2 -- cleanups -- install documentation in pecl_docdir -- install tests in pecl_testdir - -* Thu Aug 29 2013 Remi Collet <remi@fedoraproject.org> - 1.1.2-1 -- update to 1.1.2 - -* Mon Aug 19 2013 Remi Collet <remi@fedoraproject.org> - 1.1.1-1 -- single spec for 0.8.x / 1.0.x / 1.1.x -- update to 1.1.1, requires libgearman >= 1.1.0 - -* Fri Nov 30 2012 Remi Collet <remi@fedoraproject.org> - 1.0.3-1.1 -- also provides php-gearman - -* Sun Aug 05 2012 Remi Collet <remi@fedoraproject.org> - 1.0.3-1 -- update to 1.0.3 -- add missing provides php-pecl(gearman) - -* Sun Aug 05 2012 Remi Collet <remi@fedoraproject.org> - 0.8.3-1 -- update to 0.8.3 -- add missing provides php-pecl(gearman) - -* Sat May 05 2012 Remi Collet <remi@fedoraproject.org> - 1.0.2-3 -- add BR libgearman-1.0 + libgearman-1.0-devel - Workaround for https://bugzilla.redhat.com/819209 - -* Tue Mar 06 2012 Remi Collet <remi@fedoraproject.org> - 1.0.2-2 -- update to 1.0.2 for PHP 5.4 - -* Tue Mar 06 2012 Remi Collet <remi@fedoraproject.org> - 1.0.2-1 -- update to 1.0.2 for PHP 5.3 -- spec clean up - -* Fri Dec 09 2011 Remi Collet <remi@fedoraproject.org> - 1.0.1-2 -- update to 1.0.1, build against php 5.4 - -* Fri Dec 09 2011 Remi Collet <remi@fedoraproject.org> - 1.0.1-1 -- update to 1.0.1 - -* Fri Dec 09 2011 Remi Collet <remi@fedoraproject.org> - 0.8.1-2 -- update to 0.8.1, build against php 5.4 - -* Fri Dec 09 2011 Remi Collet <remi@fedoraproject.org> - 0.8.1-1 -- update to 0.8.1 - -* Mon Dec 05 2011 Remi Collet <remi@fedoraproject.org> - 1.0.0-2 -- build against php 5.4 - -* Mon Dec 05 2011 Remi Collet <remi@fedoraproject.org> - 1.0.0-1 -- update to 1.0.0 -- raise dependency to libgearman 0.21 (si f16 only) - -* Mon Nov 14 2011 Remi Collet <remi@fedoraproject.org> - 0.8.0-2 -- build against php 5.4 - -* Sat Oct 15 2011 Remi Collet <Fedora@FamilleCollet.com> - 0.8.0-1 -- update to 0.8.0 -- ZTS extension -- spec cleanup and minimal %%check -- fix requires - -* Fri Aug 12 2011 Jesse Keating <jkeating@redhat.com> - 0.7.0-5 -- Rebuild for broken deps - -* Mon Apr 11 2011 Paul Whalen <paul.whalen@senecac.on.ca> 0.7.0-4 -- fix setup and package.xml install - -* Mon Apr 11 2011 Paul Whalen <paul.whalen@senecac.on.ca> 0.7.0-3 -- correct macros, add license to files - -* Fri Apr 08 2011 Paul Whalen <paul.whalen@senecac.on.ca> 0.7.0-2 -- correct package following pecl packaging guidelines - -* Fri Mar 11 2011 Paul Whalen <paul.whalen@senecac.on.ca> 0.7.0-1 -- Initial Packaging - diff --git a/php-pecl-gearman.spec b/php-pecl-gearman.spec index 408eb35..99aa84e 100644 --- a/php-pecl-gearman.spec +++ b/php-pecl-gearman.spec @@ -9,36 +9,37 @@ # Please, preserve the changelog entries # %if 0%{?scl:1} -%if "%{scl}" == "rh-php56" -%global sub_prefix more-php56- -%else -%global sub_prefix %{scl_prefix} -%endif +%global sub_prefix %{scl_prefix} +%scl_package php-pecl-gearman %endif -%{?scl: %scl_package php-pecl-gearman} - -%global pecl_name gearman -%global with_zts 0%{?__ztsphp:1} +%global gh_commit 4cb9afcc9dc73a8dd8bcd481f9e8df25a09048fc +%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) +%global gh_date 20161112 +%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" %global ini_name %{pecl_name}.ini %else %global ini_name 40-%{pecl_name}.ini %endif -%global extver 1.1.2 +%global extver 2.0.3 %global libver 1.1.0 Name: %{?sub_prefix}php-pecl-gearman Version: %{extver} -Release: 8%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} Summary: PHP wrapper to libgearman Group: Development/Tools License: PHP -URL: http://gearman.org -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +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 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -56,8 +57,10 @@ 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 "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff @@ -73,6 +76,18 @@ Obsoletes: php55w-pecl-%{pecl_name} <= %{version} Obsoletes: php56u-pecl-%{pecl_name} <= %{version} Obsoletes: php56w-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "7.0" +Obsoletes: php70u-pecl-%{pecl_name} <= %{version} +Obsoletes: php70w-pecl-%{pecl_name} <= %{version} +%endif +%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 %endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -93,13 +108,19 @@ 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"); +' # Dont register tests on install sed -e 's/role="test"/role="src"/' \ %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ -i package.xml -mv %{pecl_name}-%{version} NTS extver=$(sed -n '/#define PHP_GEARMAN_VERSION/{s/.* "//;s/".*$//;p}' NTS/php_gearman.h) if test "x${extver}" != "x%{version}"; then @@ -209,6 +230,22 @@ fi %changelog +* Tue Jul 18 2017 Remi Collet <remi@remirepo.net> - 2.0.3-2.7.0 +- rebuild for PHP 7.2.0beta1 new API + +* Mon Jan 16 2017 Remi Collet <remi@fedoraproject.org> - 2.0.3-1 +- update to 2.0.3 + +* Thu Dec 1 2016 Remi Collet <remi@fedoraproject.org> - 2.0.2-2 +- rebuild with PHP 7.1.0 GA + +* Sat Nov 12 2016 Remi Collet <remi@fedoraproject.org> - 2.0.2-1 +- update to 2.0.2 + +* Tue Sep 20 2016 Remi Collet <remi@fedoraproject.org> - 2.0.1-1 +- update to 2.0.1 for PHP 7 +- use sources from https://github.com/wcgallego/pecl-gearman fork + * Wed Mar 9 2016 Remi Collet <remi@fedoraproject.org> - 1.1.2-8 - adapt for F24 |