Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
Prev Previous commit
Next Next commit
removing strict warnings
  • Loading branch information
maglnet committed Apr 13, 2014
commit 7a53dba90794c15751f4f13057cc7c198eaa1276
6 changes: 4 additions & 2 deletions src/Detector/Adapter/HashStorage/SQLite.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ private function flushBuffer()
$this->db->beginTransaction();

foreach ($this->hashBuffer as $hash => $value) {
$this->insertStatement->bindParam(':hash', md5($hash));
$this->insertStatement->bindParam(':value', serialize($value));
$hash_md5 = md5($hash);
$value_serialized = serialize($value);
$this->insertStatement->bindParam(':hash', $hash_md5);
$this->insertStatement->bindParam(':value', $value_serialized);
$this->insertStatement->execute();
}
$this->hashBuffer = array();
Expand Down