diff options
author | Zeev Suraski <zeev@php.net> | 2001-07-28 11:36:37 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-07-28 11:36:37 +0000 |
commit | d87cc976e1156b839fc6d4aa6b473a126802b8e3 (patch) | |
tree | 8acb068dd7458e1c8df3a7d8ecb87d065990fdb1 /ext/pgsql/php_pgsql.h | |
parent | b4f3b9d3ce9f55cf040fb5aa8f201c64646cab43 (diff) | |
download | php-git-d87cc976e1156b839fc6d4aa6b473a126802b8e3.tar.gz |
Redesigned thread safety mechanism - nua nua
Diffstat (limited to 'ext/pgsql/php_pgsql.h')
-rw-r--r-- | ext/pgsql/php_pgsql.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h index 09d47dfcf6..4dc190f3c9 100644 --- a/ext/pgsql/php_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -127,21 +127,12 @@ typedef struct { #ifdef ZTS -# define PGLS_D php_pgsql_globals *pgsql_globals -# define PGLS_DC , PGLS_D -# define PGLS_C pgsql_globals -# define PGLS_CC , PGLS_C -# define PGG(v) (pgsql_globals->v) -# define PGLS_FETCH() php_pgsql_globals *pgsql_globals = ts_resource(pgsql_globals_id) +# define PGG(v) TSRMG(pgsql_globals_id, php_pgsql_globals *, v) #else -# define PGLS_D -# define PGLS_DC -# define PGLS_C -# define PGLS_CC # define PGG(v) (pgsql_globals.v) -# define PGLS_FETCH() extern PHP_PGSQL_API php_pgsql_globals pgsql_globals; #endif + #endif #else |