diff options
author | Pierrick Charron <pierrick@php.net> | 2013-04-23 17:01:17 -0400 |
---|---|---|
committer | Pierrick Charron <pierrick@php.net> | 2013-04-23 17:01:17 -0400 |
commit | b79e65f268d8f368a1088313735eda3ca485fa53 (patch) | |
tree | a5183bc8c8b9cd12fd93066d276ceff723ebcf62 /ext/curl/php_curl.h | |
parent | 758b666c0ad6edb48274858d2e11c53460787b88 (diff) | |
download | php-git-b79e65f268d8f368a1088313735eda3ca485fa53.tar.gz |
Remove curl wrappers
Diffstat (limited to 'ext/curl/php_curl.h')
-rw-r--r-- | ext/curl/php_curl.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h index c4222c0588..9e98fe57cd 100644 --- a/ext/curl/php_curl.h +++ b/ext/curl/php_curl.h @@ -200,38 +200,6 @@ 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); -/* streams support */ - -extern php_stream_ops php_curl_stream_ops; -#define PHP_STREAM_IS_CURL &php_curl_stream_ops - -php_stream *php_curl_stream_opener(php_stream_wrapper *wrapper, char *filename, char *mode, - int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); - -extern php_stream_wrapper php_curl_wrapper; - -struct php_curl_buffer { - off_t readpos, writepos; - php_stream *buf; -}; - -typedef struct { - CURL *curl; - CURLM *multi; - char *url; - struct php_curl_buffer readbuffer; /* holds downloaded data */ - struct php_curl_buffer writebuffer; /* holds data to upload */ - - fd_set readfds, writefds, excfds; - int maxfd; - - char errstr[CURL_ERROR_SIZE + 1]; - CURLMcode mcode; - int pending; - zval *headers; - struct curl_slist *headers_slist; /* holds custom headers sent out in the request */ -} php_curl_stream; - void curlfile_register_class(TSRMLS_D); PHP_CURL_API extern zend_class_entry *curl_CURLFile_class; |