xref: /PHP-7.3/main/php_variables.h (revision 9afce019)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 7                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1997-2018 The PHP Group                                |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 3.01 of the PHP license,      |
8    | that is bundled with this package in the file LICENSE, and is        |
9    | available through the world-wide-web at the following url:           |
10    | http://www.php.net/license/3_01.txt                                  |
11    | If you did not receive a copy of the PHP license and are unable to   |
12    | obtain it through the world-wide-web, please send a note to          |
13    | license@php.net so we can mail you a copy immediately.               |
14    +----------------------------------------------------------------------+
15    | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                       |
16    |          Zeev Suraski <zeev@php.net>                                 |
17    +----------------------------------------------------------------------+
18 */
19 
20 #ifndef PHP_VARIABLES_H
21 #define PHP_VARIABLES_H
22 
23 #include "php.h"
24 #include "SAPI.h"
25 
26 #define PARSE_POST 0
27 #define PARSE_GET 1
28 #define PARSE_COOKIE 2
29 #define PARSE_STRING 3
30 #define PARSE_ENV 4
31 #define PARSE_SERVER 5
32 #define PARSE_SESSION 6
33 
34 BEGIN_EXTERN_C()
35 void php_startup_auto_globals(void);
36 extern PHPAPI void (*php_import_environment_variables)(zval *array_ptr);
37 PHPAPI void php_register_variable(char *var, char *val, zval *track_vars_array);
38 /* binary-safe version */
39 PHPAPI void php_register_variable_safe(char *var, char *val, size_t val_len, zval *track_vars_array);
40 PHPAPI void php_register_variable_ex(char *var, zval *val, zval *track_vars_array);
41 
42 PHPAPI void php_build_argv(char *s, zval *track_vars_array);
43 PHPAPI int php_hash_environment(void);
44 END_EXTERN_C()
45 
46 #define NUM_TRACK_VARS	6
47 
48 #endif /* PHP_VARIABLES_H */
49 /*
50  * Local variables:
51  * tab-width: 4
52  * c-basic-offset: 4
53  * End:
54  * vim600: sw=4 ts=4 fdm=marker
55  * vim<600: sw=4 ts=4
56  */
57