Browse Source

Plug potential memory leak

multi-byte
J. King 4 years ago
parent
commit
9f7e496bf6
  1. 3
      lib/Encoding/AbstractEncoding.php

3
lib/Encoding/AbstractEncoding.php

@ -54,6 +54,9 @@ abstract class AbstractEncoding implements Encoding {
public function rewind() {
$this->posByte = 0;
$this->posChar = 0;
$this->errMark = -1;
$this->errSync = -2;
$this->errStack = [];
}
public function nextChar(): string {

Loading…
Cancel
Save