From: Sterling Hughes Date: Fri, 12 Jan 2001 10:49:38 +0000 (+0000) Subject: Make daniel's changes work in ZTS mode... X-Git-Tag: php-4.0.5RC1~616 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e6fe30139aff249540df2d588e33cc61d35c759;p=php Make daniel's changes work in ZTS mode... --- diff --git a/ext/curl/curl.c b/ext/curl/curl.c index f04b076e31..69b4a4dc6f 100644 --- a/ext/curl/curl.c +++ b/ext/curl/curl.c @@ -48,12 +48,6 @@ #include "ext/standard/file.h" #include "php_curl.h" -#ifdef ZTS -int curl_globals_id; -#else -php_curl_globals curl_globals; -#endif - static int le_curl; static void _php_curl_close(zend_rsrc_list_entry *rsrc); @@ -315,7 +309,7 @@ PHP_FUNCTION(curl_init) urlstr = estrndup(Z_STRVAL_PP(url), Z_STRLEN_PP(url)); curl_easy_setopt(curl_handle->cp, CURLOPT_URL, urlstr); - zend_llist_add_element(&curl_handle->to_free,&urlstr); + zend_llist_add_element(&curl_handle->to_free, &urlstr); } curl_easy_setopt(curl_handle->cp, CURLOPT_NOPROGRESS, 1); @@ -383,7 +377,7 @@ PHP_FUNCTION(curl_setopt) copystr = estrndup(Z_STRVAL_PP(curl_value), Z_STRLEN_PP(curl_value)); ret = curl_easy_setopt(curl_handle->cp, option, copystr); - zend_llist_add_element(&curl_handle->to_free,©str); + zend_llist_add_element(&curl_handle->to_free, ©str); } break; diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h index 10e10c82e4..f0235bfeaa 100644 --- a/ext/curl/php_curl.h +++ b/ext/curl/php_curl.h @@ -60,16 +60,6 @@ typedef struct { } php_curl; - -#ifdef ZTS -#define CURLG(v) (curl_globals->v) -#define CURLLS_FETCH() php_curl_globals *curl_globals = ts_resource(curl_globals_id) -#else -#define CURLG(v) (curl_globals.v) -#define CURLLS_FETCH() -#endif - - #else #define curl_module_ptr NULL #endif /* HAVE_CURL */