Back to index

php5  5.3.10
php_globals.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    | Author: Zeev Suraski <zeev@zend.com>                                 |
00016    +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_globals.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_GLOBALS_H
00022 #define PHP_GLOBALS_H
00023 
00024 #include "zend_globals.h"
00025 
00026 typedef struct _php_core_globals php_core_globals;
00027 
00028 #ifdef ZTS
00029 # define PG(v) TSRMG(core_globals_id, php_core_globals *, v)
00030 extern PHPAPI int core_globals_id;
00031 #else
00032 # define PG(v) (core_globals.v)
00033 extern ZEND_API struct _php_core_globals core_globals;
00034 #endif
00035 
00036 /* Error display modes */
00037 #define PHP_DISPLAY_ERRORS_STDOUT  1
00038 #define PHP_DISPLAY_ERRORS_STDERR  2
00039 
00040 /* Track vars */
00041 #define TRACK_VARS_POST            0
00042 #define TRACK_VARS_GET             1
00043 #define TRACK_VARS_COOKIE   2
00044 #define TRACK_VARS_SERVER   3
00045 #define TRACK_VARS_ENV             4
00046 #define TRACK_VARS_FILES    5
00047 #define TRACK_VARS_REQUEST  6
00048 
00049 struct _php_tick_function_entry;
00050 
00051 typedef struct _arg_separators {
00052        char *output;
00053        char *input;
00054 } arg_separators;
00055 
00056 struct _php_core_globals {
00057        zend_bool magic_quotes_gpc;
00058        zend_bool magic_quotes_runtime;
00059        zend_bool magic_quotes_sybase;
00060 
00061        zend_bool safe_mode;
00062 
00063        zend_bool allow_call_time_pass_reference;
00064        zend_bool implicit_flush;
00065 
00066        long output_buffering;
00067 
00068        char *safe_mode_include_dir;
00069        zend_bool safe_mode_gid;
00070        zend_bool sql_safe_mode;
00071        zend_bool enable_dl;
00072 
00073        char *output_handler;
00074 
00075        char *unserialize_callback_func;
00076        long serialize_precision;
00077 
00078        char *safe_mode_exec_dir;
00079 
00080        long memory_limit;
00081        long max_input_time;
00082 
00083        zend_bool track_errors;
00084        zend_bool display_errors;
00085        zend_bool display_startup_errors;
00086        zend_bool log_errors;
00087        long      log_errors_max_len;
00088        zend_bool ignore_repeated_errors;
00089        zend_bool ignore_repeated_source;
00090        zend_bool report_memleaks;
00091        char *error_log;
00092 
00093        char *doc_root;
00094        char *user_dir;
00095        char *include_path;
00096        char *open_basedir;
00097        char *extension_dir;
00098 
00099        char *upload_tmp_dir;
00100        long upload_max_filesize;
00101        
00102        char *error_append_string;
00103        char *error_prepend_string;
00104 
00105        char *auto_prepend_file;
00106        char *auto_append_file;
00107 
00108        arg_separators arg_separator;
00109 
00110        char *variables_order;
00111 
00112        HashTable rfc1867_protected_variables;
00113 
00114        short connection_status;
00115        short ignore_user_abort;
00116 
00117        unsigned char header_is_being_sent;
00118 
00119        zend_llist tick_functions;
00120 
00121        zval *http_globals[6];
00122 
00123        zend_bool expose_php;
00124 
00125        zend_bool register_globals;
00126        zend_bool register_long_arrays;
00127        zend_bool register_argc_argv;
00128        zend_bool auto_globals_jit;
00129 
00130        zend_bool y2k_compliance;
00131 
00132        char *docref_root;
00133        char *docref_ext;
00134 
00135        zend_bool html_errors;
00136        zend_bool xmlrpc_errors;
00137 
00138        long xmlrpc_error_number;
00139 
00140        zend_bool activated_auto_globals[8];
00141 
00142        zend_bool modules_activated;
00143        zend_bool file_uploads;
00144        zend_bool during_request_startup;
00145        zend_bool allow_url_fopen;
00146        zend_bool always_populate_raw_post_data;
00147        zend_bool report_zend_debug;
00148 
00149        int last_error_type;
00150        char *last_error_message;
00151        char *last_error_file;
00152        int  last_error_lineno;
00153 
00154        char *disable_functions;
00155        char *disable_classes;
00156        zend_bool allow_url_include;
00157        zend_bool exit_on_timeout;
00158 #ifdef PHP_WIN32
00159        zend_bool com_initialized;
00160 #endif
00161        long max_input_nesting_level;
00162        zend_bool in_user_include;
00163 
00164        char *user_ini_filename;
00165        long user_ini_cache_ttl;
00166 
00167        char *request_order;
00168 
00169        zend_bool mail_x_header;
00170        char *mail_log;
00171 
00172        zend_bool in_error_log;
00173 
00174 #ifdef PHP_WIN32
00175        zend_bool windows_show_crt_warning;
00176 #endif
00177 
00178        long max_input_vars;
00179 };
00180 
00181 
00182 #endif /* PHP_GLOBALS_H */
00183 
00184 /*
00185  * Local variables:
00186  * tab-width: 4
00187  * c-basic-offset: 4
00188  * End:
00189  */