Skip to content

Commit cfc7146

Browse files
bug #35024 [HttpFoundation] fix pdo session handler for sqlsrv (azjezz)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpFoundation] fix pdo session handler for sqlsrv | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #34995 | License | MIT | Doc PR | N/A Commits ------- 776f649 [HttpFoundation] fix pdo session handler for sqlsrv
2 parents 5b5ac83 + 776f649 commit cfc7146

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)