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:
50eaea1
)
attempt to fix #92
author
Michael Wallner
<mike@php.net>
Sat, 10 Aug 2019 09:28:35 +0000
(11:28 +0200)
committer
Michael Wallner
<mike@php.net>
Sat, 10 Aug 2019 09:28:35 +0000
(11:28 +0200)
Body::addForm() discards numeric keys
src/php_http_message_body.c
patch
|
blob
|
history
diff --git
a/src/php_http_message_body.c
b/src/php_http_message_body.c
index b2e643be4b39491f4b4f90865e76edd530cdf06c..f0068b817a0fdf6714beac88d83b6f59f7250dae 100644
(file)
--- a/
src/php_http_message_body.c
+++ b/
src/php_http_message_body.c
@@
-330,7
+330,7
@@
static inline char *format_key(php_http_arrkey_t *key, const char *prefix) {
} else if (key->key) {
new_key = estrdup(key->key->val);
} else {
-
new_key = estrdup(""
);
+
spprintf(&new_key, 0, "%lu", key->h
);
}
return new_key;