#endif
#define http_curl_startup(ch, clean_curl, URL, options) \
#endif
#define http_curl_startup(ch, clean_curl, URL, options) \
static size_t http_curl_body_callback(char *buf, size_t len, size_t n, void *s)
{
TSRMLS_FETCH();
static size_t http_curl_body_callback(char *buf, size_t len, size_t n, void *s)
{
TSRMLS_FETCH();
if (HTTP_G(curlbuf).used && (!strncmp(buf, "HTTP/1.", sizeof("HTTP/1.") - 1))) {
phpstr_free(&HTTP_G(curlbuf));
}
if (HTTP_G(curlbuf).used && (!strncmp(buf, "HTTP/1.", sizeof("HTTP/1.") - 1))) {
phpstr_free(&HTTP_G(curlbuf));
}
#if defined(ZTS) && (LIBCURL_VERSION_NUM >= 0x070a00)
HTTP_CURL_OPT(NOSIGNAL, 1);
#endif
#if defined(ZTS) && (LIBCURL_VERSION_NUM >= 0x070a00)
HTTP_CURL_OPT(NOSIGNAL, 1);
#endif
if (zoption = http_curl_getopt1(options, "connecttimeout", IS_LONG)) {
HTTP_CURL_OPT(CONNECTTIMEOUT, Z_LVAL_P(zoption));
}
if (zoption = http_curl_getopt1(options, "connecttimeout", IS_LONG)) {
HTTP_CURL_OPT(CONNECTTIMEOUT, Z_LVAL_P(zoption));
}
#define HTTP_CURL_OPT_STRING_EX(keyname, optname) \
if (!strcasecmp(key, #keyname)) { \
convert_to_string_ex(param); \
#define HTTP_CURL_OPT_STRING_EX(keyname, optname) \
if (!strcasecmp(key, #keyname)) { \
convert_to_string_ex(param); \
#define HTTP_CURL_OPT_LONG_EX(keyname, optname) \
if (!strcasecmp(key, #keyname)) { \
convert_to_long_ex(param); \
#define HTTP_CURL_OPT_LONG_EX(keyname, optname) \
if (!strcasecmp(key, #keyname)) { \
convert_to_long_ex(param); \