diff options
author | Pierrick Charron <pierrick@php.net> | 2011-11-23 22:20:28 +0000 |
---|---|---|
committer | Pierrick Charron <pierrick@php.net> | 2011-11-23 22:20:28 +0000 |
commit | da2797108fb854d13df2a11a4c0712bd5e656113 (patch) | |
tree | 2c1a0a3a8526ddc6224bdb672a09c62378b0291a /ext/curl/php_curl.h | |
parent | 35d38e4772c4c6c0f92475471252fc08659ac84f (diff) | |
download | php-git-da2797108fb854d13df2a11a4c0712bd5e656113.tar.gz |
Implemented FR #55540, added functions curl_share_init(), curl_share_setopt() and curl_share_close().
Diffstat (limited to 'ext/curl/php_curl.h')
-rw-r--r-- | ext/curl/php_curl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h index 6acfc5eedd..d44a175e6e 100644 --- a/ext/curl/php_curl.h +++ b/ext/curl/php_curl.h @@ -53,6 +53,8 @@ extern int le_curl; #define le_curl_name "cURL handle" extern int le_curl_multi_handle; #define le_curl_multi_handle_name "cURL Multi Handle" +extern int le_curl_share_handle; +#define le_curl_share_handle_name "cURL Share Handle" PHP_MINIT_FUNCTION(curl); PHP_MSHUTDOWN_FUNCTION(curl); @@ -75,7 +77,12 @@ PHP_FUNCTION(curl_multi_exec); PHP_FUNCTION(curl_multi_getcontent); PHP_FUNCTION(curl_multi_info_read); PHP_FUNCTION(curl_multi_close); +PHP_FUNCTION(curl_share_init); +PHP_FUNCTION(curl_share_close); +PHP_FUNCTION(curl_share_setopt); + void _php_curl_multi_close(zend_rsrc_list_entry * TSRMLS_DC); +void _php_curl_share_close(zend_rsrc_list_entry * TSRMLS_DC); typedef struct { zval *func_name; @@ -145,6 +152,11 @@ typedef struct { zend_llist easyh; } php_curlm; +typedef struct { + CURLSH *share; + MUTEX_T locks[CURL_LOCK_DATA_LAST]; +} php_curlsh; + void _php_curl_cleanup_handle(php_curl *); void _php_curl_multi_cleanup_list(void *data); int _php_curl_verify_handlers(php_curl *ch, int reporterror TSRMLS_DC); |