From: Michael Wallner Date: Fri, 28 Apr 2006 14:43:44 +0000 (+0000) Subject: - fix bad hash key length X-Git-Tag: RELEASE_1_0_0~35 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4572d414765d484f886a737096d2b720b8dc4770;p=m6w6%2Fext-http - fix bad hash key length --- diff --git a/http_request_api.c b/http_request_api.c index 4180165..1455eef 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -257,7 +257,7 @@ PHP_MSHUTDOWN_FUNCTION(http_request) } #define HTTP_CURL_OPT_STRING_EX(keyname, optname, obdc) \ if (!strcasecmp(key, keyname)) { \ - zval *copy = http_request_option_cache(request, keyname, zval_copy(IS_STRING, *param)); \ + zval *copy = http_request_option_cache_ex(request, keyname, strlen(keyname)+1, 0, zval_copy(IS_STRING, *param)); \ if (obdc) { \ HTTP_CHECK_OPEN_BASEDIR(Z_STRVAL_P(copy), return FAILURE); \ } \ @@ -272,7 +272,7 @@ PHP_MSHUTDOWN_FUNCTION(http_request) } #define HTTP_CURL_OPT_LONG_EX(keyname, optname) \ if (!strcasecmp(key, keyname)) { \ - zval *copy = http_request_option_cache(request, keyname, zval_copy(IS_LONG, *param)); \ + zval *copy = http_request_option_cache_ex(request, keyname, strlen(keyname)+1, 0, zval_copy(IS_LONG, *param)); \ HTTP_CURL_OPT(optname, Z_LVAL_P(copy)); \ key = NULL; \ continue; \