php-src/main/php_globals.h
Rasmus Lerdorf 0bede914ab First part of the connection_status work. No user-callable functions
yet.  That is coming next.  Have also only done Apache and CGI so far.
Will have to crack open my ISAPI book to do that one.

Also changed the SAPI output functions to return an int.  We'll check
the connection status inside each one, but we might need the return
code at some other level and I don't see a good reason for just tossing
these return codes.
1999-09-04 20:12:47 +00:00

105 lines
2.6 KiB
C

/*
+----------------------------------------------------------------------+
| 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 php_core_globals core_globals;
#endif
struct _php_core_globals {
long magic_quotes_gpc;
long magic_quotes_runtime;
long magic_quotes_sybase;
long asp_tags;
long short_tags;
long output_buffering;
long safe_mode;
long sql_safe_mode;
char *safe_mode_exec_dir;
long enable_dl;
long memory_limit;
long track_errors;
long display_errors;
long 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;
long track_vars;
long 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:
*/