gearman_arginfo.h 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921
  1. /* This is a generated file, edit the .stub.php file instead.
  2. * Stub hash: bf4285b6af333c47f5d7e36723bdede63c5ddcf5 */
  3. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_version, 0, 0, IS_STRING, 0)
  4. ZEND_END_ARG_INFO()
  5. #define arginfo_gearman_bugreport arginfo_gearman_version
  6. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_verbose_name, 0, 1, IS_STRING, 1)
  7. ZEND_ARG_TYPE_INFO(0, verbose, IS_LONG, 0)
  8. ZEND_END_ARG_INFO()
  9. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_gearman_client_create, 0, 0, GearmanClient, MAY_BE_FALSE)
  10. ZEND_END_ARG_INFO()
  11. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_gearman_worker_create, 0, 0, GearmanWorker, MAY_BE_FALSE)
  12. ZEND_END_ARG_INFO()
  13. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_return_code, 0, 1, IS_LONG, 1)
  14. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  15. ZEND_END_ARG_INFO()
  16. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gearman_client_error, 0, 1, MAY_BE_NULL|MAY_BE_STRING|MAY_BE_FALSE)
  17. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  18. ZEND_END_ARG_INFO()
  19. #define arginfo_gearman_client_get_errno arginfo_gearman_client_return_code
  20. #define arginfo_gearman_client_options arginfo_gearman_client_return_code
  21. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_set_options, 0, 2, _IS_BOOL, 0)
  22. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  23. ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
  24. ZEND_END_ARG_INFO()
  25. #define arginfo_gearman_client_add_options arginfo_gearman_client_set_options
  26. #define arginfo_gearman_client_remove_options arginfo_gearman_client_set_options
  27. #define arginfo_gearman_client_timeout arginfo_gearman_client_return_code
  28. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_set_timeout, 0, 2, _IS_BOOL, 0)
  29. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  30. ZEND_ARG_TYPE_INFO(0, timeout, IS_LONG, 0)
  31. ZEND_END_ARG_INFO()
  32. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_add_server, 0, 1, _IS_BOOL, 0)
  33. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  34. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, host, IS_STRING, 0, "null")
  35. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, port, IS_LONG, 0, "0")
  36. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, setupExceptionHandler, _IS_BOOL, 0, "true")
  37. ZEND_END_ARG_INFO()
  38. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_add_servers, 0, 1, _IS_BOOL, 0)
  39. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  40. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, servers, IS_STRING, 0, "null")
  41. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, setupExceptionHandler, _IS_BOOL, 0, "true")
  42. ZEND_END_ARG_INFO()
  43. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_wait, 0, 1, _IS_BOOL, 0)
  44. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  45. ZEND_END_ARG_INFO()
  46. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_do_normal, 0, 3, IS_STRING, 0)
  47. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  48. ZEND_ARG_TYPE_INFO(0, function, IS_STRING, 0)
  49. ZEND_ARG_TYPE_INFO(0, workload, IS_STRING, 0)
  50. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, unique, IS_STRING, 1, "null")
  51. ZEND_END_ARG_INFO()
  52. #define arginfo_gearman_client_do_high arginfo_gearman_client_do_normal
  53. #define arginfo_gearman_client_do_low arginfo_gearman_client_do_normal
  54. #define arginfo_gearman_client_do_background arginfo_gearman_client_do_normal
  55. #define arginfo_gearman_client_do_high_background arginfo_gearman_client_do_normal
  56. #define arginfo_gearman_client_do_low_background arginfo_gearman_client_do_normal
  57. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_do_job_handle, 0, 1, IS_STRING, 0)
  58. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  59. ZEND_END_ARG_INFO()
  60. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_do_status, 0, 1, IS_ARRAY, 0)
  61. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  62. ZEND_END_ARG_INFO()
  63. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_job_status, 0, 2, IS_ARRAY, 0)
  64. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  65. ZEND_ARG_TYPE_INFO(0, job_handle, IS_STRING, 0)
  66. ZEND_END_ARG_INFO()
  67. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_job_status_by_unique_key, 0, 2, IS_ARRAY, 0)
  68. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  69. ZEND_ARG_TYPE_INFO(0, unique_key, IS_STRING, 0)
  70. ZEND_END_ARG_INFO()
  71. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_ping, 0, 2, _IS_BOOL, 0)
  72. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  73. ZEND_ARG_TYPE_INFO(0, workload, IS_STRING, 0)
  74. ZEND_END_ARG_INFO()
  75. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_gearman_client_add_task, 0, 3, GearmanTask, MAY_BE_FALSE)
  76. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  77. ZEND_ARG_TYPE_INFO(0, function_name, IS_STRING, 0)
  78. ZEND_ARG_TYPE_MASK(0, workload, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE, NULL)
  79. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, context, IS_MIXED, 1, "null")
  80. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, unique_key, IS_STRING, 1, "null")
  81. ZEND_END_ARG_INFO()
  82. #define arginfo_gearman_client_add_task_high arginfo_gearman_client_add_task
  83. #define arginfo_gearman_client_add_task_low arginfo_gearman_client_add_task
  84. #define arginfo_gearman_client_add_task_background arginfo_gearman_client_add_task
  85. #define arginfo_gearman_client_add_task_high_background arginfo_gearman_client_add_task
  86. #define arginfo_gearman_client_add_task_low_background arginfo_gearman_client_add_task
  87. #define arginfo_gearman_client_run_tasks arginfo_gearman_client_wait
  88. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_gearman_client_add_task_status, 0, 2, GearmanTask, 0)
  89. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  90. ZEND_ARG_TYPE_INFO(0, job_handle, IS_STRING, 0)
  91. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, context, IS_MIXED, 1, "null")
  92. ZEND_END_ARG_INFO()
  93. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_set_workload_callback, 0, 2, _IS_BOOL, 0)
  94. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  95. ZEND_ARG_TYPE_INFO(0, function, IS_CALLABLE, 0)
  96. ZEND_END_ARG_INFO()
  97. #define arginfo_gearman_client_set_created_callback arginfo_gearman_client_set_workload_callback
  98. #define arginfo_gearman_client_set_data_callback arginfo_gearman_client_set_workload_callback
  99. #define arginfo_gearman_client_set_warning_callback arginfo_gearman_client_set_workload_callback
  100. #define arginfo_gearman_client_set_status_callback arginfo_gearman_client_set_workload_callback
  101. #define arginfo_gearman_client_set_complete_callback arginfo_gearman_client_set_workload_callback
  102. #define arginfo_gearman_client_set_exception_callback arginfo_gearman_client_set_workload_callback
  103. #define arginfo_gearman_client_set_fail_callback arginfo_gearman_client_set_workload_callback
  104. #define arginfo_gearman_client_clear_callbacks arginfo_gearman_client_wait
  105. #define arginfo_gearman_client_context arginfo_gearman_client_do_job_handle
  106. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_client_set_context, 0, 2, _IS_BOOL, 0)
  107. ZEND_ARG_OBJ_INFO(0, obj, GearmanClient, 0)
  108. ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
  109. ZEND_END_ARG_INFO()
  110. #define arginfo_gearman_client_enable_exception_handler arginfo_gearman_client_wait
  111. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_job_return_code, 0, 1, IS_LONG, 1)
  112. ZEND_ARG_OBJ_INFO(0, obj, GearmanJob, 0)
  113. ZEND_END_ARG_INFO()
  114. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_job_set_return, 0, 2, _IS_BOOL, 1)
  115. ZEND_ARG_OBJ_INFO(0, obj, GearmanJob, 0)
  116. ZEND_ARG_TYPE_INFO(0, gearman_return_t, IS_LONG, 0)
  117. ZEND_END_ARG_INFO()
  118. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_job_send_data, 0, 2, _IS_BOOL, 1)
  119. ZEND_ARG_OBJ_INFO(0, obj, GearmanJob, 0)
  120. ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
  121. ZEND_END_ARG_INFO()
  122. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_job_send_warning, 0, 2, _IS_BOOL, 0)
  123. ZEND_ARG_OBJ_INFO(0, obj, GearmanJob, 0)
  124. ZEND_ARG_TYPE_INFO(0, warning, IS_STRING, 0)
  125. ZEND_END_ARG_INFO()
  126. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_job_send_status, 0, 3, _IS_BOOL, 0)
  127. ZEND_ARG_OBJ_INFO(0, obj, GearmanJob, 0)
  128. ZEND_ARG_TYPE_INFO(0, numerator, IS_LONG, 0)
  129. ZEND_ARG_TYPE_INFO(0, denominator, IS_LONG, 0)
  130. ZEND_END_ARG_INFO()
  131. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_job_send_complete, 0, 2, _IS_BOOL, 0)
  132. ZEND_ARG_OBJ_INFO(0, obj, GearmanJob, 0)
  133. ZEND_ARG_TYPE_INFO(0, result, IS_STRING, 0)
  134. ZEND_END_ARG_INFO()
  135. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_job_send_exception, 0, 2, _IS_BOOL, 0)
  136. ZEND_ARG_OBJ_INFO(0, obj, GearmanJob, 0)
  137. ZEND_ARG_TYPE_INFO(0, exception, IS_STRING, 0)
  138. ZEND_END_ARG_INFO()
  139. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_job_send_fail, 0, 1, _IS_BOOL, 0)
  140. ZEND_ARG_OBJ_INFO(0, obj, GearmanJob, 0)
  141. ZEND_END_ARG_INFO()
  142. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gearman_job_handle, 0, 1, MAY_BE_BOOL|MAY_BE_STRING)
  143. ZEND_ARG_OBJ_INFO(0, obj, GearmanJob, 0)
  144. ZEND_END_ARG_INFO()
  145. #define arginfo_gearman_job_function_name arginfo_gearman_job_handle
  146. #define arginfo_gearman_job_unique arginfo_gearman_job_handle
  147. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_job_workload, 0, 1, IS_STRING, 0)
  148. ZEND_ARG_OBJ_INFO(0, obj, GearmanJob, 0)
  149. ZEND_END_ARG_INFO()
  150. #define arginfo_gearman_job_workload_size arginfo_gearman_job_return_code
  151. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_task_return_code, 0, 1, IS_LONG, 1)
  152. ZEND_ARG_OBJ_INFO(0, obj, GearmanTask, 0)
  153. ZEND_END_ARG_INFO()
  154. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gearman_task_function_name, 0, 1, MAY_BE_NULL|MAY_BE_BOOL|MAY_BE_STRING)
  155. ZEND_ARG_OBJ_INFO(0, obj, GearmanTask, 0)
  156. ZEND_END_ARG_INFO()
  157. #define arginfo_gearman_task_unique arginfo_gearman_task_function_name
  158. #define arginfo_gearman_task_job_handle arginfo_gearman_task_function_name
  159. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_task_is_known, 0, 1, _IS_BOOL, 1)
  160. ZEND_ARG_OBJ_INFO(0, obj, GearmanTask, 0)
  161. ZEND_END_ARG_INFO()
  162. #define arginfo_gearman_task_is_running arginfo_gearman_task_is_known
  163. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gearman_task_numerator, 0, 1, MAY_BE_NULL|MAY_BE_BOOL|MAY_BE_LONG)
  164. ZEND_ARG_OBJ_INFO(0, obj, GearmanTask, 0)
  165. ZEND_END_ARG_INFO()
  166. #define arginfo_gearman_task_denominator arginfo_gearman_task_numerator
  167. #define arginfo_gearman_task_data arginfo_gearman_task_function_name
  168. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gearman_task_data_size, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
  169. ZEND_ARG_OBJ_INFO(0, obj, GearmanTask, 0)
  170. ZEND_END_ARG_INFO()
  171. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gearman_task_send_workload, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
  172. ZEND_ARG_OBJ_INFO(0, obj, GearmanTask, 0)
  173. ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
  174. ZEND_END_ARG_INFO()
  175. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gearman_task_recv_data, 0, 2, MAY_BE_BOOL|MAY_BE_ARRAY)
  176. ZEND_ARG_OBJ_INFO(0, obj, GearmanTask, 0)
  177. ZEND_ARG_TYPE_INFO(0, data_len, IS_LONG, 0)
  178. ZEND_END_ARG_INFO()
  179. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_worker_return_code, 0, 1, IS_LONG, 1)
  180. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  181. ZEND_END_ARG_INFO()
  182. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gearman_worker_error, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
  183. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  184. ZEND_END_ARG_INFO()
  185. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gearman_worker_errno, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
  186. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  187. ZEND_END_ARG_INFO()
  188. #define arginfo_gearman_worker_options arginfo_gearman_worker_return_code
  189. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_worker_set_options, 0, 2, _IS_BOOL, 1)
  190. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  191. ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
  192. ZEND_END_ARG_INFO()
  193. #define arginfo_gearman_worker_add_options arginfo_gearman_worker_set_options
  194. #define arginfo_gearman_worker_remove_options arginfo_gearman_worker_set_options
  195. #define arginfo_gearman_worker_timeout arginfo_gearman_worker_return_code
  196. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_worker_set_timeout, 0, 2, _IS_BOOL, 0)
  197. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  198. ZEND_ARG_TYPE_INFO(0, timeout, IS_LONG, 0)
  199. ZEND_END_ARG_INFO()
  200. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_worker_set_id, 0, 2, _IS_BOOL, 0)
  201. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  202. ZEND_ARG_TYPE_INFO(0, id, IS_STRING, 0)
  203. ZEND_END_ARG_INFO()
  204. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_worker_add_server, 0, 1, _IS_BOOL, 0)
  205. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  206. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, host, IS_STRING, 0, "null")
  207. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, port, IS_LONG, 0, "0")
  208. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, setupExceptionHandler, _IS_BOOL, 0, "true")
  209. ZEND_END_ARG_INFO()
  210. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_worker_add_servers, 0, 1, _IS_BOOL, 0)
  211. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  212. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, servers, IS_STRING, 0, "null")
  213. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, setupExceptionHandler, _IS_BOOL, 0, "true")
  214. ZEND_END_ARG_INFO()
  215. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_worker_wait, 0, 1, _IS_BOOL, 0)
  216. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  217. ZEND_END_ARG_INFO()
  218. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_worker_register, 0, 2, _IS_BOOL, 0)
  219. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  220. ZEND_ARG_TYPE_INFO(0, function_name, IS_STRING, 0)
  221. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "0")
  222. ZEND_END_ARG_INFO()
  223. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_worker_unregister, 0, 2, _IS_BOOL, 0)
  224. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  225. ZEND_ARG_TYPE_INFO(0, function_name, IS_STRING, 0)
  226. ZEND_END_ARG_INFO()
  227. #define arginfo_gearman_worker_unregister_all arginfo_gearman_worker_wait
  228. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_gearman_worker_grab_job, 0, 1, GearmanWorker, MAY_BE_FALSE)
  229. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  230. ZEND_END_ARG_INFO()
  231. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_worker_add_function, 0, 3, _IS_BOOL, 0)
  232. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  233. ZEND_ARG_TYPE_INFO(0, function_name, IS_STRING, 0)
  234. ZEND_ARG_TYPE_INFO(0, function, IS_CALLABLE, 0)
  235. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, context, IS_MIXED, 1, "null")
  236. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "0")
  237. ZEND_END_ARG_INFO()
  238. #define arginfo_gearman_worker_work arginfo_gearman_worker_wait
  239. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gearman_worker_ping, 0, 2, _IS_BOOL, 0)
  240. ZEND_ARG_OBJ_INFO(0, obj, GearmanWorker, 0)
  241. ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
  242. ZEND_END_ARG_INFO()
  243. #define arginfo_gearman_worker_enable_exception_handler arginfo_gearman_worker_wait
  244. ZEND_BEGIN_ARG_INFO_EX(arginfo_class_GearmanClient___construct, 0, 0, 0)
  245. ZEND_END_ARG_INFO()
  246. #define arginfo_class_GearmanClient___destruct arginfo_class_GearmanClient___construct
  247. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_returnCode, 0, 0, IS_LONG, 0)
  248. ZEND_END_ARG_INFO()
  249. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_GearmanClient_error, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
  250. ZEND_END_ARG_INFO()
  251. #define arginfo_class_GearmanClient_getErrno arginfo_class_GearmanClient_returnCode
  252. #define arginfo_class_GearmanClient_options arginfo_class_GearmanClient_returnCode
  253. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_setOptions, 0, 1, _IS_BOOL, 0)
  254. ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
  255. ZEND_END_ARG_INFO()
  256. #define arginfo_class_GearmanClient_addOptions arginfo_class_GearmanClient_setOptions
  257. #define arginfo_class_GearmanClient_removeOptions arginfo_class_GearmanClient_setOptions
  258. #define arginfo_class_GearmanClient_timeout arginfo_class_GearmanClient_returnCode
  259. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_setTimeout, 0, 1, _IS_BOOL, 0)
  260. ZEND_ARG_TYPE_INFO(0, timeout, IS_LONG, 0)
  261. ZEND_END_ARG_INFO()
  262. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_addServer, 0, 0, _IS_BOOL, 0)
  263. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, host, IS_STRING, 0, "null")
  264. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, port, IS_LONG, 0, "0")
  265. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, setupExceptionHandler, _IS_BOOL, 0, "true")
  266. ZEND_END_ARG_INFO()
  267. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_addServers, 0, 0, _IS_BOOL, 0)
  268. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, servers, IS_STRING, 0, "null")
  269. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, setupExceptionHandler, _IS_BOOL, 0, "true")
  270. ZEND_END_ARG_INFO()
  271. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_wait, 0, 0, _IS_BOOL, 0)
  272. ZEND_END_ARG_INFO()
  273. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_doNormal, 0, 2, IS_STRING, 0)
  274. ZEND_ARG_TYPE_INFO(0, function, IS_STRING, 0)
  275. ZEND_ARG_TYPE_INFO(0, workload, IS_STRING, 0)
  276. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, unique, IS_STRING, 1, "null")
  277. ZEND_END_ARG_INFO()
  278. #define arginfo_class_GearmanClient_doHigh arginfo_class_GearmanClient_doNormal
  279. #define arginfo_class_GearmanClient_dolow arginfo_class_GearmanClient_doNormal
  280. #define arginfo_class_GearmanClient_doBackground arginfo_class_GearmanClient_doNormal
  281. #define arginfo_class_GearmanClient_doHighBackground arginfo_class_GearmanClient_doNormal
  282. #define arginfo_class_GearmanClient_doLowBackground arginfo_class_GearmanClient_doNormal
  283. #define arginfo_class_GearmanClient_doJobHandle arginfo_gearman_version
  284. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_doStatus, 0, 0, IS_ARRAY, 0)
  285. ZEND_END_ARG_INFO()
  286. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_jobStatus, 0, 1, IS_ARRAY, 0)
  287. ZEND_ARG_TYPE_INFO(0, job_handle, IS_STRING, 0)
  288. ZEND_END_ARG_INFO()
  289. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_jobStatusByUniqueKey, 0, 1, IS_ARRAY, 0)
  290. ZEND_ARG_TYPE_INFO(0, unique_key, IS_STRING, 0)
  291. ZEND_END_ARG_INFO()
  292. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_ping, 0, 1, _IS_BOOL, 0)
  293. ZEND_ARG_TYPE_INFO(0, workload, IS_STRING, 0)
  294. ZEND_END_ARG_INFO()
  295. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_GearmanClient_addTask, 0, 2, GearmanTask, MAY_BE_FALSE)
  296. ZEND_ARG_TYPE_INFO(0, function_name, IS_STRING, 0)
  297. ZEND_ARG_TYPE_MASK(0, workload, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE, NULL)
  298. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, context, IS_MIXED, 1, "null")
  299. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, unique_key, IS_STRING, 1, "null")
  300. ZEND_END_ARG_INFO()
  301. #define arginfo_class_GearmanClient_addTaskHigh arginfo_class_GearmanClient_addTask
  302. #define arginfo_class_GearmanClient_addTaskLow arginfo_class_GearmanClient_addTask
  303. #define arginfo_class_GearmanClient_addTaskBackground arginfo_class_GearmanClient_addTask
  304. #define arginfo_class_GearmanClient_addTaskHighBackground arginfo_class_GearmanClient_addTask
  305. #define arginfo_class_GearmanClient_addTaskLowBackground arginfo_class_GearmanClient_addTask
  306. #define arginfo_class_GearmanClient_runTasks arginfo_class_GearmanClient_wait
  307. ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_GearmanClient_addTaskStatus, 0, 1, GearmanTask, 0)
  308. ZEND_ARG_TYPE_INFO(0, job_handle, IS_STRING, 0)
  309. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, context, IS_MIXED, 1, "null")
  310. ZEND_END_ARG_INFO()
  311. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_setWorkloadCallback, 0, 1, _IS_BOOL, 0)
  312. ZEND_ARG_TYPE_INFO(0, function, IS_CALLABLE, 0)
  313. ZEND_END_ARG_INFO()
  314. #define arginfo_class_GearmanClient_setCreatedCallback arginfo_class_GearmanClient_setWorkloadCallback
  315. #define arginfo_class_GearmanClient_setDataCallback arginfo_class_GearmanClient_setWorkloadCallback
  316. #define arginfo_class_GearmanClient_setWarningCallback arginfo_class_GearmanClient_setWorkloadCallback
  317. #define arginfo_class_GearmanClient_setStatusCallback arginfo_class_GearmanClient_setWorkloadCallback
  318. #define arginfo_class_GearmanClient_setCompleteCallback arginfo_class_GearmanClient_setWorkloadCallback
  319. #define arginfo_class_GearmanClient_setExceptionCallback arginfo_class_GearmanClient_setWorkloadCallback
  320. #define arginfo_class_GearmanClient_setFailCallback arginfo_class_GearmanClient_setWorkloadCallback
  321. #define arginfo_class_GearmanClient_clearCallbacks arginfo_class_GearmanClient_wait
  322. #define arginfo_class_GearmanClient_context arginfo_gearman_version
  323. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanClient_setContext, 0, 1, _IS_BOOL, 0)
  324. ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
  325. ZEND_END_ARG_INFO()
  326. #define arginfo_class_GearmanClient_enableExceptionHandler arginfo_class_GearmanClient_wait
  327. #define arginfo_class_GearmanJob___destruct arginfo_class_GearmanClient___construct
  328. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanJob_returnCode, 0, 0, IS_LONG, 1)
  329. ZEND_END_ARG_INFO()
  330. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanJob_setReturn, 0, 1, _IS_BOOL, 1)
  331. ZEND_ARG_TYPE_INFO(0, gearman_return_t, IS_LONG, 0)
  332. ZEND_END_ARG_INFO()
  333. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanJob_sendData, 0, 1, _IS_BOOL, 1)
  334. ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
  335. ZEND_END_ARG_INFO()
  336. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanJob_sendWarning, 0, 1, _IS_BOOL, 0)
  337. ZEND_ARG_TYPE_INFO(0, warning, IS_STRING, 0)
  338. ZEND_END_ARG_INFO()
  339. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanJob_sendStatus, 0, 2, _IS_BOOL, 0)
  340. ZEND_ARG_TYPE_INFO(0, numerator, IS_LONG, 0)
  341. ZEND_ARG_TYPE_INFO(0, denominator, IS_LONG, 0)
  342. ZEND_END_ARG_INFO()
  343. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanJob_sendComplete, 0, 1, _IS_BOOL, 0)
  344. ZEND_ARG_TYPE_INFO(0, result, IS_STRING, 0)
  345. ZEND_END_ARG_INFO()
  346. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanJob_sendException, 0, 1, _IS_BOOL, 0)
  347. ZEND_ARG_TYPE_INFO(0, exception, IS_STRING, 0)
  348. ZEND_END_ARG_INFO()
  349. #define arginfo_class_GearmanJob_sendFail arginfo_class_GearmanClient_wait
  350. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_GearmanJob_handle, 0, 0, MAY_BE_BOOL|MAY_BE_STRING)
  351. ZEND_END_ARG_INFO()
  352. #define arginfo_class_GearmanJob_functionName arginfo_class_GearmanJob_handle
  353. #define arginfo_class_GearmanJob_unique arginfo_class_GearmanJob_handle
  354. #define arginfo_class_GearmanJob_workload arginfo_gearman_version
  355. #define arginfo_class_GearmanJob_workloadSize arginfo_class_GearmanJob_returnCode
  356. #define arginfo_class_GearmanTask___construct arginfo_class_GearmanClient___construct
  357. #define arginfo_class_GearmanTask_returnCode arginfo_class_GearmanClient_returnCode
  358. #define arginfo_class_GearmanTask_functionName arginfo_class_GearmanJob_handle
  359. #define arginfo_class_GearmanTask_unique arginfo_class_GearmanJob_handle
  360. #define arginfo_class_GearmanTask_jobHandle arginfo_class_GearmanJob_handle
  361. #define arginfo_class_GearmanTask_isKnown arginfo_class_GearmanClient_wait
  362. #define arginfo_class_GearmanTask_isRunning arginfo_class_GearmanClient_wait
  363. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_GearmanTask_taskNumerator, 0, 0, MAY_BE_BOOL|MAY_BE_LONG)
  364. ZEND_END_ARG_INFO()
  365. #define arginfo_class_GearmanTask_taskDenominator arginfo_class_GearmanTask_taskNumerator
  366. #define arginfo_class_GearmanTask_data arginfo_class_GearmanJob_handle
  367. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_GearmanTask_dataSize, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
  368. ZEND_END_ARG_INFO()
  369. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_GearmanTask_sendWorkload, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
  370. ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
  371. ZEND_END_ARG_INFO()
  372. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_GearmanTask_recvData, 0, 1, MAY_BE_BOOL|MAY_BE_ARRAY)
  373. ZEND_ARG_TYPE_INFO(0, data_len, IS_LONG, 0)
  374. ZEND_END_ARG_INFO()
  375. #define arginfo_class_GearmanWorker___construct arginfo_class_GearmanClient___construct
  376. #define arginfo_class_GearmanWorker___destruct arginfo_class_GearmanClient___construct
  377. #define arginfo_class_GearmanWorker_returnCode arginfo_class_GearmanJob_returnCode
  378. #define arginfo_class_GearmanWorker_error arginfo_class_GearmanClient_error
  379. #define arginfo_class_GearmanWorker_getErrno arginfo_class_GearmanTask_dataSize
  380. #define arginfo_class_GearmanWorker_options arginfo_class_GearmanJob_returnCode
  381. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanWorker_setOptions, 0, 1, _IS_BOOL, 1)
  382. ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
  383. ZEND_END_ARG_INFO()
  384. #define arginfo_class_GearmanWorker_addOptions arginfo_class_GearmanWorker_setOptions
  385. #define arginfo_class_GearmanWorker_removeOptions arginfo_class_GearmanWorker_setOptions
  386. #define arginfo_class_GearmanWorker_timeout arginfo_class_GearmanJob_returnCode
  387. #define arginfo_class_GearmanWorker_setTimeout arginfo_class_GearmanClient_setTimeout
  388. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanWorker_setId, 0, 1, _IS_BOOL, 0)
  389. ZEND_ARG_TYPE_INFO(0, id, IS_STRING, 0)
  390. ZEND_END_ARG_INFO()
  391. #define arginfo_class_GearmanWorker_addServer arginfo_class_GearmanClient_addServer
  392. #define arginfo_class_GearmanWorker_addServers arginfo_class_GearmanClient_addServers
  393. #define arginfo_class_GearmanWorker_wait arginfo_class_GearmanClient_wait
  394. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanWorker_register, 0, 1, _IS_BOOL, 0)
  395. ZEND_ARG_TYPE_INFO(0, function_name, IS_STRING, 0)
  396. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "0")
  397. ZEND_END_ARG_INFO()
  398. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanWorker_unregister, 0, 1, _IS_BOOL, 0)
  399. ZEND_ARG_TYPE_INFO(0, function_name, IS_STRING, 0)
  400. ZEND_END_ARG_INFO()
  401. #define arginfo_class_GearmanWorker_unregisterAll arginfo_class_GearmanClient_wait
  402. #define arginfo_class_GearmanWorker_grabJob arginfo_gearman_worker_create
  403. ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_GearmanWorker_addFunction, 0, 2, _IS_BOOL, 0)
  404. ZEND_ARG_TYPE_INFO(0, function_name, IS_STRING, 0)
  405. ZEND_ARG_TYPE_INFO(0, function, IS_CALLABLE, 0)
  406. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, context, IS_MIXED, 1, "null")
  407. ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "0")
  408. ZEND_END_ARG_INFO()
  409. #define arginfo_class_GearmanWorker_work arginfo_class_GearmanClient_wait
  410. #define arginfo_class_GearmanWorker_ping arginfo_class_GearmanClient_setContext
  411. #define arginfo_class_GearmanWorker_enableExceptionHandler arginfo_class_GearmanClient_wait
  412. ZEND_FUNCTION(gearman_version);
  413. ZEND_FUNCTION(gearman_bugreport);
  414. ZEND_FUNCTION(gearman_verbose_name);
  415. ZEND_FUNCTION(gearman_client_create);
  416. ZEND_FUNCTION(gearman_worker_create);
  417. ZEND_FUNCTION(gearman_client_return_code);
  418. ZEND_FUNCTION(gearman_client_error);
  419. ZEND_FUNCTION(gearman_client_get_errno);
  420. ZEND_FUNCTION(gearman_client_options);
  421. ZEND_FUNCTION(gearman_client_set_options);
  422. ZEND_FUNCTION(gearman_client_add_options);
  423. ZEND_FUNCTION(gearman_client_remove_options);
  424. ZEND_FUNCTION(gearman_client_timeout);
  425. ZEND_FUNCTION(gearman_client_set_timeout);
  426. ZEND_FUNCTION(gearman_client_add_server);
  427. ZEND_FUNCTION(gearman_client_add_servers);
  428. ZEND_FUNCTION(gearman_client_wait);
  429. ZEND_FUNCTION(gearman_client_do_normal);
  430. ZEND_FUNCTION(gearman_client_do_high);
  431. ZEND_FUNCTION(gearman_client_do_low);
  432. ZEND_FUNCTION(gearman_client_do_background);
  433. ZEND_FUNCTION(gearman_client_do_high_background);
  434. ZEND_FUNCTION(gearman_client_do_low_background);
  435. ZEND_FUNCTION(gearman_client_do_job_handle);
  436. ZEND_FUNCTION(gearman_client_do_status);
  437. ZEND_FUNCTION(gearman_client_job_status);
  438. ZEND_FUNCTION(gearman_client_job_status_by_unique_key);
  439. ZEND_FUNCTION(gearman_client_ping);
  440. ZEND_FUNCTION(gearman_client_add_task);
  441. ZEND_FUNCTION(gearman_client_add_task_high);
  442. ZEND_FUNCTION(gearman_client_add_task_low);
  443. ZEND_FUNCTION(gearman_client_add_task_background);
  444. ZEND_FUNCTION(gearman_client_add_task_high_background);
  445. ZEND_FUNCTION(gearman_client_add_task_low_background);
  446. ZEND_FUNCTION(gearman_client_run_tasks);
  447. ZEND_FUNCTION(gearman_client_add_task_status);
  448. ZEND_FUNCTION(gearman_client_set_workload_callback);
  449. ZEND_FUNCTION(gearman_client_set_created_callback);
  450. ZEND_FUNCTION(gearman_client_set_data_callback);
  451. ZEND_FUNCTION(gearman_client_set_warning_callback);
  452. ZEND_FUNCTION(gearman_client_set_status_callback);
  453. ZEND_FUNCTION(gearman_client_set_complete_callback);
  454. ZEND_FUNCTION(gearman_client_set_exception_callback);
  455. ZEND_FUNCTION(gearman_client_set_fail_callback);
  456. ZEND_FUNCTION(gearman_client_clear_callbacks);
  457. ZEND_FUNCTION(gearman_client_context);
  458. ZEND_FUNCTION(gearman_client_set_context);
  459. ZEND_FUNCTION(gearman_client_enable_exception_handler);
  460. ZEND_FUNCTION(gearman_job_return_code);
  461. ZEND_FUNCTION(gearman_job_set_return);
  462. ZEND_FUNCTION(gearman_job_send_data);
  463. ZEND_FUNCTION(gearman_job_send_warning);
  464. ZEND_FUNCTION(gearman_job_send_status);
  465. ZEND_FUNCTION(gearman_job_send_complete);
  466. ZEND_FUNCTION(gearman_job_send_exception);
  467. ZEND_FUNCTION(gearman_job_send_fail);
  468. ZEND_FUNCTION(gearman_job_handle);
  469. ZEND_FUNCTION(gearman_job_function_name);
  470. ZEND_FUNCTION(gearman_job_unique);
  471. ZEND_FUNCTION(gearman_job_workload);
  472. ZEND_FUNCTION(gearman_job_workload_size);
  473. ZEND_FUNCTION(gearman_task_return_code);
  474. ZEND_FUNCTION(gearman_task_function_name);
  475. ZEND_FUNCTION(gearman_task_unique);
  476. ZEND_FUNCTION(gearman_task_job_handle);
  477. ZEND_FUNCTION(gearman_task_is_known);
  478. ZEND_FUNCTION(gearman_task_is_running);
  479. ZEND_FUNCTION(gearman_task_numerator);
  480. ZEND_FUNCTION(gearman_task_denominator);
  481. ZEND_FUNCTION(gearman_task_data);
  482. ZEND_FUNCTION(gearman_task_data_size);
  483. ZEND_FUNCTION(gearman_task_send_workload);
  484. ZEND_FUNCTION(gearman_task_recv_data);
  485. ZEND_FUNCTION(gearman_worker_return_code);
  486. ZEND_FUNCTION(gearman_worker_error);
  487. ZEND_FUNCTION(gearman_worker_errno);
  488. ZEND_FUNCTION(gearman_worker_options);
  489. ZEND_FUNCTION(gearman_worker_set_options);
  490. ZEND_FUNCTION(gearman_worker_add_options);
  491. ZEND_FUNCTION(gearman_worker_remove_options);
  492. ZEND_FUNCTION(gearman_worker_timeout);
  493. ZEND_FUNCTION(gearman_worker_set_timeout);
  494. ZEND_FUNCTION(gearman_worker_set_id);
  495. ZEND_FUNCTION(gearman_worker_add_server);
  496. ZEND_FUNCTION(gearman_worker_add_servers);
  497. ZEND_FUNCTION(gearman_worker_wait);
  498. ZEND_FUNCTION(gearman_worker_register);
  499. ZEND_FUNCTION(gearman_worker_unregister);
  500. ZEND_FUNCTION(gearman_worker_unregister_all);
  501. ZEND_FUNCTION(gearman_worker_grab_job);
  502. ZEND_FUNCTION(gearman_worker_add_function);
  503. ZEND_FUNCTION(gearman_worker_work);
  504. ZEND_FUNCTION(gearman_worker_ping);
  505. ZEND_FUNCTION(gearman_worker_enable_exception_handler);
  506. ZEND_METHOD(GearmanClient, __construct);
  507. ZEND_METHOD(GearmanClient, __destruct);
  508. ZEND_METHOD(GearmanJob, __destruct);
  509. ZEND_METHOD(GearmanTask, __construct);
  510. ZEND_METHOD(GearmanWorker, __construct);
  511. ZEND_METHOD(GearmanWorker, __destruct);
  512. static const zend_function_entry ext_functions[] = {
  513. ZEND_FE(gearman_version, arginfo_gearman_version)
  514. ZEND_FE(gearman_bugreport, arginfo_gearman_bugreport)
  515. ZEND_FE(gearman_verbose_name, arginfo_gearman_verbose_name)
  516. ZEND_FE(gearman_client_create, arginfo_gearman_client_create)
  517. ZEND_FE(gearman_worker_create, arginfo_gearman_worker_create)
  518. ZEND_FE(gearman_client_return_code, arginfo_gearman_client_return_code)
  519. ZEND_FE(gearman_client_error, arginfo_gearman_client_error)
  520. ZEND_FE(gearman_client_get_errno, arginfo_gearman_client_get_errno)
  521. ZEND_FE(gearman_client_options, arginfo_gearman_client_options)
  522. ZEND_FE(gearman_client_set_options, arginfo_gearman_client_set_options)
  523. ZEND_FE(gearman_client_add_options, arginfo_gearman_client_add_options)
  524. ZEND_FE(gearman_client_remove_options, arginfo_gearman_client_remove_options)
  525. ZEND_FE(gearman_client_timeout, arginfo_gearman_client_timeout)
  526. ZEND_FE(gearman_client_set_timeout, arginfo_gearman_client_set_timeout)
  527. ZEND_FE(gearman_client_add_server, arginfo_gearman_client_add_server)
  528. ZEND_FE(gearman_client_add_servers, arginfo_gearman_client_add_servers)
  529. ZEND_FE(gearman_client_wait, arginfo_gearman_client_wait)
  530. ZEND_FE(gearman_client_do_normal, arginfo_gearman_client_do_normal)
  531. ZEND_FE(gearman_client_do_high, arginfo_gearman_client_do_high)
  532. ZEND_FE(gearman_client_do_low, arginfo_gearman_client_do_low)
  533. ZEND_FE(gearman_client_do_background, arginfo_gearman_client_do_background)
  534. ZEND_FE(gearman_client_do_high_background, arginfo_gearman_client_do_high_background)
  535. ZEND_FE(gearman_client_do_low_background, arginfo_gearman_client_do_low_background)
  536. ZEND_FE(gearman_client_do_job_handle, arginfo_gearman_client_do_job_handle)
  537. ZEND_FE(gearman_client_do_status, arginfo_gearman_client_do_status)
  538. ZEND_FE(gearman_client_job_status, arginfo_gearman_client_job_status)
  539. ZEND_FE(gearman_client_job_status_by_unique_key, arginfo_gearman_client_job_status_by_unique_key)
  540. ZEND_FE(gearman_client_ping, arginfo_gearman_client_ping)
  541. ZEND_FE(gearman_client_add_task, arginfo_gearman_client_add_task)
  542. ZEND_FE(gearman_client_add_task_high, arginfo_gearman_client_add_task_high)
  543. ZEND_FE(gearman_client_add_task_low, arginfo_gearman_client_add_task_low)
  544. ZEND_FE(gearman_client_add_task_background, arginfo_gearman_client_add_task_background)
  545. ZEND_FE(gearman_client_add_task_high_background, arginfo_gearman_client_add_task_high_background)
  546. ZEND_FE(gearman_client_add_task_low_background, arginfo_gearman_client_add_task_low_background)
  547. ZEND_FE(gearman_client_run_tasks, arginfo_gearman_client_run_tasks)
  548. ZEND_FE(gearman_client_add_task_status, arginfo_gearman_client_add_task_status)
  549. ZEND_FE(gearman_client_set_workload_callback, arginfo_gearman_client_set_workload_callback)
  550. ZEND_FE(gearman_client_set_created_callback, arginfo_gearman_client_set_created_callback)
  551. ZEND_FE(gearman_client_set_data_callback, arginfo_gearman_client_set_data_callback)
  552. ZEND_FE(gearman_client_set_warning_callback, arginfo_gearman_client_set_warning_callback)
  553. ZEND_FE(gearman_client_set_status_callback, arginfo_gearman_client_set_status_callback)
  554. ZEND_FE(gearman_client_set_complete_callback, arginfo_gearman_client_set_complete_callback)
  555. ZEND_FE(gearman_client_set_exception_callback, arginfo_gearman_client_set_exception_callback)
  556. ZEND_FE(gearman_client_set_fail_callback, arginfo_gearman_client_set_fail_callback)
  557. ZEND_FE(gearman_client_clear_callbacks, arginfo_gearman_client_clear_callbacks)
  558. ZEND_FE(gearman_client_context, arginfo_gearman_client_context)
  559. ZEND_FE(gearman_client_set_context, arginfo_gearman_client_set_context)
  560. ZEND_FE(gearman_client_enable_exception_handler, arginfo_gearman_client_enable_exception_handler)
  561. ZEND_FE(gearman_job_return_code, arginfo_gearman_job_return_code)
  562. ZEND_FE(gearman_job_set_return, arginfo_gearman_job_set_return)
  563. ZEND_FE(gearman_job_send_data, arginfo_gearman_job_send_data)
  564. ZEND_FE(gearman_job_send_warning, arginfo_gearman_job_send_warning)
  565. ZEND_FE(gearman_job_send_status, arginfo_gearman_job_send_status)
  566. ZEND_FE(gearman_job_send_complete, arginfo_gearman_job_send_complete)
  567. ZEND_FE(gearman_job_send_exception, arginfo_gearman_job_send_exception)
  568. ZEND_FE(gearman_job_send_fail, arginfo_gearman_job_send_fail)
  569. ZEND_FE(gearman_job_handle, arginfo_gearman_job_handle)
  570. ZEND_FE(gearman_job_function_name, arginfo_gearman_job_function_name)
  571. ZEND_FE(gearman_job_unique, arginfo_gearman_job_unique)
  572. ZEND_FE(gearman_job_workload, arginfo_gearman_job_workload)
  573. ZEND_FE(gearman_job_workload_size, arginfo_gearman_job_workload_size)
  574. ZEND_FE(gearman_task_return_code, arginfo_gearman_task_return_code)
  575. ZEND_FE(gearman_task_function_name, arginfo_gearman_task_function_name)
  576. ZEND_FE(gearman_task_unique, arginfo_gearman_task_unique)
  577. ZEND_FE(gearman_task_job_handle, arginfo_gearman_task_job_handle)
  578. ZEND_FE(gearman_task_is_known, arginfo_gearman_task_is_known)
  579. ZEND_FE(gearman_task_is_running, arginfo_gearman_task_is_running)
  580. ZEND_FE(gearman_task_numerator, arginfo_gearman_task_numerator)
  581. ZEND_FE(gearman_task_denominator, arginfo_gearman_task_denominator)
  582. ZEND_FE(gearman_task_data, arginfo_gearman_task_data)
  583. ZEND_FE(gearman_task_data_size, arginfo_gearman_task_data_size)
  584. ZEND_FE(gearman_task_send_workload, arginfo_gearman_task_send_workload)
  585. ZEND_FE(gearman_task_recv_data, arginfo_gearman_task_recv_data)
  586. ZEND_FE(gearman_worker_return_code, arginfo_gearman_worker_return_code)
  587. ZEND_FE(gearman_worker_error, arginfo_gearman_worker_error)
  588. ZEND_FE(gearman_worker_errno, arginfo_gearman_worker_errno)
  589. ZEND_FE(gearman_worker_options, arginfo_gearman_worker_options)
  590. ZEND_FE(gearman_worker_set_options, arginfo_gearman_worker_set_options)
  591. ZEND_FE(gearman_worker_add_options, arginfo_gearman_worker_add_options)
  592. ZEND_FE(gearman_worker_remove_options, arginfo_gearman_worker_remove_options)
  593. ZEND_FE(gearman_worker_timeout, arginfo_gearman_worker_timeout)
  594. ZEND_FE(gearman_worker_set_timeout, arginfo_gearman_worker_set_timeout)
  595. ZEND_FE(gearman_worker_set_id, arginfo_gearman_worker_set_id)
  596. ZEND_FE(gearman_worker_add_server, arginfo_gearman_worker_add_server)
  597. ZEND_FE(gearman_worker_add_servers, arginfo_gearman_worker_add_servers)
  598. ZEND_FE(gearman_worker_wait, arginfo_gearman_worker_wait)
  599. ZEND_FE(gearman_worker_register, arginfo_gearman_worker_register)
  600. ZEND_FE(gearman_worker_unregister, arginfo_gearman_worker_unregister)
  601. ZEND_FE(gearman_worker_unregister_all, arginfo_gearman_worker_unregister_all)
  602. ZEND_FE(gearman_worker_grab_job, arginfo_gearman_worker_grab_job)
  603. ZEND_FE(gearman_worker_add_function, arginfo_gearman_worker_add_function)
  604. ZEND_FE(gearman_worker_work, arginfo_gearman_worker_work)
  605. ZEND_FE(gearman_worker_ping, arginfo_gearman_worker_ping)
  606. ZEND_FE(gearman_worker_enable_exception_handler, arginfo_gearman_worker_enable_exception_handler)
  607. ZEND_FE_END
  608. };
  609. static const zend_function_entry class_GearmanClient_methods[] = {
  610. ZEND_ME(GearmanClient, __construct, arginfo_class_GearmanClient___construct, ZEND_ACC_PUBLIC)
  611. ZEND_ME(GearmanClient, __destruct, arginfo_class_GearmanClient___destruct, ZEND_ACC_PUBLIC)
  612. ZEND_ME_MAPPING(returnCode, gearman_client_return_code, arginfo_class_GearmanClient_returnCode, ZEND_ACC_PUBLIC)
  613. ZEND_ME_MAPPING(error, gearman_client_error, arginfo_class_GearmanClient_error, ZEND_ACC_PUBLIC)
  614. ZEND_ME_MAPPING(getErrno, gearman_client_get_errno, arginfo_class_GearmanClient_getErrno, ZEND_ACC_PUBLIC)
  615. ZEND_ME_MAPPING(options, gearman_client_options, arginfo_class_GearmanClient_options, ZEND_ACC_PUBLIC)
  616. ZEND_ME_MAPPING(setOptions, gearman_client_set_options, arginfo_class_GearmanClient_setOptions, ZEND_ACC_PUBLIC)
  617. ZEND_ME_MAPPING(addOptions, gearman_client_add_options, arginfo_class_GearmanClient_addOptions, ZEND_ACC_PUBLIC)
  618. ZEND_ME_MAPPING(removeOptions, gearman_client_remove_options, arginfo_class_GearmanClient_removeOptions, ZEND_ACC_PUBLIC)
  619. ZEND_ME_MAPPING(timeout, gearman_client_timeout, arginfo_class_GearmanClient_timeout, ZEND_ACC_PUBLIC)
  620. ZEND_ME_MAPPING(setTimeout, gearman_client_set_timeout, arginfo_class_GearmanClient_setTimeout, ZEND_ACC_PUBLIC)
  621. ZEND_ME_MAPPING(addServer, gearman_client_add_server, arginfo_class_GearmanClient_addServer, ZEND_ACC_PUBLIC)
  622. ZEND_ME_MAPPING(addServers, gearman_client_add_servers, arginfo_class_GearmanClient_addServers, ZEND_ACC_PUBLIC)
  623. ZEND_ME_MAPPING(wait, gearman_client_wait, arginfo_class_GearmanClient_wait, ZEND_ACC_PUBLIC)
  624. ZEND_ME_MAPPING(doNormal, gearman_client_do_normal, arginfo_class_GearmanClient_doNormal, ZEND_ACC_PUBLIC)
  625. ZEND_ME_MAPPING(doHigh, gearman_client_do_high, arginfo_class_GearmanClient_doHigh, ZEND_ACC_PUBLIC)
  626. ZEND_ME_MAPPING(dolow, gearman_client_do_low, arginfo_class_GearmanClient_dolow, ZEND_ACC_PUBLIC)
  627. ZEND_ME_MAPPING(doBackground, gearman_client_do_background, arginfo_class_GearmanClient_doBackground, ZEND_ACC_PUBLIC)
  628. ZEND_ME_MAPPING(doHighBackground, gearman_client_do_high_background, arginfo_class_GearmanClient_doHighBackground, ZEND_ACC_PUBLIC)
  629. ZEND_ME_MAPPING(doLowBackground, gearman_client_do_low_background, arginfo_class_GearmanClient_doLowBackground, ZEND_ACC_PUBLIC)
  630. ZEND_ME_MAPPING(doJobHandle, gearman_client_do_job_handle, arginfo_class_GearmanClient_doJobHandle, ZEND_ACC_PUBLIC)
  631. ZEND_ME_MAPPING(doStatus, gearman_client_do_status, arginfo_class_GearmanClient_doStatus, ZEND_ACC_PUBLIC)
  632. ZEND_ME_MAPPING(jobStatus, gearman_client_job_status, arginfo_class_GearmanClient_jobStatus, ZEND_ACC_PUBLIC)
  633. ZEND_ME_MAPPING(jobStatusByUniqueKey, gearman_client_job_status_by_unique_key, arginfo_class_GearmanClient_jobStatusByUniqueKey, ZEND_ACC_PUBLIC)
  634. ZEND_ME_MAPPING(ping, gearman_client_ping, arginfo_class_GearmanClient_ping, ZEND_ACC_PUBLIC)
  635. ZEND_ME_MAPPING(addTask, gearman_client_add_task, arginfo_class_GearmanClient_addTask, ZEND_ACC_PUBLIC)
  636. ZEND_ME_MAPPING(addTaskHigh, gearman_client_add_task_high, arginfo_class_GearmanClient_addTaskHigh, ZEND_ACC_PUBLIC)
  637. ZEND_ME_MAPPING(addTaskLow, gearman_client_add_task_low, arginfo_class_GearmanClient_addTaskLow, ZEND_ACC_PUBLIC)
  638. ZEND_ME_MAPPING(addTaskBackground, gearman_client_add_task_background, arginfo_class_GearmanClient_addTaskBackground, ZEND_ACC_PUBLIC)
  639. ZEND_ME_MAPPING(addTaskHighBackground, gearman_client_add_task_high_background, arginfo_class_GearmanClient_addTaskHighBackground, ZEND_ACC_PUBLIC)
  640. ZEND_ME_MAPPING(addTaskLowBackground, gearman_client_add_task_low_background, arginfo_class_GearmanClient_addTaskLowBackground, ZEND_ACC_PUBLIC)
  641. ZEND_ME_MAPPING(runTasks, gearman_client_run_tasks, arginfo_class_GearmanClient_runTasks, ZEND_ACC_PUBLIC)
  642. ZEND_ME_MAPPING(addTaskStatus, gearman_client_add_task_status, arginfo_class_GearmanClient_addTaskStatus, ZEND_ACC_PUBLIC)
  643. ZEND_ME_MAPPING(setWorkloadCallback, gearman_client_set_workload_callback, arginfo_class_GearmanClient_setWorkloadCallback, ZEND_ACC_PUBLIC)
  644. ZEND_ME_MAPPING(setCreatedCallback, gearman_client_set_created_callback, arginfo_class_GearmanClient_setCreatedCallback, ZEND_ACC_PUBLIC)
  645. ZEND_ME_MAPPING(setDataCallback, gearman_client_set_data_callback, arginfo_class_GearmanClient_setDataCallback, ZEND_ACC_PUBLIC)
  646. ZEND_ME_MAPPING(setWarningCallback, gearman_client_set_warning_callback, arginfo_class_GearmanClient_setWarningCallback, ZEND_ACC_PUBLIC)
  647. ZEND_ME_MAPPING(setStatusCallback, gearman_client_set_status_callback, arginfo_class_GearmanClient_setStatusCallback, ZEND_ACC_PUBLIC)
  648. ZEND_ME_MAPPING(setCompleteCallback, gearman_client_set_complete_callback, arginfo_class_GearmanClient_setCompleteCallback, ZEND_ACC_PUBLIC)
  649. ZEND_ME_MAPPING(setExceptionCallback, gearman_client_set_exception_callback, arginfo_class_GearmanClient_setExceptionCallback, ZEND_ACC_PUBLIC)
  650. ZEND_ME_MAPPING(setFailCallback, gearman_client_set_fail_callback, arginfo_class_GearmanClient_setFailCallback, ZEND_ACC_PUBLIC)
  651. ZEND_ME_MAPPING(clearCallbacks, gearman_client_clear_callbacks, arginfo_class_GearmanClient_clearCallbacks, ZEND_ACC_PUBLIC)
  652. ZEND_ME_MAPPING(context, gearman_client_context, arginfo_class_GearmanClient_context, ZEND_ACC_PUBLIC)
  653. ZEND_ME_MAPPING(setContext, gearman_client_set_context, arginfo_class_GearmanClient_setContext, ZEND_ACC_PUBLIC)
  654. ZEND_ME_MAPPING(enableExceptionHandler, gearman_client_enable_exception_handler, arginfo_class_GearmanClient_enableExceptionHandler, ZEND_ACC_PUBLIC)
  655. ZEND_FE_END
  656. };
  657. static const zend_function_entry class_GearmanJob_methods[] = {
  658. ZEND_ME(GearmanJob, __destruct, arginfo_class_GearmanJob___destruct, ZEND_ACC_PUBLIC)
  659. ZEND_ME_MAPPING(returnCode, gearman_job_return_code, arginfo_class_GearmanJob_returnCode, ZEND_ACC_PUBLIC)
  660. ZEND_ME_MAPPING(setReturn, gearman_job_set_return, arginfo_class_GearmanJob_setReturn, ZEND_ACC_PUBLIC)
  661. ZEND_ME_MAPPING(sendData, gearman_job_send_data, arginfo_class_GearmanJob_sendData, ZEND_ACC_PUBLIC)
  662. ZEND_ME_MAPPING(sendWarning, gearman_job_send_warning, arginfo_class_GearmanJob_sendWarning, ZEND_ACC_PUBLIC)
  663. ZEND_ME_MAPPING(sendStatus, gearman_job_send_status, arginfo_class_GearmanJob_sendStatus, ZEND_ACC_PUBLIC)
  664. ZEND_ME_MAPPING(sendComplete, gearman_job_send_complete, arginfo_class_GearmanJob_sendComplete, ZEND_ACC_PUBLIC)
  665. ZEND_ME_MAPPING(sendException, gearman_job_send_exception, arginfo_class_GearmanJob_sendException, ZEND_ACC_PUBLIC)
  666. ZEND_ME_MAPPING(sendFail, gearman_job_send_fail, arginfo_class_GearmanJob_sendFail, ZEND_ACC_PUBLIC)
  667. ZEND_ME_MAPPING(handle, gearman_job_handle, arginfo_class_GearmanJob_handle, ZEND_ACC_PUBLIC)
  668. ZEND_ME_MAPPING(functionName, gearman_job_function_name, arginfo_class_GearmanJob_functionName, ZEND_ACC_PUBLIC)
  669. ZEND_ME_MAPPING(unique, gearman_job_unique, arginfo_class_GearmanJob_unique, ZEND_ACC_PUBLIC)
  670. ZEND_ME_MAPPING(workload, gearman_job_workload, arginfo_class_GearmanJob_workload, ZEND_ACC_PUBLIC)
  671. ZEND_ME_MAPPING(workloadSize, gearman_job_workload_size, arginfo_class_GearmanJob_workloadSize, ZEND_ACC_PUBLIC)
  672. ZEND_FE_END
  673. };
  674. static const zend_function_entry class_GearmanTask_methods[] = {
  675. ZEND_ME(GearmanTask, __construct, arginfo_class_GearmanTask___construct, ZEND_ACC_PUBLIC)
  676. ZEND_ME_MAPPING(returnCode, gearman_task_return_code, arginfo_class_GearmanTask_returnCode, ZEND_ACC_PUBLIC)
  677. ZEND_ME_MAPPING(functionName, gearman_task_function_name, arginfo_class_GearmanTask_functionName, ZEND_ACC_PUBLIC)
  678. ZEND_ME_MAPPING(unique, gearman_task_unique, arginfo_class_GearmanTask_unique, ZEND_ACC_PUBLIC)
  679. ZEND_ME_MAPPING(jobHandle, gearman_task_job_handle, arginfo_class_GearmanTask_jobHandle, ZEND_ACC_PUBLIC)
  680. ZEND_ME_MAPPING(isKnown, gearman_task_is_known, arginfo_class_GearmanTask_isKnown, ZEND_ACC_PUBLIC)
  681. ZEND_ME_MAPPING(isRunning, gearman_task_is_running, arginfo_class_GearmanTask_isRunning, ZEND_ACC_PUBLIC)
  682. ZEND_ME_MAPPING(taskNumerator, gearman_task_numerator, arginfo_class_GearmanTask_taskNumerator, ZEND_ACC_PUBLIC)
  683. ZEND_ME_MAPPING(taskDenominator, gearman_task_denominator, arginfo_class_GearmanTask_taskDenominator, ZEND_ACC_PUBLIC)
  684. ZEND_ME_MAPPING(data, gearman_task_data, arginfo_class_GearmanTask_data, ZEND_ACC_PUBLIC)
  685. ZEND_ME_MAPPING(dataSize, gearman_task_data_size, arginfo_class_GearmanTask_dataSize, ZEND_ACC_PUBLIC)
  686. ZEND_ME_MAPPING(sendWorkload, gearman_task_send_workload, arginfo_class_GearmanTask_sendWorkload, ZEND_ACC_PUBLIC)
  687. ZEND_ME_MAPPING(recvData, gearman_task_recv_data, arginfo_class_GearmanTask_recvData, ZEND_ACC_PUBLIC)
  688. ZEND_FE_END
  689. };
  690. static const zend_function_entry class_GearmanWorker_methods[] = {
  691. ZEND_ME(GearmanWorker, __construct, arginfo_class_GearmanWorker___construct, ZEND_ACC_PUBLIC)
  692. ZEND_ME(GearmanWorker, __destruct, arginfo_class_GearmanWorker___destruct, ZEND_ACC_PUBLIC)
  693. ZEND_ME_MAPPING(returnCode, gearman_worker_return_code, arginfo_class_GearmanWorker_returnCode, ZEND_ACC_PUBLIC)
  694. ZEND_ME_MAPPING(error, gearman_worker_error, arginfo_class_GearmanWorker_error, ZEND_ACC_PUBLIC)
  695. ZEND_ME_MAPPING(getErrno, gearman_worker_errno, arginfo_class_GearmanWorker_getErrno, ZEND_ACC_PUBLIC)
  696. ZEND_ME_MAPPING(options, gearman_worker_options, arginfo_class_GearmanWorker_options, ZEND_ACC_PUBLIC)
  697. ZEND_ME_MAPPING(setOptions, gearman_worker_set_options, arginfo_class_GearmanWorker_setOptions, ZEND_ACC_PUBLIC)
  698. ZEND_ME_MAPPING(addOptions, gearman_worker_add_options, arginfo_class_GearmanWorker_addOptions, ZEND_ACC_PUBLIC)
  699. ZEND_ME_MAPPING(removeOptions, gearman_worker_remove_options, arginfo_class_GearmanWorker_removeOptions, ZEND_ACC_PUBLIC)
  700. ZEND_ME_MAPPING(timeout, gearman_worker_timeout, arginfo_class_GearmanWorker_timeout, ZEND_ACC_PUBLIC)
  701. ZEND_ME_MAPPING(setTimeout, gearman_worker_set_timeout, arginfo_class_GearmanWorker_setTimeout, ZEND_ACC_PUBLIC)
  702. ZEND_ME_MAPPING(setId, gearman_worker_set_id, arginfo_class_GearmanWorker_setId, ZEND_ACC_PUBLIC)
  703. ZEND_ME_MAPPING(addServer, gearman_worker_add_server, arginfo_class_GearmanWorker_addServer, ZEND_ACC_PUBLIC)
  704. ZEND_ME_MAPPING(addServers, gearman_worker_add_servers, arginfo_class_GearmanWorker_addServers, ZEND_ACC_PUBLIC)
  705. ZEND_ME_MAPPING(wait, gearman_worker_wait, arginfo_class_GearmanWorker_wait, ZEND_ACC_PUBLIC)
  706. ZEND_ME_MAPPING(register, gearman_worker_register, arginfo_class_GearmanWorker_register, ZEND_ACC_PUBLIC)
  707. ZEND_ME_MAPPING(unregister, gearman_worker_unregister, arginfo_class_GearmanWorker_unregister, ZEND_ACC_PUBLIC)
  708. ZEND_ME_MAPPING(unregisterAll, gearman_worker_unregister_all, arginfo_class_GearmanWorker_unregisterAll, ZEND_ACC_PUBLIC)
  709. ZEND_ME_MAPPING(grabJob, gearman_worker_grab_job, arginfo_class_GearmanWorker_grabJob, ZEND_ACC_PUBLIC)
  710. ZEND_ME_MAPPING(addFunction, gearman_worker_add_function, arginfo_class_GearmanWorker_addFunction, ZEND_ACC_PUBLIC)
  711. ZEND_ME_MAPPING(work, gearman_worker_work, arginfo_class_GearmanWorker_work, ZEND_ACC_PUBLIC)
  712. ZEND_ME_MAPPING(ping, gearman_worker_ping, arginfo_class_GearmanWorker_ping, ZEND_ACC_PUBLIC)
  713. ZEND_ME_MAPPING(enableExceptionHandler, gearman_worker_enable_exception_handler, arginfo_class_GearmanWorker_enableExceptionHandler, ZEND_ACC_PUBLIC)
  714. ZEND_FE_END
  715. };
  716. static const zend_function_entry class_GearmanException_methods[] = {
  717. ZEND_FE_END
  718. };