diff options
author | foobar <sniper@php.net> | 2003-04-04 16:18:15 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-04-04 16:18:15 +0000 |
commit | 8e6f5fe353bd17585a6f99dfb466b3924e948c34 (patch) | |
tree | b4d4a667dc39afb727fb72a11a1e8bc9819a0a03 /ext/curl | |
parent | aa00851aa4422a5f46529946977334ef807c47fc (diff) | |
download | php-git-8e6f5fe353bd17585a6f99dfb466b3924e948c34.tar.gz |
Fix bug #23048, CURLOPT_ENCODING is not always available
Diffstat (limited to 'ext/curl')
-rw-r--r-- | ext/curl/curl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/curl/curl.c b/ext/curl/curl.c index b7a470474a..d0e1244fa1 100644 --- a/ext/curl/curl.c +++ b/ext/curl/curl.c @@ -191,7 +191,9 @@ PHP_MINIT_FUNCTION(curl) REGISTER_CURL_CONSTANT(CURLOPT_SSLENGINE); REGISTER_CURL_CONSTANT(CURLOPT_SSLENGINE_DEFAULT); REGISTER_CURL_CONSTANT(CURLOPT_CRLF); +#ifdef CURLOPT_ENCODING REGISTER_CURL_CONSTANT(CURLOPT_ENCODING); +#endif /* Constants effecting the way CURLOPT_CLOSEPOLICY works */ REGISTER_CURL_CONSTANT(CURLCLOSEPOLICY_LEAST_RECENTLY_USED); @@ -740,8 +742,10 @@ PHP_FUNCTION(curl_setopt) case CURLOPT_SSLKEYTYPE: case CURLOPT_SSLKEYPASSWD: case CURLOPT_SSLENGINE: - case CURLOPT_SSLENGINE_DEFAULT: - case CURLOPT_ENCODING: { +#ifdef CURLOPT_ENCODING + case CURLOPT_ENCODING: +#endif + case CURLOPT_SSLENGINE_DEFAULT: { char *copystr = NULL; convert_to_string_ex(zvalue); |