mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Wrap the php_session.h include in the same ifdef as the rest of the
session code.
This commit is contained in:
parent
6aba1816ee
commit
7154c617bf
1 changed files with 71 additions and 69 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue