mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
MFH
This commit is contained in:
parent
80a7bf2910
commit
cce49d019a
2 changed files with 10 additions and 6 deletions
|
@ -931,7 +931,7 @@ static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx)
|
||||
static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx) /* {{{ */
|
||||
{
|
||||
php_curl *ch = (php_curl *) ctx;
|
||||
|
||||
|
@ -947,6 +947,7 @@ static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, v
|
|||
|
||||
return 0;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
#if CURLOPT_PASSWDFUNCTION != 0
|
||||
/* {{{ curl_passwd
|
||||
|
@ -1214,7 +1215,7 @@ PHP_FUNCTION(curl_copy_handle)
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *return_value TSRMLS_DC)
|
||||
static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *return_value TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
CURLcode error=CURLE_OK;
|
||||
|
||||
|
@ -1603,6 +1604,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ proto bool curl_setopt(resource ch, int option, mixed value)
|
||||
Set an option for a cURL transfer */
|
||||
|
|
|
@ -122,13 +122,13 @@ void _php_curl_multi_cleanup_list(void *data) /* {{{ */
|
|||
/* }}} */
|
||||
|
||||
/* Used internally as comparison routine passed to zend_list_del_element */
|
||||
static int curl_compare_resources( zval *z1, zval **z2 )
|
||||
static int curl_compare_resources( zval *z1, zval **z2 ) /* {{{ */
|
||||
{
|
||||
return (Z_TYPE_P( z1 ) == Z_TYPE_PP( z2 ) &&
|
||||
Z_TYPE_P( z1 ) == IS_RESOURCE &&
|
||||
Z_LVAL_P( z1 ) == Z_LVAL_PP( z2 ) );
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* {{{ proto int curl_multi_remove_handle(resource mh, resource ch)
|
||||
Remove a multi handle from a set of cURL handles */
|
||||
|
@ -155,7 +155,7 @@ PHP_FUNCTION(curl_multi_remove_handle)
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
static void _make_timeval_struct(struct timeval *to, double timeout)
|
||||
static void _make_timeval_struct(struct timeval *to, double timeout) /* {{{ */
|
||||
{
|
||||
unsigned long conv;
|
||||
|
||||
|
@ -163,6 +163,7 @@ static void _make_timeval_struct(struct timeval *to, double timeout)
|
|||
to->tv_sec = conv / 1000000;
|
||||
to->tv_usec = conv % 1000000;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ proto int curl_multi_select(resource mh[, double timeout])
|
||||
Get all the sockets associated with the cURL extension, which can then be "selected" */
|
||||
|
@ -319,7 +320,7 @@ PHP_FUNCTION(curl_multi_close)
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
void _php_curl_multi_close(zend_rsrc_list_entry *rsrc TSRMLS_DC)
|
||||
void _php_curl_multi_close(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
php_curlm *mh = (php_curlm *) rsrc->ptr;
|
||||
if (mh) {
|
||||
|
@ -329,6 +330,7 @@ void _php_curl_multi_close(zend_rsrc_list_entry *rsrc TSRMLS_DC)
|
|||
rsrc->ptr = NULL;
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue