summaryrefslogtreecommitdiff
path: root/ext/standard/url.h
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-12-04 17:44:27 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-12-04 17:44:27 +0000
commit2994c2367062a63394753fc367708b3d1f4955e8 (patch)
tree2b6375355843acd1bea60d1b172bdb8fd5cac3e7 /ext/standard/url.h
parenteb83ca1cd30bb96377593ad36538e9867ba3b63a (diff)
downloadphp-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.h9
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 */
/*