functions.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <?php
  2. /**
  3. * @return mixed
  4. */
  5. function swoole_version(){}
  6. /**
  7. * @return mixed
  8. */
  9. function swoole_cpu_num(){}
  10. /**
  11. * @return mixed
  12. */
  13. function swoole_last_error(){}
  14. /**
  15. * @param $domain_name[required]
  16. * @param $timeout[optional]
  17. * @return mixed
  18. */
  19. function swoole_async_dns_lookup_coro($domain_name, $timeout = null){}
  20. /**
  21. * @param $settings[required]
  22. * @return mixed
  23. */
  24. function swoole_async_set($settings){}
  25. /**
  26. * @param $func[required]
  27. * @param $params[optional]
  28. * @return mixed
  29. */
  30. function swoole_coroutine_create($func, $params = null){}
  31. /**
  32. * @param $callback[required]
  33. * @return mixed
  34. */
  35. function swoole_coroutine_defer($callback){}
  36. /**
  37. * @param $domain[required]
  38. * @param $type[required]
  39. * @param $protocol[required]
  40. * @return mixed
  41. */
  42. function swoole_coroutine_socketpair($domain, $type, $protocol){}
  43. /**
  44. * @param $count[optional]
  45. * @param $sleep_time[optional]
  46. * @return mixed
  47. */
  48. function swoole_test_kernel_coroutine($count = null, $sleep_time = null){}
  49. /**
  50. * @param $read_array[required]
  51. * @param $write_array[required]
  52. * @param $error_array[required]
  53. * @param $timeout[optional]
  54. * @return mixed
  55. */
  56. function swoole_client_select(&$read_array, &$write_array, &$error_array, $timeout = null){}
  57. /**
  58. * @param $read_array[required]
  59. * @param $write_array[required]
  60. * @param $error_array[required]
  61. * @param $timeout[optional]
  62. * @return mixed
  63. */
  64. function swoole_select(&$read_array, &$write_array, &$error_array, $timeout = null){}
  65. /**
  66. * @param $process_name[required]
  67. * @return mixed
  68. */
  69. function swoole_set_process_name($process_name){}
  70. /**
  71. * @return mixed
  72. */
  73. function swoole_get_local_ip(){}
  74. /**
  75. * @return mixed
  76. */
  77. function swoole_get_local_mac(){}
  78. /**
  79. * @param $errno[required]
  80. * @param $error_type[optional]
  81. * @return mixed
  82. */
  83. function swoole_strerror($errno, $error_type = null){}
  84. /**
  85. * @return mixed
  86. */
  87. function swoole_errno(){}
  88. /**
  89. * @return mixed
  90. */
  91. function swoole_clear_error(){}
  92. /**
  93. * @param $level[required]
  94. * @param $msg[required]
  95. * @return mixed
  96. */
  97. function swoole_error_log($level, $msg){}
  98. /**
  99. * @param $data[required]
  100. * @param $type[optional]
  101. * @return mixed
  102. */
  103. function swoole_hashcode($data, $type = null){}
  104. /**
  105. * @param $suffix[required]
  106. * @param $mime_type[required]
  107. * @return mixed
  108. */
  109. function swoole_mime_type_add($suffix, $mime_type){}
  110. /**
  111. * @param $suffix[required]
  112. * @param $mime_type[required]
  113. * @return mixed
  114. */
  115. function swoole_mime_type_set($suffix, $mime_type){}
  116. /**
  117. * @param $suffix[required]
  118. * @return mixed
  119. */
  120. function swoole_mime_type_delete($suffix){}
  121. /**
  122. * @param $filename[required]
  123. * @return mixed
  124. */
  125. function swoole_mime_type_get($filename){}
  126. /**
  127. * @param $filename[required]
  128. * @return mixed
  129. */
  130. function swoole_get_mime_type($filename){}
  131. /**
  132. * @param $filename[required]
  133. * @return mixed
  134. */
  135. function swoole_mime_type_exists($filename){}
  136. /**
  137. * @return mixed
  138. */
  139. function swoole_mime_type_list(){}
  140. /**
  141. * @return mixed
  142. */
  143. function swoole_clear_dns_cache(){}
  144. /**
  145. * @param $str[required]
  146. * @param $offset[required]
  147. * @param $length[optional]
  148. * @param $options[optional]
  149. * @return mixed
  150. */
  151. function swoole_substr_unserialize($str, $offset, $length = null, $options = null){}
  152. /**
  153. * @param $json[required]
  154. * @param $offset[required]
  155. * @param $length[optional]
  156. * @param $associative[optional]
  157. * @param $depth[optional]
  158. * @param $flags[optional]
  159. * @return mixed
  160. */
  161. function swoole_substr_json_decode($json, $offset, $length = null, $associative = null, $depth = null, $flags = null){}
  162. /**
  163. * @return mixed
  164. */
  165. function swoole_internal_call_user_shutdown_begin(){}
  166. /**
  167. * @param $func[required]
  168. * @return mixed
  169. */
  170. function go($func){}
  171. /**
  172. * @param $callback[required]
  173. * @return mixed
  174. */
  175. function defer($callback){}
  176. /**
  177. * @param $fd[required]
  178. * @param $read_callback[required]
  179. * @param $write_callback[optional]
  180. * @param $events[optional]
  181. * @return mixed
  182. */
  183. function swoole_event_add($fd, $read_callback, $write_callback = null, $events = null){}
  184. /**
  185. * @param $fd[required]
  186. * @return mixed
  187. */
  188. function swoole_event_del($fd){}
  189. /**
  190. * @param $fd[required]
  191. * @param $read_callback[optional]
  192. * @param $write_callback[optional]
  193. * @param $events[optional]
  194. * @return mixed
  195. */
  196. function swoole_event_set($fd, $read_callback = null, $write_callback = null, $events = null){}
  197. /**
  198. * @param $fd[required]
  199. * @param $events[optional]
  200. * @return mixed
  201. */
  202. function swoole_event_isset($fd, $events = null){}
  203. /**
  204. * @return mixed
  205. */
  206. function swoole_event_dispatch(){}
  207. /**
  208. * @param $callback[required]
  209. * @return mixed
  210. */
  211. function swoole_event_defer($callback){}
  212. /**
  213. * @param $callback[required]
  214. * @param $before[optional]
  215. * @return mixed
  216. */
  217. function swoole_event_cycle($callback, $before = null){}
  218. /**
  219. * @param $fd[required]
  220. * @param $data[required]
  221. * @return mixed
  222. */
  223. function swoole_event_write($fd, $data){}
  224. /**
  225. * @return mixed
  226. */
  227. function swoole_event_wait(){}
  228. /**
  229. * @return mixed
  230. */
  231. function swoole_event_exit(){}
  232. /**
  233. * @param $settings[required]
  234. * @return mixed
  235. */
  236. function swoole_timer_set($settings){}
  237. /**
  238. * @param $ms[required]
  239. * @param $callback[required]
  240. * @return mixed
  241. */
  242. function swoole_timer_after($ms, $callback){}
  243. /**
  244. * @param $ms[required]
  245. * @param $callback[required]
  246. * @return mixed
  247. */
  248. function swoole_timer_tick($ms, $callback){}
  249. /**
  250. * @param $timer_id[required]
  251. * @return mixed
  252. */
  253. function swoole_timer_exists($timer_id){}
  254. /**
  255. * @param $timer_id[required]
  256. * @return mixed
  257. */
  258. function swoole_timer_info($timer_id){}
  259. /**
  260. * @return mixed
  261. */
  262. function swoole_timer_stats(){}
  263. /**
  264. * @return mixed
  265. */
  266. function swoole_timer_list(){}
  267. /**
  268. * @param $timer_id[required]
  269. * @return mixed
  270. */
  271. function swoole_timer_clear($timer_id){}
  272. /**
  273. * @return mixed
  274. */
  275. function swoole_timer_clear_all(){}