You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
@trigger_error('Using the "db_lifetime_col" option is deprecated since version 3.3as it willberemovedin 4.0.',E_USER_DEPRECATED);
199
+
if (false !==$this->lifetimeCol) {
200
+
@trigger_error(sprintf('The "%s" column is deprecated since version 3.3and won\'tbeused anymorein 4.0. Migrate your session database then set the "db_lifetime_col" option to false to opt-in for the new behavior.',$this->lifetimeCol),E_USER_DEPRECATED);
201
201
}
202
202
}
203
203
@@ -217,7 +217,7 @@ public function createTable()
217
217
// connect if we are not yet
218
218
$this->getConnection();
219
219
220
-
if ($this->lifetimeCol ===false) {
220
+
if (false ===$this->lifetimeCol) {
221
221
switch ($this->driver) {
222
222
case'mysql':
223
223
// We use varbinary for the ID column because it prevents unwanted conversions:
@@ -228,7 +228,7 @@ public function createTable()
228
228
$sql ="CREATE TABLE$this->table ($this->idCol VARBINARY(128) NOT NULL PRIMARY KEY,$this->dataCol BLOB NOT NULL,$this->timeCol INTEGER UNSIGNED NOT NULL) COLLATE utf8_bin, ENGINE = InnoDB";
229
229
break;
230
230
case'sqlite':
231
-
$sql ="CREATE TABLE$this->table ($this->idCol TEXT NOT NULL PRIMARY KEY,$this->dataCol BLOB NOT NULL,$this->timeCol INTEGER NOT NULL)";
231
+
$sql ="BEGIN;CREATE TABLE$this->table ($this->idCol TEXT NOT NULL PRIMARY KEY,$this->dataCol BLOB NOT NULL,$this->timeCol INTEGER NOT NULL); CREATE INDEX{$this->table}_{$this->timeCol}_idx ON$this->table ($this->timeCol); COMMIT;";
232
232
break;
233
233
case'pgsql':
234
234
$sql ="CREATE TABLE$this->table ($this->idCol VARCHAR(128) NOT NULL PRIMARY KEY,$this->dataCol BYTEA NOT NULL,$this->timeCol INTEGER NOT NULL)";
@@ -245,11 +245,6 @@ public function createTable()
245
245
}else {
246
246
switch ($this->driver) {
247
247
case'mysql':
248
-
// We use varbinary for the ID column because it prevents unwanted conversions:
249
-
// - character set conversions between server and client
250
-
// - trailing space removal
251
-
// - case-insensitivity
252
-
// - language processing like é == e
253
248
$sql ="CREATE TABLE$this->table ($this->idCol VARBINARY(128) NOT NULL PRIMARY KEY,$this->dataCol BLOB NOT NULL,$this->lifetimeCol MEDIUMINT NOT NULL,$this->timeCol INTEGER UNSIGNED NOT NULL) COLLATE utf8_bin, ENGINE = InnoDB";
254
249
break;
255
250
case'sqlite':
@@ -426,6 +421,7 @@ public function close()
426
421
$this->gcCalled =false;
427
422
428
423
// delete the session records that have expired
424
+
// $sql = "DELETE FROM $this->table WHERE $this->lifetimeCol + $this->timeCol < :time";
* @expectedDeprecation The "%s" column is deprecated since version 3.3 and won't be used anymore in 4.0. Migrate your session database then set the "db_lifetime_col" option to false to opt-in for the new behavior.
* @expectedDeprecation The "%s" column is deprecated since version 3.3 and won't be used anymore in 4.0. Migrate your session database then set the "db_lifetime_col" option to false to opt-in for the new behavior.
* @expectedDeprecation The "%s" column is deprecated since version 3.3 and won't be used anymore in 4.0. Migrate your session database then set the "db_lifetime_col" option to false to opt-in for the new behavior.
* @expectedDeprecation The "%s" column is deprecated since version 3.3 and won't be used anymore in 4.0. Migrate your session database then set the "db_lifetime_col" option to false to opt-in for the new behavior.
* @expectedDeprecation The "%s" column is deprecated since version 3.3 and won't be used anymore in 4.0. Migrate your session database then set the "db_lifetime_col" option to false to opt-in for the new behavior.
* @expectedDeprecation The "%s" column is deprecated since version 3.3 and won't be used anymore in 4.0. Migrate your session database then set the "db_lifetime_col" option to false to opt-in for the new behavior.
* @expectedDeprecation The "%s" column is deprecated since version 3.3 and won't be used anymore in 4.0. Migrate your session database then set the "db_lifetime_col" option to false to opt-in for the new behavior.
* @expectedDeprecation The "%s" column is deprecated since version 3.3 and won't be used anymore in 4.0. Migrate your session database then set the "db_lifetime_col" option to false to opt-in for the new behavior.