projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- rename http_absolute_uri to http_build_uri (complements http_build_query)
[m6w6/ext-http]
/
http_functions.c
diff --git
a/http_functions.c
b/http_functions.c
index 7d7eec4b2a05365c2e9fe79cbcecadaf20395c2b..9265d2252214875a159a706d1a888440c1a848ad 100644
(file)
--- 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,
*
* 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)
* </pre>
*
*/
* </pre>
*
*/
-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;
{
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); \
RETVAL_NULL(); \
} \
zend_hash_destroy(result); \
+ FREE_HASHTABLE(result); \
} \
} else { \
if (as_array) { \
} \
} else { \
if (as_array) { \