projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- ext/hash detection
[m6w6/ext-http]
/
http_request_method_api.c
diff --git
a/http_request_method_api.c
b/http_request_method_api.c
index be19f492ce9832609e4028e9c83a8724d2283862..873d5b1df14341aa74432b2399bb688c04d74751 100644
(file)
--- a/
http_request_method_api.c
+++ b/
http_request_method_api.c
@@
-148,8
+148,9
@@
PHP_HTTP_API ulong _http_request_method_exists(zend_bool by_name, ulong id, cons
zval **data;
char *key;
ulong idx;
zval **data;
char *key;
ulong idx;
+ HashPosition pos;
- FOREACH_HASH_KEYVAL(&HTTP_G(request).methods.custom, key, idx, data) {
+ FOREACH_HASH_KEYVAL(
pos,
&HTTP_G(request).methods.custom, key, idx, data) {
if (!strcmp(name, Z_STRVAL_PP(data))) {
return idx + HTTP_MAX_REQUEST_METHOD;
}
if (!strcmp(name, Z_STRVAL_PP(data))) {
return idx + HTTP_MAX_REQUEST_METHOD;
}