src/Parser/ServerParse.php
public static function commitCheck(string $stmt, int $offset)
    {
        if (strlen($stmt) > $offset + 5) {
            $c1 = $stmt[++$offset];
            $c2 = $stmt[++$offset];
            $c3 = $stmt[++$offset];
            $c4 = $stmt[++$offset];
            $c5 = $stmt[++$offset];
            if (($c1 == 'O' || $c1 == 'o')
                && ($c2 == 'M' || $c2 == 'm')
                && ($c3 == 'M' || $c3 == 'm')
                && ($c4 == 'I' || $c4 == 'i')
                && ($c5 == 'T' || $c5 == 't')
                && (strlen($stmt) == ++$offset || ParseUtil::isEOF($stmt[$offset]))) {
                return self::COMMIT;
            }
        }

        return self::OTHER;
    }
public static function commitCheck(string $stmt, int $offset)
    {
        if (strlen($stmt) > $offset + 5) {
            $c1 = $stmt[++$offset];
            $c2 = $stmt[++$offset];
            $c3 = $stmt[++$offset];
            $c4 = $stmt[++$offset];
            $c5 = $stmt[++$offset];
            if (($c1 == 'O' || $c1 == 'o')
                && ($c2 == 'M' || $c2 == 'm')
                && ($c3 == 'M' || $c3 == 'm')
                && ($c4 == 'I' || $c4 == 'i')
                && ($c5 == 'T' || $c5 == 't')
                && (strlen($stmt) == ++$offset || ParseUtil::isEOF($stmt[$offset]))) {
                return self::COMMIT;
            }
        }

        return self::OTHER;
    }
COMMIT