win32 fixes

This commit is contained in:
Wez Furlong 2003-04-22 23:24:44 +00:00
parent 9d43def392
commit 604a41e244
2 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,7 @@
#if ZTS
# define THREADSAFE 1
#endif
#if !ZEND_DEBUG
#if !ZEND_DEBUG && !defined(NDEBUG)
# define NDEBUG
#endif
#define SQLITE_PTR_SZ 4

View File

@ -559,9 +559,18 @@ static int php_sqlite_authorizer(void *autharg, int access_type, const char *arg
}
/* }}} */
static int init_sqlite_globals(zend_sqlite_globals *g)
{
g->assoc_case = 0;
return SUCCESS;
}
PHP_MINIT_FUNCTION(sqlite)
{
ZEND_INIT_MODULE_GLOBALS(sqlite, init_sqlite_globals, NULL);
REGISTER_INI_ENTRIES();
le_sqlite_db = zend_register_list_destructors_ex(php_sqlite_db_dtor, NULL, "sqlite database", module_number);
le_sqlite_pdb = zend_register_list_destructors_ex(NULL, php_sqlite_db_dtor, "sqlite database (persistent)", module_number);
le_sqlite_result = zend_register_list_destructors_ex(php_sqlite_result_dtor, NULL, "sqlite result", module_number);