From 4572d414765d484f886a737096d2b720b8dc4770 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 28 Apr 2006 14:43:44 +0000 Subject: [PATCH] - fix bad hash key length --- http_request_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; \ -- 2.30.2