Back to index

php5  5.3.10
php_variables.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                       |
00016    |          Zeev Suraski <zeev@zend.com>                                |
00017    +----------------------------------------------------------------------+
00018 */
00019 
00020 /* $Id: php_variables.h 321634 2012-01-01 13:15:04Z felipe $ */
00021 
00022 #ifndef PHP_VARIABLES_H
00023 #define PHP_VARIABLES_H
00024 
00025 #include "php.h"
00026 #include "SAPI.h"
00027 
00028 #define PARSE_POST 0
00029 #define PARSE_GET 1
00030 #define PARSE_COOKIE 2
00031 #define PARSE_STRING 3
00032 #define PARSE_ENV 4
00033 #define PARSE_SERVER 5
00034 #define PARSE_SESSION 6
00035 
00036 BEGIN_EXTERN_C()
00037 void php_startup_auto_globals(TSRMLS_D);
00038 extern PHPAPI void (*php_import_environment_variables)(zval *array_ptr TSRMLS_DC);
00039 PHPAPI void php_register_variable(char *var, char *val, zval *track_vars_array TSRMLS_DC);
00040 /* binary-safe version */
00041 PHPAPI void php_register_variable_safe(char *var, char *val, int val_len, zval *track_vars_array TSRMLS_DC);
00042 PHPAPI void php_register_variable_ex(char *var, zval *val, zval *track_vars_array TSRMLS_DC);
00043 
00044 int php_hash_environment(TSRMLS_D);
00045 END_EXTERN_C()
00046 
00047 #define NUM_TRACK_VARS      6
00048 
00049 #endif /* PHP_VARIABLES_H */