+static inline void php_http_array_hashkey_stringify(php_http_array_hashkey_t *key)
+{
+ if (key->type != HASH_KEY_IS_STRING) {
+ key->len = spprintf(&key->str, 0, "%lu", key->num) + 1;
+ }
+}
+
+static inline void php_http_array_hashkey_stringfree(php_http_array_hashkey_t *key)
+{
+ if (key->type != HASH_KEY_IS_STRING || key->dup) {
+ STR_FREE(key->str);
+ }
+}
+