php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
url.h File Reference

Go to the source code of this file.

Data Structures

struct  php_url
 

Macros

#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
 
#define PHP_QUERY_RFC1738   1
 
#define PHP_QUERY_RFC3986   2
 

Typedefs

typedef struct php_url php_url
 

Functions

PHPAPI void php_url_free (php_url *theurl)
 
PHPAPI php_urlphp_url_parse (char const *str)
 
PHPAPI php_urlphp_url_parse_ex (char const *str, size_t length)
 
PHPAPI php_urlphp_url_parse_ex2 (char const *str, size_t length, bool *has_port)
 
PHPAPI size_t php_url_decode (char *str, size_t len)
 
PHPAPI size_t php_raw_url_decode (char *str, size_t len)
 
PHPAPI zend_stringphp_url_encode (char const *s, size_t len)
 
PHPAPI zend_stringphp_raw_url_encode (char const *s, size_t len)
 

Macro Definition Documentation

◆ PHP_QUERY_RFC1738

#define PHP_QUERY_RFC1738   1

Definition at line 49 of file url.h.

◆ PHP_QUERY_RFC3986

#define PHP_QUERY_RFC3986   2

Definition at line 50 of file url.h.

◆ PHP_URL_FRAGMENT

#define PHP_URL_FRAGMENT   7

Definition at line 47 of file url.h.

◆ PHP_URL_HOST

#define PHP_URL_HOST   1

Definition at line 41 of file url.h.

◆ PHP_URL_PASS

#define PHP_URL_PASS   4

Definition at line 44 of file url.h.

◆ PHP_URL_PATH

#define PHP_URL_PATH   5

Definition at line 45 of file url.h.

◆ PHP_URL_PORT

#define PHP_URL_PORT   2

Definition at line 42 of file url.h.

◆ PHP_URL_QUERY

#define PHP_URL_QUERY   6

Definition at line 46 of file url.h.

◆ PHP_URL_SCHEME

#define PHP_URL_SCHEME   0

Definition at line 40 of file url.h.

◆ PHP_URL_USER

#define PHP_URL_USER   3

Definition at line 43 of file url.h.

Typedef Documentation

◆ php_url

typedef struct php_url php_url

Function Documentation

◆ php_raw_url_decode()

PHPAPI size_t php_raw_url_decode ( char * str,
size_t len )

Definition at line 644 of file url.c.

◆ php_raw_url_encode()

PHPAPI zend_string * php_raw_url_encode ( char const * s,
size_t len )

Definition at line 608 of file url.c.

◆ php_url_decode()

PHPAPI size_t php_url_decode ( char * str,
size_t len )

Definition at line 582 of file url.c.

◆ php_url_encode()

PHPAPI zend_string * php_url_encode ( char const * s,
size_t len )

Definition at line 546 of file url.c.

◆ php_url_free()

PHPAPI void php_url_free ( php_url * theurl)

Definition at line 32 of file url.c.

◆ php_url_parse()

PHPAPI php_url * php_url_parse ( char const * str)

Definition at line 67 of file url.c.

◆ php_url_parse_ex()

PHPAPI php_url * php_url_parse_ex ( char const * str,
size_t length )

Definition at line 84 of file url.c.

◆ php_url_parse_ex2()

PHPAPI php_url * php_url_parse_ex2 ( char const * str,
size_t length,
bool * has_port )

Definition at line 92 of file url.c.