summaryrefslogtreecommitdiff
path: root/ext/pgsql/php_pgsql.h
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-05-30 15:07:02 +0000
committerMarcus Boerger <helly@php.net>2003-05-30 15:07:02 +0000
commit680653fecb5972277f1f57ab1060b896c3807c67 (patch)
tree56ab3542b21f13f84959a8a66fb9eb367c989019 /ext/pgsql/php_pgsql.h
parentded4aadde0a64911e06e5256a5e72e06d099567f (diff)
downloadphp-git-680653fecb5972277f1f57ab1060b896c3807c67.tar.gz
- Fix ini handling in ZTS mode
Diffstat (limited to 'ext/pgsql/php_pgsql.h')
-rw-r--r--ext/pgsql/php_pgsql.h9
1 files changed, 4 insertions, 5 deletions
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