From: Michael Wallner Date: Sat, 10 Aug 2019 09:28:35 +0000 (+0200) Subject: attempt to fix #92 X-Git-Tag: RELEASE_3_2_2~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=eacf52af5d1479b16ff282b407820383aaf2d532;p=m6w6%2Fext-http attempt to fix #92 Body::addForm() discards numeric keys --- diff --git a/src/php_http_message_body.c b/src/php_http_message_body.c index b2e643b..f0068b8 100644 --- 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;