summaryrefslogtreecommitdiff
path: root/ext/sqlite/sess_sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sqlite/sess_sqlite.c')
-rw-r--r--ext/sqlite/sess_sqlite.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/sqlite/sess_sqlite.c b/ext/sqlite/sess_sqlite.c
index 7305673adb..f9272d997c 100644
--- a/ext/sqlite/sess_sqlite.c
+++ b/ext/sqlite/sess_sqlite.c
@@ -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