mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix warnings and allow builds without ext/session
This commit is contained in:
parent
e5af63a7d5
commit
d531dee390
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue