Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 776f649

Browse files
authored
[HttpFoundation] fix pdo session handler for sqlsrv
1 parent d7a0679 commit 776f649

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -871,10 +871,10 @@ private function getMergeStatement(string $sessionId, string $data, int $maxlife
871871
$mergeStmt->bindParam(2, $sessionId, \PDO::PARAM_STR);
872872
$mergeStmt->bindParam(3, $data, \PDO::PARAM_LOB);
873873
$mergeStmt->bindValue(4, time() + $maxlifetime, \PDO::PARAM_INT);
874-
$mergeStmt->bindValue(4, time(), \PDO::PARAM_INT);
875-
$mergeStmt->bindParam(5, $data, \PDO::PARAM_LOB);
876-
$mergeStmt->bindValue(6, time() + $maxlifetime, \PDO::PARAM_INT);
877-
$mergeStmt->bindValue(6, time(), \PDO::PARAM_INT);
874+
$mergeStmt->bindValue(5, time(), \PDO::PARAM_INT);
875+
$mergeStmt->bindParam(6, $data, \PDO::PARAM_LOB);
876+
$mergeStmt->bindValue(7, time() + $maxlifetime, \PDO::PARAM_INT);
877+
$mergeStmt->bindValue(8, time(), \PDO::PARAM_INT);
878878
} else {
879879
$mergeStmt->bindParam(':id', $sessionId, \PDO::PARAM_STR);
880880
$mergeStmt->bindParam(':data', $data, \PDO::PARAM_LOB);

0 commit comments

Comments
 (0)