home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Online / PHP / include / php / main / php_globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-06  |  3.4 KB  |  144 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | PHP version 4.0                                                      |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997-2001 The PHP Group                                |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.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: Zeev Suraski <zeev@zend.com>                                |
  16.    +----------------------------------------------------------------------+
  17. */
  18.  
  19.  
  20. #ifndef PHP_GLOBALS_H
  21. #define PHP_GLOBALS_H
  22.  
  23. #include "zend_globals.h"
  24.  
  25. typedef struct _php_core_globals php_core_globals;
  26.  
  27. #ifdef ZTS
  28. # define PLS_D    php_core_globals *core_globals
  29. # define PLS_DC    , PLS_D
  30. # define PLS_C    core_globals
  31. # define PLS_CC , PLS_C
  32. # define PG(v) (core_globals->v)
  33. # define PLS_FETCH()    php_core_globals *core_globals = ts_resource(core_globals_id)
  34. extern PHPAPI int core_globals_id;
  35. #else
  36. # define PLS_D
  37. # define PLS_DC
  38. # define PLS_C
  39. # define PLS_CC
  40. # define PG(v) (core_globals.v)
  41. # define PLS_FETCH()
  42. extern ZEND_API struct _php_core_globals core_globals;
  43. #endif
  44.  
  45.  
  46. #define TRACK_VARS_POST        0
  47. #define TRACK_VARS_GET        1
  48. #define TRACK_VARS_COOKIE    2
  49. #define TRACK_VARS_SERVER    3
  50. #define TRACK_VARS_ENV        4
  51. #define TRACK_VARS_FILES    5
  52.  
  53. struct _php_tick_function_entry;
  54.  
  55. typedef struct _arg_separators {
  56.     char *output;
  57.     char *input;
  58. } arg_separators;
  59.  
  60. struct _php_core_globals {
  61.     zend_bool magic_quotes_gpc;
  62.     zend_bool magic_quotes_runtime;
  63.     zend_bool magic_quotes_sybase;
  64.  
  65.     zend_bool allow_call_time_pass_reference;
  66.     zend_bool zend_set_utility_values;
  67.     zend_bool output_buffering;
  68.     zend_bool implicit_flush;
  69.  
  70.     zend_bool safe_mode;
  71.     zend_bool sql_safe_mode;
  72.     zend_bool enable_dl;
  73.  
  74.     char *output_handler;
  75.  
  76.     char *safe_mode_exec_dir;
  77.  
  78.     long memory_limit;
  79.  
  80.     zend_bool track_errors;
  81.     zend_bool display_errors;
  82.     zend_bool display_startup_errors;
  83.     zend_bool log_errors;
  84.     char *error_log;
  85.  
  86.     char *doc_root;
  87.     char *user_dir;
  88.     char *include_path;
  89.     char *open_basedir;
  90.     char *extension_dir;
  91.  
  92.     char *upload_tmp_dir;
  93.     long upload_max_filesize;
  94.     
  95.     char *error_append_string;
  96.     char *error_prepend_string;
  97.  
  98.     char *auto_prepend_file;
  99.     char *auto_append_file;
  100.  
  101.     arg_separators arg_separator;
  102.  
  103.     char *gpc_order;
  104.     char *variables_order;
  105.  
  106.     HashTable rfc1867_protected_variables;
  107.  
  108.     short connection_status;
  109.     short ignore_user_abort;
  110.  
  111.     unsigned char header_is_being_sent;
  112.  
  113.     zend_llist tick_functions;
  114.  
  115.     zval *http_globals[6];
  116.  
  117.     zend_bool expose_php;
  118.  
  119.     zend_bool register_globals;
  120.     zend_bool register_argc_argv;
  121.  
  122.     zend_bool y2k_compliance;
  123.  
  124.     zend_bool html_errors;
  125.  
  126.     zend_bool modules_activated;
  127.  
  128.     zend_bool file_uploads;
  129.  
  130.     zend_bool during_request_startup;
  131.  
  132.     zend_bool allow_url_fopen;
  133. };
  134.  
  135.  
  136. #endif /* PHP_GLOBALS_H */
  137.  
  138. /*
  139.  * Local variables:
  140.  * tab-width: 4
  141.  * c-basic-offset: 4
  142.  * End:
  143.  */
  144.