public function escape($value, $ignore = '', $flags = 0)
    {
        if (!$this->isEscapingSupported()) {
            return $this->escapeManual($value, $ignore, $flags);
        }

        return ldap_escape($value, $ignore, $flags);
    }