diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-12-04 17:44:27 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-12-04 17:44:27 +0000 |
commit | 2994c2367062a63394753fc367708b3d1f4955e8 (patch) | |
tree | 2b6375355843acd1bea60d1b172bdb8fd5cac3e7 /ext/standard/url.h | |
parent | eb83ca1cd30bb96377593ad36538e9867ba3b63a (diff) | |
download | php-git-2994c2367062a63394753fc367708b3d1f4955e8.tar.gz |
MFH:
Added 2nd optional parameter to parse_url() that allows retrieval of
individual URL components.
Added 3rd optional parameter to http_build_query() that allows custom param
separator.
Diffstat (limited to 'ext/standard/url.h')
-rw-r--r-- | ext/standard/url.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/standard/url.h b/ext/standard/url.h index e09ecae6fd..ece95e0e39 100644 --- a/ext/standard/url.h +++ b/ext/standard/url.h @@ -46,6 +46,15 @@ PHP_FUNCTION(rawurlencode); PHP_FUNCTION(rawurldecode); PHP_FUNCTION(get_headers); +#define PHP_URL_SCHEME 0 +#define PHP_URL_HOST 1 +#define PHP_URL_PORT 2 +#define PHP_URL_USER 3 +#define PHP_URL_PASS 4 +#define PHP_URL_PATH 5 +#define PHP_URL_QUERY 6 +#define PHP_URL_FRAGMENT 7 + #endif /* URL_H */ /* |