mirror of
https://github.com/php/php-src.git
synced 2024-12-03 06:44:07 +08:00
Win32 build fixes
This commit is contained in:
parent
496d17b98d
commit
7886bc93f6
@ -55,6 +55,8 @@ static void _php_curl_close(zend_rsrc_list_entry *rsrc TSRMLS_DC);
|
||||
#define CAAS(s, v) add_assoc_string_ex(return_value, s, sizeof(s), (char *) v, 1);
|
||||
#define CAAZ(s, v) add_assoc_zval_ex(return_value, s, sizeof(s), (zval *) v);
|
||||
|
||||
static const unsigned char second_args_force_ref[] = { 2, BYREF_NONE, BYREF_FORCE };
|
||||
|
||||
/* {{{ curl_functions[]
|
||||
*/
|
||||
function_entry curl_functions[] = {
|
||||
@ -70,7 +72,7 @@ function_entry curl_functions[] = {
|
||||
PHP_FE(curl_multi_add_handle, NULL)
|
||||
PHP_FE(curl_multi_remove_handle, NULL)
|
||||
PHP_FE(curl_multi_select, NULL)
|
||||
PHP_FE(curl_multi_exec, second_arg_force_ref)
|
||||
PHP_FE(curl_multi_exec, second_args_force_ref)
|
||||
PHP_FE(curl_multi_getcontent, NULL)
|
||||
PHP_FE(curl_multi_info_read, NULL)
|
||||
PHP_FE(curl_multi_close, NULL)
|
||||
|
@ -131,10 +131,10 @@ void _php_curl_cleanup_handle(php_curl *);
|
||||
|
||||
/* streams support */
|
||||
|
||||
PHPAPI extern php_stream_ops php_curl_stream_ops;
|
||||
extern php_stream_ops php_curl_stream_ops;
|
||||
#define PHP_STREAM_IS_CURL &php_curl_stream_ops
|
||||
|
||||
PHPAPI php_stream *php_curl_stream_opener(php_stream_wrapper *wrapper, char *filename, char *mode,
|
||||
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;
|
||||
|
@ -232,7 +232,7 @@ static int php_curl_stream_cast(php_stream *stream, int castas, void **ret TSRML
|
||||
return php_stream_cast(curlstream->readbuffer.buf, castas, ret, 0);
|
||||
}
|
||||
|
||||
PHPAPI php_stream_ops php_curl_stream_ops = {
|
||||
php_stream_ops php_curl_stream_ops = {
|
||||
php_curl_stream_write,
|
||||
php_curl_stream_read,
|
||||
php_curl_stream_close,
|
||||
@ -244,7 +244,7 @@ PHPAPI php_stream_ops php_curl_stream_ops = {
|
||||
};
|
||||
|
||||
|
||||
PHPAPI php_stream *php_curl_stream_opener(php_stream_wrapper *wrapper, char *filename, char *mode,
|
||||
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)
|
||||
{
|
||||
php_stream *stream;
|
||||
|
Loading…
Reference in New Issue
Block a user