diff options
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 |