X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=9265d2252214875a159a706d1a888440c1a848ad;hp=7d7eec4b2a05365c2e9fe79cbcecadaf20395c2b;hb=2e1cd7f9942bb07d7c3a2efb79090215fc1406d6;hpb=3c938b3b63e3063931e49d80a3e11fdcf6ce1769 diff --git a/http_functions.c b/http_functions.c index 7d7eec4..9265d22 100644 --- a/http_functions.c +++ b/http_functions.c @@ -69,7 +69,7 @@ PHP_FUNCTION(http_date) } /* }}} */ -/* {{{ proto string http_absolute_uri(string url[, string proto[, string host[, int port]]]) +/* {{{ proto string http_build_uri(string url[, string proto[, string host[, int port]]]) * * This function returns an absolute URI constructed from url. * If the url is already abolute but a different proto was supplied, @@ -86,7 +86,7 @@ PHP_FUNCTION(http_date) * * */ -PHP_FUNCTION(http_absolute_uri) +PHP_FUNCTION(http_build_uri) { char *url = NULL, *proto = NULL, *host = NULL; int url_len = 0, proto_len = 0, host_len = 0; @@ -118,6 +118,7 @@ PHP_FUNCTION(http_absolute_uri) RETVAL_NULL(); \ } \ zend_hash_destroy(result); \ + FREE_HASHTABLE(result); \ } \ } else { \ if (as_array) { \