diff options
-rw-r--r-- | ext/curl/curl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/curl/curl.c b/ext/curl/curl.c index ca36924819..0748027f90 100644 --- a/ext/curl/curl.c +++ b/ext/curl/curl.c @@ -86,7 +86,7 @@ zend_module_entry curl_module_entry = { curl_functions, PHP_MINIT(curl), PHP_MSHUTDOWN(curl), - NULL, + PHP_RINIT(curl), NULL, PHP_MINFO(curl), STANDARD_MODULE_PROPERTIES @@ -211,6 +211,11 @@ PHP_MINIT_FUNCTION(curl) return SUCCESS; } +PHP_RINIT_FUNCTION(curl) +{ + CURLG(use_file) = 0; +} + PHP_MSHUTDOWN_FUNCTION(curl) { win32_cleanup(); |