X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_url_api.c;h=ccee5b3bf7817a249371c0cedf787c0624d5c2af;hp=e66781f65e07a32c25d46ece9cdcfd952deb01b1;hb=ffc893b125c6cc9b385a68a357b08ba2cc4e91f6;hpb=b08947e98f1832091c8a9f6dea3799e0524d2822 diff --git a/http_url_api.c b/http_url_api.c index e66781f..ccee5b3 100644 --- a/http_url_api.c +++ b/http_url_api.c @@ -197,12 +197,12 @@ PHP_HTTP_API STATUS _http_urlencode_hash_ex(HashTable *hash, zend_bool override_ } if (SUCCESS != http_urlencode_hash_implementation(hash, qstr, arg_sep)) { - phpstr_free(qstr); + phpstr_free(&qstr); return FAILURE; } phpstr_data(qstr, encoded_data, encoded_len); - phpstr_free(qstr); + phpstr_free(&qstr); return SUCCESS; } @@ -218,7 +218,8 @@ PHP_HTTP_API STATUS _http_urlencode_hash_implementation_ex( zval *type TSRMLS_DC) { char *key = NULL, *ekey, *newprefix, *p; - int arg_sep_len, key_len, ekey_len, key_type, newprefix_len; + int arg_sep_len, ekey_len, key_type, newprefix_len; + uint key_len; ulong idx; zval **zdata = NULL, *copyzval;