1 /* This is a generated file, edit the .stub.php file instead. 2 * Stub hash: f1d616c644ad366405816cde0384f6f391773ebf */ 3 4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_close, 0, 1, IS_VOID, 0) 5 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 6 ZEND_END_ARG_INFO() 7 8 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_curl_copy_handle, 0, 1, CurlHandle, MAY_BE_FALSE) 9 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 10 ZEND_END_ARG_INFO() 11 12 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_errno, 0, 1, IS_LONG, 0) 13 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 14 ZEND_END_ARG_INFO() 15 16 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_error, 0, 1, IS_STRING, 0) 17 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 18 ZEND_END_ARG_INFO() 19 20 #if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ 21 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_escape, 0, 2, MAY_BE_STRING|MAY_BE_FALSE) 22 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 23 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0) 24 ZEND_END_ARG_INFO() 25 #endif 26 27 #if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ 28 #define arginfo_curl_unescape arginfo_curl_escape 29 #endif 30 31 #if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ 32 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_setopt, 0, 3, _IS_BOOL, 0) 33 ZEND_ARG_OBJ_INFO(0, multi_handle, CurlMultiHandle, 0) 34 ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0) 35 ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0) 36 ZEND_END_ARG_INFO() 37 #endif 38 39 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_exec, 0, 1, MAY_BE_STRING|MAY_BE_BOOL) 40 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 41 ZEND_END_ARG_INFO() 42 43 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_curl_file_create, 0, 1, CURLFile, 0) 44 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) 45 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mime_type, IS_STRING, 1, "null") 46 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, posted_filename, IS_STRING, 1, "null") 47 ZEND_END_ARG_INFO() 48 49 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_getinfo, 0, 1, IS_MIXED, 0) 50 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 51 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, option, IS_LONG, 1, "null") 52 ZEND_END_ARG_INFO() 53 54 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_curl_init, 0, 0, CurlHandle, MAY_BE_FALSE) 55 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, url, IS_STRING, 1, "null") 56 ZEND_END_ARG_INFO() 57 58 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_add_handle, 0, 2, IS_LONG, 0) 59 ZEND_ARG_OBJ_INFO(0, multi_handle, CurlMultiHandle, 0) 60 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 61 ZEND_END_ARG_INFO() 62 63 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_close, 0, 1, IS_VOID, 0) 64 ZEND_ARG_OBJ_INFO(0, multi_handle, CurlMultiHandle, 0) 65 ZEND_END_ARG_INFO() 66 67 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_errno, 0, 1, IS_LONG, 0) 68 ZEND_ARG_OBJ_INFO(0, multi_handle, CurlMultiHandle, 0) 69 ZEND_END_ARG_INFO() 70 71 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_exec, 0, 2, IS_LONG, 0) 72 ZEND_ARG_OBJ_INFO(0, multi_handle, CurlMultiHandle, 0) 73 ZEND_ARG_INFO(1, still_running) 74 ZEND_END_ARG_INFO() 75 76 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_getcontent, 0, 1, IS_STRING, 1) 77 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 78 ZEND_END_ARG_INFO() 79 80 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_multi_info_read, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE) 81 ZEND_ARG_OBJ_INFO(0, multi_handle, CurlMultiHandle, 0) 82 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, queued_messages, "null") 83 ZEND_END_ARG_INFO() 84 85 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_curl_multi_init, 0, 0, CurlMultiHandle, 0) 86 ZEND_END_ARG_INFO() 87 88 #define arginfo_curl_multi_remove_handle arginfo_curl_multi_add_handle 89 90 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_select, 0, 1, IS_LONG, 0) 91 ZEND_ARG_OBJ_INFO(0, multi_handle, CurlMultiHandle, 0) 92 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_DOUBLE, 0, "1.0") 93 ZEND_END_ARG_INFO() 94 95 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_multi_strerror, 0, 1, IS_STRING, 1) 96 ZEND_ARG_TYPE_INFO(0, error_code, IS_LONG, 0) 97 ZEND_END_ARG_INFO() 98 99 #if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */ 100 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_pause, 0, 2, IS_LONG, 0) 101 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 102 ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0) 103 ZEND_END_ARG_INFO() 104 #endif 105 106 #define arginfo_curl_reset arginfo_curl_close 107 108 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_setopt_array, 0, 2, _IS_BOOL, 0) 109 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 110 ZEND_ARG_TYPE_INFO(0, options, IS_ARRAY, 0) 111 ZEND_END_ARG_INFO() 112 113 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_setopt, 0, 3, _IS_BOOL, 0) 114 ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) 115 ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0) 116 ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0) 117 ZEND_END_ARG_INFO() 118 119 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_share_close, 0, 1, IS_VOID, 0) 120 ZEND_ARG_OBJ_INFO(0, share_handle, CurlShareHandle, 0) 121 ZEND_END_ARG_INFO() 122 123 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_share_errno, 0, 1, IS_LONG, 0) 124 ZEND_ARG_OBJ_INFO(0, share_handle, CurlShareHandle, 0) 125 ZEND_END_ARG_INFO() 126 127 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_curl_share_init, 0, 0, CurlShareHandle, 0) 128 ZEND_END_ARG_INFO() 129 130 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_share_setopt, 0, 3, _IS_BOOL, 0) 131 ZEND_ARG_OBJ_INFO(0, share_handle, CurlShareHandle, 0) 132 ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0) 133 ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0) 134 ZEND_END_ARG_INFO() 135 136 #define arginfo_curl_share_strerror arginfo_curl_multi_strerror 137 138 #define arginfo_curl_strerror arginfo_curl_multi_strerror 139 140 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_curl_version, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE) 141 ZEND_END_ARG_INFO() 142 143 144 ZEND_FUNCTION(curl_close); 145 ZEND_FUNCTION(curl_copy_handle); 146 ZEND_FUNCTION(curl_errno); 147 ZEND_FUNCTION(curl_error); 148 #if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ 149 ZEND_FUNCTION(curl_escape); 150 #endif 151 #if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ 152 ZEND_FUNCTION(curl_unescape); 153 #endif 154 #if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ 155 ZEND_FUNCTION(curl_multi_setopt); 156 #endif 157 ZEND_FUNCTION(curl_exec); 158 ZEND_FUNCTION(curl_file_create); 159 ZEND_FUNCTION(curl_getinfo); 160 ZEND_FUNCTION(curl_init); 161 ZEND_FUNCTION(curl_multi_add_handle); 162 ZEND_FUNCTION(curl_multi_close); 163 ZEND_FUNCTION(curl_multi_errno); 164 ZEND_FUNCTION(curl_multi_exec); 165 ZEND_FUNCTION(curl_multi_getcontent); 166 ZEND_FUNCTION(curl_multi_info_read); 167 ZEND_FUNCTION(curl_multi_init); 168 ZEND_FUNCTION(curl_multi_remove_handle); 169 ZEND_FUNCTION(curl_multi_select); 170 ZEND_FUNCTION(curl_multi_strerror); 171 #if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */ 172 ZEND_FUNCTION(curl_pause); 173 #endif 174 ZEND_FUNCTION(curl_reset); 175 ZEND_FUNCTION(curl_setopt_array); 176 ZEND_FUNCTION(curl_setopt); 177 ZEND_FUNCTION(curl_share_close); 178 ZEND_FUNCTION(curl_share_errno); 179 ZEND_FUNCTION(curl_share_init); 180 ZEND_FUNCTION(curl_share_setopt); 181 ZEND_FUNCTION(curl_share_strerror); 182 ZEND_FUNCTION(curl_strerror); 183 ZEND_FUNCTION(curl_version); 184 185 186 static const zend_function_entry ext_functions[] = { 187 ZEND_FE(curl_close, arginfo_curl_close) 188 ZEND_FE(curl_copy_handle, arginfo_curl_copy_handle) 189 ZEND_FE(curl_errno, arginfo_curl_errno) 190 ZEND_FE(curl_error, arginfo_curl_error) 191 #if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ 192 ZEND_FE(curl_escape, arginfo_curl_escape) 193 #endif 194 #if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ 195 ZEND_FE(curl_unescape, arginfo_curl_unescape) 196 #endif 197 #if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ 198 ZEND_FE(curl_multi_setopt, arginfo_curl_multi_setopt) 199 #endif 200 ZEND_FE(curl_exec, arginfo_curl_exec) 201 ZEND_FE(curl_file_create, arginfo_curl_file_create) 202 ZEND_FE(curl_getinfo, arginfo_curl_getinfo) 203 ZEND_FE(curl_init, arginfo_curl_init) 204 ZEND_FE(curl_multi_add_handle, arginfo_curl_multi_add_handle) 205 ZEND_FE(curl_multi_close, arginfo_curl_multi_close) 206 ZEND_FE(curl_multi_errno, arginfo_curl_multi_errno) 207 ZEND_FE(curl_multi_exec, arginfo_curl_multi_exec) 208 ZEND_FE(curl_multi_getcontent, arginfo_curl_multi_getcontent) 209 ZEND_FE(curl_multi_info_read, arginfo_curl_multi_info_read) 210 ZEND_FE(curl_multi_init, arginfo_curl_multi_init) 211 ZEND_FE(curl_multi_remove_handle, arginfo_curl_multi_remove_handle) 212 ZEND_FE(curl_multi_select, arginfo_curl_multi_select) 213 ZEND_FE(curl_multi_strerror, arginfo_curl_multi_strerror) 214 #if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */ 215 ZEND_FE(curl_pause, arginfo_curl_pause) 216 #endif 217 ZEND_FE(curl_reset, arginfo_curl_reset) 218 ZEND_FE(curl_setopt_array, arginfo_curl_setopt_array) 219 ZEND_FE(curl_setopt, arginfo_curl_setopt) 220 ZEND_FE(curl_share_close, arginfo_curl_share_close) 221 ZEND_FE(curl_share_errno, arginfo_curl_share_errno) 222 ZEND_FE(curl_share_init, arginfo_curl_share_init) 223 ZEND_FE(curl_share_setopt, arginfo_curl_share_setopt) 224 ZEND_FE(curl_share_strerror, arginfo_curl_share_strerror) 225 ZEND_FE(curl_strerror, arginfo_curl_strerror) 226 ZEND_FE(curl_version, arginfo_curl_version) 227 ZEND_FE_END 228 }; 229 230 231 static const zend_function_entry class_CurlHandle_methods[] = { 232 ZEND_FE_END 233 }; 234 235 236 static const zend_function_entry class_CurlMultiHandle_methods[] = { 237 ZEND_FE_END 238 }; 239 240 241 static const zend_function_entry class_CurlShareHandle_methods[] = { 242 ZEND_FE_END 243 }; 244