The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
Return values. Always check GearmanClient::error() or GearmanWorker() for a string error, as it may contain more details:
GEARMAN_SUCCESS
(integer)
GEARMAN_IO_WAIT
(integer)
GEARMAN_ERRNO
(integer)
GEARMAN_NO_ACTIVE_FDS
(integer)
GEARMAN_UNEXPECTED_PACKET
(integer)
GEARMAN_GETADDRINFO
(integer)
GEARMAN_NO_SERVERS
(integer)
GEARMAN_LOST_CONNECTION
(integer)
GEARMAN_MEMORY_ALLOCATION_FAILURE
(integer)
GEARMAN_SERVER_ERROR
(integer)
GEARMAN_WORK_DATA
(integer)
GEARMAN_WORK_WARNING
(integer)
GEARMAN_WORK_DATA
, but
should be treated as a warning instead of normal response data.
GEARMAN_WORK_STATUS
(integer)
GEARMAN_WORK_EXCEPTION
(integer)
GEARMAN_WORK_FAIL
(integer)
GEARMAN_COULD_NOT_CONNECT
(integer)
GEARMAN_INVALID_FUNCTION_NAME
(integer)
GEARMAN_INVALID_WORKER_FUNCTION
(integer)
GEARMAN_NO_REGISTERED_FUNCTIONS
(integer)
GEARMAN_NO_JOBS
(integer)
GEARMAN_ECHO_DATA_CORRUPTION
(integer)
GEARMAN_NEED_WORKLOAD_FN
(integer)
GEARMAN_PAUSE
(integer)
GEARMAN_UNKNOWN_STATE
(integer)
GEARMAN_SEND_BUFFER_TOO_SMALL
(integer)
GEARMAN_TIMEOUT
(integer)
GearmanClient options:
GEARMAN_CLIENT_GENERATE_UNIQUE
(integer)
GEARMAN_CLIENT_NON_BLOCKING
(integer)
GEARMAN_CLIENT_UNBUFFERED_RESULT
(integer)
GEARMAN_CLIENT_FREE_TASKS
(integer)
GearmanWorker options:
GEARMAN_WORKER_NON_BLOCKING
(integer)
GEARMAN_WORKER_GRAB_UNIQ
(integer)
Base Gearman configuration:
GEARMAN_DEFAULT_TCP_HOST
(string)
GEARMAN_DEFAULT_TCP_PORT
(integer)
GEARMAN_DEFAULT_SOCKET_TIMEOUT
(integer)
GEARMAN_DEFAULT_SOCKET_SEND_SIZE
(integer)
GEARMAN_DEFAULT_SOCKET_RECV_SIZE
(integer)
GEARMAN_MAX_ERROR_SIZE
(integer)
GEARMAN_PACKET_HEADER_SIZE
(integer)
GEARMAN_JOB_HANDLE_SIZE
(integer)
GEARMAN_OPTION_SIZE
(integer)
GEARMAN_UNIQUE_SIZE
(integer)
GEARMAN_MAX_COMMAND_ARGS
(integer)
GEARMAN_ARGS_BUFFER_SIZE
(integer)
GEARMAN_SEND_BUFFER_SIZE
(integer)
GEARMAN_RECV_BUFFER_SIZE
(integer)
GEARMAN_WORKER_WAIT_TIMEOUT
(integer)