zend_function_entry http_functions[] = {
PHP_FE(http_test, NULL)
PHP_FE(http_date, NULL)
- PHP_FE(http_absolute_uri, NULL)
+ PHP_FE(http_build_uri, NULL)
+ PHP_FALIAS(http_absolute_uri, http_build_uri, NULL)
PHP_FE(http_negotiate_language, NULL)
PHP_FE(http_negotiate_charset, NULL)
PHP_FE(http_redirect, NULL)
}
/* }}} */
-/* {{{ 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,
* </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;
RETVAL_NULL(); \
} \
zend_hash_destroy(result); \
+ FREE_HASHTABLE(result); \
} \
} else { \
if (as_array) { \
HTTP_ARG_VAL(timestamp, 0)
HTTP_END_ARGS;
-HTTP_BEGIN_ARGS(absoluteUri, 1)
+HTTP_BEGIN_ARGS(buildUri, 1)
HTTP_ARG_VAL(url, 0)
HTTP_ARG_VAL(proto, 0)
HTTP_ARG_VAL(host, 0)
zend_class_entry *http_util_object_ce;
zend_function_entry http_util_object_fe[] = {
HTTP_UTIL_ALIAS(date, http_date)
- HTTP_UTIL_ALIAS(absoluteUri, http_absolute_uri)
+ HTTP_UTIL_ALIAS(buildUri, http_build_uri)
HTTP_UTIL_ALIAS(negotiateLanguage, http_negotiate_language)
HTTP_UTIL_ALIAS(negotiateCharset, http_negotiate_charset)
HTTP_UTIL_ALIAS(matchModified, http_match_modified)
PHP_FUNCTION(http_test);
PHP_FUNCTION(http_date);
-PHP_FUNCTION(http_absolute_uri);
+PHP_FUNCTION(http_build_uri);
PHP_FUNCTION(http_negotiate_language);
PHP_FUNCTION(http_negotiate_charset);
PHP_FUNCTION(http_redirect);