Skip to content

Commit 849e5c5

Browse files
committed
Merge pull request PHPIDS#59 from mynameiszanders/58-php-error-trying-to-bind-non-variable-to-pdo-statement
PHP Error: Trying to bind non-variable to PDO statement (PR).
2 parents 8c39c76 + 6340b0a commit 849e5c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/IDS/Caching/DatabaseCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,11 @@ private function write($handle, $data)
261261
)'
262262
);
263263

264-
$statement->bindParam(
264+
$statement->bindValue(
265265
'type',
266266
$handle->quote($this->type)
267267
);
268-
$statement->bindParam('data', serialize($data));
268+
$statement->bindValue('data', serialize($data));
269269

270270
if (!$statement->execute()) {
271271
throw new \PDOException($statement->errorCode());

0 commit comments

Comments
 (0)