Use new Zend API stuff.

This commit is contained in:
Joey Smith 2000-09-10 05:13:56 +00:00
parent 2d5316a11c
commit 98cb18a7d7
2 changed files with 5 additions and 5 deletions

View File

@ -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; } }

View File

@ -57,7 +57,7 @@ PHP_FUNCTION(sybase_fetch_field);
#include <ctpublic.h>
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;