Lines Matching refs:dupch
1999 php_curl *ch, *dupch; in PHP_FUNCTION() local
2015 dupch = alloc_curl_handle(); in PHP_FUNCTION()
2017 dupch->cp = cp; in PHP_FUNCTION()
2022 dupch->handlers->write->stream = ch->handlers->write->stream; in PHP_FUNCTION()
2023 dupch->handlers->write->method = ch->handlers->write->method; in PHP_FUNCTION()
2027 dupch->handlers->read->stream = ch->handlers->read->stream; in PHP_FUNCTION()
2028 dupch->handlers->read->method = ch->handlers->read->method; in PHP_FUNCTION()
2029 dupch->handlers->write_header->method = ch->handlers->write_header->method; in PHP_FUNCTION()
2033 dupch->handlers->write_header->stream = ch->handlers->write_header->stream; in PHP_FUNCTION()
2035 dupch->handlers->write->fp = ch->handlers->write->fp; in PHP_FUNCTION()
2036 dupch->handlers->write_header->fp = ch->handlers->write_header->fp; in PHP_FUNCTION()
2037 dupch->handlers->read->fp = ch->handlers->read->fp; in PHP_FUNCTION()
2038 dupch->handlers->read->res = ch->handlers->read->res; in PHP_FUNCTION()
2041 ZVAL_COPY(&dupch->handlers->passwd, &ch->handlers->passwd); in PHP_FUNCTION()
2042 curl_easy_setopt(ch->cp, CURLOPT_PASSWDDATA, (void *) dupch); in PHP_FUNCTION()
2046 ZVAL_COPY(&dupch->handlers->write->func_name, &ch->handlers->write->func_name); in PHP_FUNCTION()
2049 ZVAL_COPY(&dupch->handlers->read->func_name, &ch->handlers->read->func_name); in PHP_FUNCTION()
2052 ZVAL_COPY(&dupch->handlers->write_header->func_name, &ch->handlers->write_header->func_name); in PHP_FUNCTION()
2055 curl_easy_setopt(dupch->cp, CURLOPT_ERRORBUFFER, dupch->err.str); in PHP_FUNCTION()
2056 curl_easy_setopt(dupch->cp, CURLOPT_FILE, (void *) dupch); in PHP_FUNCTION()
2057 curl_easy_setopt(dupch->cp, CURLOPT_INFILE, (void *) dupch); in PHP_FUNCTION()
2058 curl_easy_setopt(dupch->cp, CURLOPT_WRITEHEADER, (void *) dupch); in PHP_FUNCTION()
2061 dupch->handlers->progress = ecalloc(1, sizeof(php_curl_progress)); in PHP_FUNCTION()
2063 ZVAL_COPY(&dupch->handlers->progress->func_name, &ch->handlers->progress->func_name); in PHP_FUNCTION()
2065 dupch->handlers->progress->method = ch->handlers->progress->method; in PHP_FUNCTION()
2066 curl_easy_setopt(dupch->cp, CURLOPT_PROGRESSDATA, (void *) dupch); in PHP_FUNCTION()
2072 dupch->handlers->fnmatch = ecalloc(1, sizeof(php_curl_fnmatch)); in PHP_FUNCTION()
2074 ZVAL_COPY(&dupch->handlers->fnmatch->func_name, &ch->handlers->fnmatch->func_name); in PHP_FUNCTION()
2076 dupch->handlers->fnmatch->method = ch->handlers->fnmatch->method; in PHP_FUNCTION()
2077 curl_easy_setopt(dupch->cp, CURLOPT_FNMATCH_DATA, (void *) dupch); in PHP_FUNCTION()
2081 efree(dupch->to_free->slist); in PHP_FUNCTION()
2082 efree(dupch->to_free); in PHP_FUNCTION()
2083 dupch->to_free = ch->to_free; in PHP_FUNCTION()
2084 efree(dupch->clone); in PHP_FUNCTION()
2085 dupch->clone = ch->clone; in PHP_FUNCTION()
2090 ZVAL_RES(return_value, zend_register_resource(dupch, le_curl)); in PHP_FUNCTION()
2091 dupch->res = Z_RES_P(return_value); in PHP_FUNCTION()