diff options
author | Zeev Suraski <zeev@php.net> | 2000-04-01 16:23:39 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-04-01 16:23:39 +0000 |
commit | 491a315c11812e7dd595c386c47f86b73676e147 (patch) | |
tree | 6e9fa30a5aa607b3838228799847a6c026fd29f9 /ext/mysql/php_mysql.h | |
parent | 131d9cb2dcf256ddf824d0967fb32f34ee5cfbf3 (diff) | |
download | php-git-491a315c11812e7dd595c386c47f86b73676e147.tar.gz |
@- Made the IMAP and LDAP modules compilable under Windows and thread-safe (Zeev)
Diffstat (limited to 'ext/mysql/php_mysql.h')
-rw-r--r-- | ext/mysql/php_mysql.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/mysql/php_mysql.h b/ext/mysql/php_mysql.h index 46d4568983..50c79a49bf 100644 --- a/ext/mysql/php_mysql.h +++ b/ext/mysql/php_mysql.h @@ -80,23 +80,22 @@ PHP_FUNCTION(mysql_field_len); PHP_FUNCTION(mysql_field_type); PHP_FUNCTION(mysql_field_flags); -typedef struct { +ZEND_BEGIN_MODULE_GLOBALS(mysql) long default_link; long num_links,num_persistent; long max_links,max_persistent; long allow_persistent; long default_port; char *default_host, *default_user, *default_password; -} php_mysql_globals; - +ZEND_END_MODULE_GLOBALS(mysql); #ifdef ZTS -# define MySLS_D php_mysql_globals *mysql_globals +# define MySLS_D zend_mysql_globals *mysql_globals # define MySLS_DC , MySLS_D # define MySLS_C mysql_globals # define MySLS_CC , MySLS_C # define MySG(v) (mysql_globals->v) -# define MySLS_FETCH() php_mysql_globals *mysql_globals = ts_resource(mysql_globals_id) +# define MySLS_FETCH() zend_mysql_globals *mysql_globals = ts_resource(mysql_module_entry.globals_id) #else # define MySLS_D # define MySLS_DC @@ -104,7 +103,6 @@ typedef struct { # define MySLS_CC # define MySG(v) (mysql_globals.v) # define MySLS_FETCH() -extern PHP_MYSQL_API php_mysql_globals mysql_globals; #endif |