diff options
author | Zeev Suraski <zeev@php.net> | 1999-04-09 19:16:46 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-04-09 19:16:46 +0000 |
commit | 011813cce80f057ae1eb602ba18892a735bbc293 (patch) | |
tree | fbd3f57ac0e71caf8561afcc0b83cc6fda8a4587 /main/php_globals.h | |
parent | 763061bbead807303de35be494174ce5e54d4306 (diff) | |
download | php-git-011813cce80f057ae1eb602ba18892a735bbc293.tar.gz |
*** empty log message ***
Diffstat (limited to 'main/php_globals.h')
-rw-r--r-- | main/php_globals.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/main/php_globals.h b/main/php_globals.h new file mode 100644 index 0000000000..9dc472cd70 --- /dev/null +++ b/main/php_globals.h @@ -0,0 +1,31 @@ +#ifndef _PHP_GLOBALS_H +#define _PHP_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) +#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; +}; + + +#endif /* _PHP_GLOBALS_H */
\ No newline at end of file |