diff options
author | Michael Wallner <mike@php.net> | 2007-10-03 20:34:01 +0000 |
---|---|---|
committer | Michael Wallner <mike@php.net> | 2007-10-03 20:34:01 +0000 |
commit | 2448b05b4f17b0a2516f96c17cef412a7f6a30f5 (patch) | |
tree | 4096c3aa474f9e8cc9d6eefaecaf12c404bd070e | |
parent | 108dddcac094635e5866b29759732a7749da8286 (diff) | |
download | php-git-2448b05b4f17b0a2516f96c17cef412a7f6a30f5.tar.gz |
MFH: fix CURLOPT_TIMEOUT_MS support
-rw-r--r-- | ext/curl/interface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index ee5cd8c4b8..7e84732033 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -387,7 +387,7 @@ PHP_MINIT_FUNCTION(curl) REGISTER_CURL_CONSTANT(CURLOPT_PROXYUSERPWD); REGISTER_CURL_CONSTANT(CURLOPT_RANGE); REGISTER_CURL_CONSTANT(CURLOPT_TIMEOUT); -#ifdef CURLOPT_TIMEOUT_MS +#if LIBCURL_VERSION_NUM > 0x071002 REGISTER_CURL_CONSTANT(CURLOPT_TIMEOUT_MS); #endif REGISTER_CURL_CONSTANT(CURLOPT_POSTFIELDS); @@ -433,7 +433,7 @@ PHP_MINIT_FUNCTION(curl) REGISTER_CURL_CONSTANT(CURLOPT_RANDOM_FILE); REGISTER_CURL_CONSTANT(CURLOPT_EGDSOCKET); REGISTER_CURL_CONSTANT(CURLOPT_CONNECTTIMEOUT); -#ifdef CURLOPT_CONNECTTIMEOUT_MS +#if LIBCURL_VERSION_NUM > 0x071002 REGISTER_CURL_CONSTANT(CURLOPT_CONNECTTIMEOUT_MS); #endif REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYPEER); @@ -1233,7 +1233,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu case CURLOPT_MUTE: #endif case CURLOPT_TIMEOUT: -#ifdef CURLOPT_TIMEOUT_MS +#if LIBCURL_VERSION_NUM > 0x071002 case CURLOPT_TIMEOUT_MS: #endif case CURLOPT_FTP_USE_EPSV: @@ -1252,7 +1252,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu case CURLOPT_FRESH_CONNECT: case CURLOPT_FORBID_REUSE: case CURLOPT_CONNECTTIMEOUT: -#ifdef CURLOPT_CONNECTTIMEOUT_MS +#if LIBCURL_VERSION_NUM > 0x071002 case CURLOPT_CONNECTTIMEOUT_MS: #endif case CURLOPT_SSL_VERIFYHOST: |