Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: php-4.0b3_RC3
Fetching contributors…

Cannot retrieve contributors at this time

file 107 lines (83 sloc) 2.762 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
/*
+----------------------------------------------------------------------+
| PHP version 4.0 |
+----------------------------------------------------------------------+
| Copyright (c) 1997, 1998, 1999 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.php.net/license/2_0.txt. |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/


#ifndef _PHP_GLOBALS_H
#define _PHP_GLOBALS_H

#include "zend_globals.h"

typedef struct _php_core_globals php_core_globals;

#ifdef ZTS
# define PLS_D php_core_globals *core_globals
# define PLS_DC , PLS_D
# define PLS_C core_globals
# define PLS_CC , PLS_C
# define PG(v) (core_globals->v)
# define PLS_FETCH() php_core_globals *core_globals = ts_resource(core_globals_id)
extern PHPAPI int core_globals_id;
#else
# define PLS_D
# define PLS_DC
# define PLS_C
# define PLS_CC
# define PG(v) (core_globals.v)
# define PLS_FETCH()
extern ZEND_API struct _php_core_globals core_globals;
#endif


struct _php_core_globals {
zend_bool magic_quotes_gpc;
zend_bool magic_quotes_runtime;
zend_bool magic_quotes_sybase;

zend_bool asp_tags;
zend_bool short_tags;
zend_bool output_buffering;

zend_bool safe_mode;
zend_bool sql_safe_mode;
char *safe_mode_exec_dir;
zend_bool enable_dl;

long memory_limit;

zend_bool track_errors;
zend_bool display_errors;
zend_bool log_errors;
char *error_log;

char *doc_root;
char *user_dir;
char *include_path;
char *open_basedir;
char *extension_dir;

char *upload_tmp_dir;
long upload_max_filesize;

char *auto_prepend_file;
char *auto_append_file;

char *arg_separator;
char *gpc_order;

zend_bool expose_php;

zend_bool track_vars;
zend_bool gpc_globals;

zend_bool y2k_compliance;

short connection_status;
short ignore_user_abort;

unsigned char header_is_being_sent;

/* for fsock */
HashTable ht_fsock_keys;
HashTable ht_fsock_socks;
};


#endif /* _PHP_GLOBALS_H */

/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
*/
Something went wrong with that request. Please try again.