Fix warnings and allow builds without ext/session

This commit is contained in:
Marcus Boerger 2003-07-01 17:55:32 +00:00
parent e5af63a7d5
commit d531dee390
2 changed files with 9 additions and 2 deletions

View file

@ -20,6 +20,9 @@
/* $Id$ */
#include "php.h"
#if HAVE_PHP_SESSION
#include "ext/session/php_session.h"
#include <sqlite.h>
@ -71,9 +74,7 @@ static int ps_sqlite_valid_key(const char *key)
PS_OPEN_FUNC(sqlite)
{
char *filepath;
char *errmsg = NULL;
int spath_len, sname_len, fp_len;
sqlite *db;
/* TODO: do we need a safe_mode check here? */
@ -203,6 +204,8 @@ PS_GC_FUNC(sqlite)
SUCCESS : FAILURE;
}
#endif /* HAVE_PHP_SESSION */
/*
* Local variables:
* tab-width: 4