Wrap the php_session.h include in the same ifdef as the rest of the

session code.
This commit is contained in:
Brian France 2005-12-05 20:40:54 +00:00
parent 6aba1816ee
commit 7154c617bf

View file

@ -29,7 +29,9 @@
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
#include "ext/session/php_session.h"
#endif
#include "php_sqlite.h"
#if HAVE_TIME_H
@ -1098,7 +1100,7 @@ PHP_MINIT_FUNCTION(sqlite)
#ifdef PHP_SQLITE2_HAVE_PDO
if (FAILURE == php_pdo_register_driver(&pdo_sqlite2_driver)) {
return FAILURE;
return FAILURE;
}
#endif
@ -2172,12 +2174,12 @@ PHP_FUNCTION(sqlite_array_query)
rres = (struct php_sqlite_result *)emalloc(sizeof(*rres));
sqlite_query(NULL, db, sql, sql_len, (int)mode, 0, NULL, &rres, NULL TSRMLS_CC);
if (db->last_err_code != SQLITE_OK) {
if (rres) {
efree(rres);
}
RETURN_FALSE;
}
if (db->last_err_code != SQLITE_OK) {
if (rres) {
efree(rres);
}
RETURN_FALSE;
}
array_init(return_value);