diff options
author | Sterling Hughes <sterling@php.net> | 2000-07-24 20:00:00 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2000-07-24 20:00:00 +0000 |
commit | cb44d1b30aa1736cef5add5eaf8156f2e21b54be (patch) | |
tree | 5cf760998b2ce2fe3182735e2bf74b04d5565250 /ext/curl/php_curl.h | |
parent | 9d6d8bf1fa2b6bb430e86766fd8e0ed4e0aa0ce7 (diff) | |
download | php-git-cb44d1b30aa1736cef5add5eaf8156f2e21b54be.tar.gz |
1. Move from experimental -> production
2. Thread safety
3. Set some initial options
4. Redo the placement of some functions and options.
Diffstat (limited to 'ext/curl/php_curl.h')
-rw-r--r-- | ext/curl/php_curl.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h index c5d9cf1d84..b5c6e51dd4 100644 --- a/ext/curl/php_curl.h +++ b/ext/curl/php_curl.h @@ -38,6 +38,20 @@ PHP_FUNCTION (curl_setopt); PHP_FUNCTION (curl_exec); PHP_FUNCTION (curl_close); + +typedef struct { + int le_curl; +} php_curl_globals; + +#ifdef ZTS +#define CURLG(v) (curl_globals->v) +#define CURLLS_FETCH() php_curl_globals *curl_globals = ts_resource(gd_curl_id) +#else +#define CURLG(v) (curl_globals.v) +#define CURLLS_FETCH() +#endif + + #else #define curl_module_ptr NULL #endif /* HAVE_CURL */ |