projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
ac3d254
)
- fix bad hash key length
author
Michael Wallner
<mike@php.net>
Fri, 28 Apr 2006 14:43:44 +0000
(14:43 +0000)
committer
Michael Wallner
<mike@php.net>
Fri, 28 Apr 2006 14:43:44 +0000
(14:43 +0000)
http_request_api.c
patch
|
blob
|
history
diff --git
a/http_request_api.c
b/http_request_api.c
index 41801656e82849fad99c28d5c2bca5a24ee05be0..1455eef04202703f06224bf93285394504abbc3a 100644
(file)
--- 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)) { \
}
#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); \
} \
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)) { \
}
#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; \
HTTP_CURL_OPT(optname, Z_LVAL_P(copy)); \
key = NULL; \
continue; \