Skip to content

Commit

Permalink
bug #35024 [HttpFoundation] fix pdo session handler for sqlsrv (azjezz)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nicolas-grekas committed Dec 18, 2019
2 parents 5b5ac83 + 776f649 commit cfc7146
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -871,10 +871,10 @@ private function getMergeStatement(string $sessionId, string $data, int $maxlife
$mergeStmt->bindParam(2, $sessionId, \PDO::PARAM_STR);
$mergeStmt->bindParam(3, $data, \PDO::PARAM_LOB);
$mergeStmt->bindValue(4, time() + $maxlifetime, \PDO::PARAM_INT);
$mergeStmt->bindValue(4, time(), \PDO::PARAM_INT);
$mergeStmt->bindParam(5, $data, \PDO::PARAM_LOB);
$mergeStmt->bindValue(6, time() + $maxlifetime, \PDO::PARAM_INT);
$mergeStmt->bindValue(6, time(), \PDO::PARAM_INT);
$mergeStmt->bindValue(5, time(), \PDO::PARAM_INT);
$mergeStmt->bindParam(6, $data, \PDO::PARAM_LOB);
$mergeStmt->bindValue(7, time() + $maxlifetime, \PDO::PARAM_INT);
$mergeStmt->bindValue(8, time(), \PDO::PARAM_INT);
} else {
$mergeStmt->bindParam(':id', $sessionId, \PDO::PARAM_STR);
$mergeStmt->bindParam(':data', $data, \PDO::PARAM_LOB);
Expand Down

0 comments on commit cfc7146

Please sign in to comment.