From 680653fecb5972277f1f57ab1060b896c3807c67 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 30 May 2003 15:07:02 +0000 Subject: - Fix ini handling in ZTS mode --- ext/pgsql/php_pgsql.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ext/pgsql/php_pgsql.h') diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h index 429cefe53d..74b4e2fabc 100644 --- a/ext/pgsql/php_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -236,7 +236,7 @@ typedef struct _php_pgsql_notice { size_t len; } php_pgsql_notice; -typedef struct { +ZEND_BEGIN_MODULE_GLOBALS(pgsql) long default_link; /* default link when connection is omitted */ long num_links,num_persistent; long max_links,max_persistent; @@ -245,15 +245,14 @@ typedef struct { int le_lofp,le_string; int ignore_notices,log_notices; HashTable notices; /* notice message for each connection */ -} php_pgsql_globals; +ZEND_END_MODULE_GLOBALS(pgsql) +ZEND_EXTERN_MODULE_GLOBALS(pgsql) #ifdef ZTS -# define PGG(v) TSRMG(pgsql_globals_id, php_pgsql_globals *, v) -extern int pgsql_globals_id; +# define PGG(v) TSRMG(pgsql_globals_id, zend_pgsql_globals *, v) #else # define PGG(v) (pgsql_globals.v) -extern php_pgsql_globals pgsql_globals; #endif #endif -- cgit v1.2.1