]> granicus.if.org Git - php/commitdiff
Add Win32 support for cURL.
authorSterling Hughes <sterling@php.net>
Tue, 15 Aug 2000 16:54:48 +0000 (16:54 +0000)
committerSterling Hughes <sterling@php.net>
Tue, 15 Aug 2000 16:54:48 +0000 (16:54 +0000)
#  Switch this commit message with the last one and you get the
#  right commit order.

ext/curl/curl.c

index ca36924819c8ec76947b6844e1481f14f303458e..0748027f9091a560dfa94fba832f6838eeb862f6 100644 (file)
@@ -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();