diff options
author | Stefan Roehrich <sr@php.net> | 1999-09-06 19:09:47 +0000 |
---|---|---|
committer | Stefan Roehrich <sr@php.net> | 1999-09-06 19:09:47 +0000 |
commit | e4b7bf4ae8b4d992b71301547c450e5582984bdc (patch) | |
tree | 8b0ac6f9d3dc2bc11d7ac108ff16b7a53c5a6c7e /ext/zlib/php3_zlib.h | |
parent | 8ee14c990bbd303ae253d28c198ceacd3d7ddccb (diff) | |
download | php-git-e4b7bf4ae8b4d992b71301547c450e5582984bdc.tar.gz |
Removed remaining PHP_31 defines.
First try with ZTS support, can someone with a working ZTS enabled setup test this, please?
Diffstat (limited to 'ext/zlib/php3_zlib.h')
-rw-r--r-- | ext/zlib/php3_zlib.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/zlib/php3_zlib.h b/ext/zlib/php3_zlib.h index d8140b128c..4b9ece5ff9 100644 --- a/ext/zlib/php3_zlib.h +++ b/ext/zlib/php3_zlib.h @@ -35,6 +35,10 @@ #if HAVE_ZLIB +typedef struct { + int gzgetss_state; +} php_zlib_globals; + extern php3_module_entry php3_zlib_module_entry; #define zlib_module_ptr &php3_zlib_module_entry @@ -56,6 +60,16 @@ PHP_FUNCTION(gzpassthru); PHP_FUNCTION(readgzfile); PHP_FUNCTION(gzfile); +#ifdef ZTS +#define ZLIBLS_D php_zlib_globals *zlib_globals +#define ZLIBG(v) (zlib_globals->v) +#define ZLIBLS_FETCH() php_zlib_globals *zlib_globals = ts_resource(zlib_globals_id) +#else +#define ZLIBLS_D +#define ZLIBG(v) (zlib_globals.v) +#define ZLIBLS_FETCH() +#endif + #else #define zlib_module_ptr NULL #endif /* HAVE_ZLIB */ |