php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
url_scanner_ex.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: Sascha Schumann <sascha@schumann.cx> |
14 +----------------------------------------------------------------------+
15*/
16
17#ifndef URL_SCANNER_EX_H
18#define URL_SCANNER_EX_H
19
20PHP_MINIT_FUNCTION(url_scanner_ex);
21PHP_MSHUTDOWN_FUNCTION(url_scanner_ex);
22
23PHP_RINIT_FUNCTION(url_scanner_ex);
24PHP_RSHUTDOWN_FUNCTION(url_scanner_ex);
25
26PHPAPI char *php_url_scanner_adapt_single_url(const char *url, size_t urllen, const char *name, const char *value, size_t *newlen, bool encode);
27PHPAPI zend_result php_url_scanner_add_session_var(const char *name, size_t name_len, const char *value, size_t value_len, bool encode);
30PHPAPI zend_result php_url_scanner_add_var(const char *name, size_t name_len, const char *value, size_t value_len, bool encode);
33
35
36typedef struct {
37 /* Used by the mainloop of the scanner */
38 smart_str tag; /* read only */
39 smart_str arg; /* read only */
40 smart_str val; /* read only */
42
43 /* The result buffer */
45
46 /* The data which is appended to each relative URL/FORM */
48
49 int active;
50
52 int state;
53
54 int type;
58
59 /* Everything above is zeroed in RINIT */
62
63#endif
#define PHP_MSHUTDOWN_FUNCTION
Definition php.h:401
#define PHP_MINIT_FUNCTION
Definition php.h:400
#define PHP_RINIT_FUNCTION
Definition php.h:402
#define PHP_RSHUTDOWN_FUNCTION
Definition php.h:403
#define PHPAPI
Definition php.h:71
struct _encode encode
Definition php_soap.h:42
PHPAPI zend_result php_url_scanner_reset_session_vars(void)
PHPAPI char * php_url_scanner_adapt_single_url(const char *url, size_t urllen, const char *name, const char *value, size_t *newlen, bool encode)
PHPAPI zend_result php_url_scanner_reset_var(zend_string *name, int encode)
PHPAPI zend_result php_url_scanner_add_var(const char *name, size_t name_len, const char *value, size_t value_len, bool encode)
PHPAPI zend_result php_url_scanner_reset_session_var(zend_string *name, int encode)
PHPAPI zend_result php_url_scanner_reset_vars(void)
PHPAPI zend_result php_url_scanner_add_session_var(const char *name, size_t name_len, const char *value, size_t value_len, bool encode)
struct _zend_string zend_string
struct _zend_array HashTable
Definition zend_types.h:386
ZEND_RESULT_CODE zend_result
Definition zend_types.h:64
zend_string * name
value