php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
url.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Author: Jim Winstead <jimw@php.net> |
14 +----------------------------------------------------------------------+
15 */
16
17#ifndef URL_H
18#define URL_H
19
30
31PHPAPI void php_url_free(php_url *theurl);
32PHPAPI php_url *php_url_parse(char const *str);
33PHPAPI php_url *php_url_parse_ex(char const *str, size_t length);
34PHPAPI php_url *php_url_parse_ex2(char const *str, size_t length, bool *has_port);
35PHPAPI size_t php_url_decode(char *str, size_t len); /* return value: length of decoded string */
36PHPAPI size_t php_raw_url_decode(char *str, size_t len); /* return value: length of decoded string */
37PHPAPI zend_string *php_url_encode(char const *s, size_t len);
38PHPAPI zend_string *php_raw_url_encode(char const *s, size_t len);
39
40#define PHP_URL_SCHEME 0
41#define PHP_URL_HOST 1
42#define PHP_URL_PORT 2
43#define PHP_URL_USER 3
44#define PHP_URL_PASS 4
45#define PHP_URL_PATH 5
46#define PHP_URL_QUERY 6
47#define PHP_URL_FRAGMENT 7
48
49#define PHP_QUERY_RFC1738 1
50#define PHP_QUERY_RFC3986 2
51
52#endif /* URL_H */
size_t len
Definition apprentice.c:174
char s[4]
Definition cdf.c:77
#define PHPAPI
Definition php.h:71
Definition url.h:20
zend_string * user
Definition url.h:22
zend_string * pass
Definition url.h:23
zend_string * host
Definition url.h:24
zend_string * fragment
Definition url.h:28
unsigned short port
Definition url.h:25
zend_string * scheme
Definition url.h:21
zend_string * query
Definition url.h:27
zend_string * path
Definition url.h:26
PHPAPI size_t php_url_decode(char *str, size_t len)
Definition url.c:582
PHPAPI zend_string * php_raw_url_encode(char const *s, size_t len)
Definition url.c:608
PHPAPI zend_string * php_url_encode(char const *s, size_t len)
Definition url.c:546
PHPAPI php_url * php_url_parse_ex2(char const *str, size_t length, bool *has_port)
Definition url.c:92
PHPAPI php_url * php_url_parse(char const *str)
Definition url.c:67
PHPAPI size_t php_raw_url_decode(char *str, size_t len)
Definition url.c:644
PHPAPI php_url * php_url_parse_ex(char const *str, size_t length)
Definition url.c:84
PHPAPI void php_url_free(php_url *theurl)
Definition url.c:32
struct _zend_string zend_string