From 98cb18a7d742780645155e98aa9e0c16498bc549 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Sun, 10 Sep 2000 05:13:56 +0000 Subject: [PATCH] Use new Zend API stuff. --- ext/sybase_ct/php_sybase_ct.c | 6 +++--- ext/sybase_ct/php_sybase_ct.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c index e6ac87d12e5..5061267b1f3 100644 --- a/ext/sybase_ct/php_sybase_ct.c +++ b/ext/sybase_ct/php_sybase_ct.c @@ -71,13 +71,13 @@ zend_module_entry sybase_module_entry = { "sybase_ct", sybase_functions, PHP_MINIT(sybase), PHP_MSHUTDOWN(sybase), PHP_RINIT(sybase), PHP_RSHUTDOWN(sybase), PHP_MINFO(sybase), STANDARD_MODULE_PROPERTIES }; +ZEND_DECLARE_MODULE_GLOBALS(sybase) +static CS_CONTEXT *context; + #ifdef COMPILE_DL_SYBASE_CT ZEND_GET_MODULE(sybase) #endif -php_sybase_globals sybase_globals; -static CS_CONTEXT *context; - #define CHECK_LINK(link) { if (link==-1) { php_error(E_WARNING,"Sybase: A link to the server could not be established"); RETURN_FALSE; } } diff --git a/ext/sybase_ct/php_sybase_ct.h b/ext/sybase_ct/php_sybase_ct.h index 080c5207c88..39e63f6e3d4 100644 --- a/ext/sybase_ct/php_sybase_ct.h +++ b/ext/sybase_ct/php_sybase_ct.h @@ -57,7 +57,7 @@ PHP_FUNCTION(sybase_fetch_field); #include -typedef struct { +ZEND_BEGIN_MODULE_GLOBALS(sybase) long default_link; long num_links,num_persistent; long max_links,max_persistent; @@ -68,7 +68,7 @@ typedef struct { int le_link,le_plink,le_result; long min_server_severity, min_client_severity; long cfg_min_server_severity, cfg_min_client_severity; -} php_sybase_globals; +ZEND_END_MODULE_GLOBALS(sybase) typedef struct { CS_CONNECTION *connection;