Skip to content

Commit

Permalink
Fixed GenericStatementImpl::$varPositions uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
SOF3 committed Dec 12, 2021
1 parent 745d0df commit 22f7e9a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ protected function compilePositions() : void{
$newQuery = [];

foreach($this->query as $bufferId => $buffer) {
$this->varPositions[$bufferId] = [];

for($i = 1, $iMax = mb_strlen($buffer); $i < $iMax; ++$i){
$thisChar = mb_substr($buffer, $i, 1);

Expand Down

0 comments on commit 22f7e9a

Please sign in to comment.