[HttpFoundation][Session] Fix bug in PDO Session Storage with SQLSRV making assumptions about parameters with length being OUTPUT not INPUT parameters.
This commit is contained in:
parent
f9f7640422
commit
dc2d5a0581
@ -173,7 +173,7 @@ class PdoSessionStorage extends NativeSessionStorage
|
||||
$sql = "SELECT $dbDataCol FROM $dbTable WHERE $dbIdCol = :id";
|
||||
|
||||
$stmt = $this->db->prepare($sql);
|
||||
$stmt->bindParam(':id', $id, \PDO::PARAM_STR, 255);
|
||||
$stmt->bindParam(':id', $id, \PDO::PARAM_STR);
|
||||
|
||||
$stmt->execute();
|
||||
// it is recommended to use fetchAll so that PDO can close the DB cursor
|
||||
|
Reference in New Issue
Block a user