diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 18b3388ab80..9131f1d57bc 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -33,15 +33,15 @@ #include #endif - ZEND_API void (*zend_execute)(zend_op_array *op_array TSRMLS_DC); ZEND_API void (*zend_execute_internal)(zend_execute_data *execute_data_ptr, int return_value_used TSRMLS_DC); -#ifdef ZEND_WIN32 -#include /* true global */ ZEND_API zend_fcall_info_cache empty_fcall_info_cache = { NULL, NULL, NULL, 0 }; +#ifdef ZEND_WIN32 +#include + static WNDCLASS wc; static HWND timeout_window; static HANDLE timeout_thread_event; diff --git a/ext/curl/interface.c b/ext/curl/interface.c index feec10b1ffb..c549ea2983c 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -562,7 +562,7 @@ static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx fci.params = argv; fci.no_separation = 0; - error = zend_call_user_function(&fci, &t->fci_cache TSRMLS_CC); + error = zend_call_function(&fci, &t->fci_cache TSRMLS_CC); if (error == FAILURE) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not call the CURLOPT_HEADERFUNCTION"); length = -1; diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h index 46d5509a50b..94c94e971e0 100644 --- a/ext/curl/php_curl.h +++ b/ext/curl/php_curl.h @@ -79,7 +79,7 @@ void _php_curl_multi_close(zend_rsrc_list_entry * TSRMLS_DC); typedef struct { zval *func_name; - zend_fcall_info fci_cache; + zend_fcall_info_cache fci_cache; FILE *fp; smart_str buf; int method; @@ -88,7 +88,7 @@ typedef struct { typedef struct { zval *func_name; - zend_fcall_info fci_cache; + zend_fcall_info_cache fci_cache; FILE *fp; long fd; int method;