diff --git a/src/ORM/Connect/MySQLStatement.php b/src/ORM/Connect/MySQLStatement.php index da687898885..81edf8c50fe 100644 --- a/src/ORM/Connect/MySQLStatement.php +++ b/src/ORM/Connect/MySQLStatement.php @@ -73,7 +73,6 @@ public function __construct($statement, $metadata) public function __destruct() { $this->statement->close(); - $this->currentRecord = false; } /** diff --git a/thirdparty/php-peg/Parser.php b/thirdparty/php-peg/Parser.php index 1ce89193e72..bcb57ce06da 100644 --- a/thirdparty/php-peg/Parser.php +++ b/thirdparty/php-peg/Parser.php @@ -9,6 +9,13 @@ * the bracket if a failed match + restore has moved the current position backwards - so we have to check that too. */ class ParserRegexp { + + public $parser; + public $rx; + public $matches; + public $match_pos; + public $check_pos; + function __construct( $parser, $rx ) { $this->parser = $parser ; $this->rx = $rx . 'Sx' ;