Lines Matching refs:dupch
1601 php_curl *ch, *dupch; in PHP_FUNCTION() local
1615 alloc_curl_handle(&dupch); in PHP_FUNCTION()
1616 TSRMLS_SET_CTX(dupch->thread_ctx); in PHP_FUNCTION()
1618 dupch->cp = cp; in PHP_FUNCTION()
1619 dupch->uses = 0; in PHP_FUNCTION()
1624 dupch->handlers->write->stream = ch->handlers->write->stream; in PHP_FUNCTION()
1625 dupch->handlers->write->method = ch->handlers->write->method; in PHP_FUNCTION()
1626 dupch->handlers->write->type = ch->handlers->write->type; in PHP_FUNCTION()
1630 dupch->handlers->read->stream = ch->handlers->read->stream; in PHP_FUNCTION()
1631 dupch->handlers->read->method = ch->handlers->read->method; in PHP_FUNCTION()
1632 dupch->handlers->write_header->method = ch->handlers->write_header->method; in PHP_FUNCTION()
1636 dupch->handlers->write_header->stream = ch->handlers->write_header->stream; in PHP_FUNCTION()
1638 dupch->handlers->write->fp = ch->handlers->write->fp; in PHP_FUNCTION()
1639 dupch->handlers->write_header->fp = ch->handlers->write_header->fp; in PHP_FUNCTION()
1640 dupch->handlers->read->fp = ch->handlers->read->fp; in PHP_FUNCTION()
1641 dupch->handlers->read->fd = ch->handlers->read->fd; in PHP_FUNCTION()
1645 dupch->handlers->passwd = ch->handlers->passwd; in PHP_FUNCTION()
1646 curl_easy_setopt(ch->cp, CURLOPT_PASSWDDATA, (void *) dupch); in PHP_FUNCTION()
1651 dupch->handlers->write->func_name = ch->handlers->write->func_name; in PHP_FUNCTION()
1655 dupch->handlers->read->func_name = ch->handlers->read->func_name; in PHP_FUNCTION()
1659 dupch->handlers->write_header->func_name = ch->handlers->write_header->func_name; in PHP_FUNCTION()
1664 dupch->handlers->progress->func_name = ch->handlers->progress->func_name; in PHP_FUNCTION()
1666 dupch->handlers->progress->method = ch->handlers->progress->method; in PHP_FUNCTION()
1668 curl_easy_setopt(dupch->cp, CURLOPT_ERRORBUFFER, dupch->err.str); in PHP_FUNCTION()
1669 curl_easy_setopt(dupch->cp, CURLOPT_FILE, (void *) dupch); in PHP_FUNCTION()
1670 curl_easy_setopt(dupch->cp, CURLOPT_INFILE, (void *) dupch); in PHP_FUNCTION()
1671 curl_easy_setopt(dupch->cp, CURLOPT_WRITEHEADER, (void *) dupch); in PHP_FUNCTION()
1672 curl_easy_setopt(dupch->cp, CURLOPT_PROGRESSDATA, (void *) dupch); in PHP_FUNCTION()
1674 efree(dupch->to_free); in PHP_FUNCTION()
1675 dupch->to_free = ch->to_free; in PHP_FUNCTION()
1679 dupch->clone = ch->clone; in PHP_FUNCTION()
1681 ZEND_REGISTER_RESOURCE(return_value, dupch, le_curl); in PHP_FUNCTION()
1682 dupch->id = Z_LVAL_P(return_value); in PHP_FUNCTION()