disconnect example

/** * @return void */
    public function __wakeup()
    {
        throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
    }

    public function __destruct()
    {
        $this->disconnect();
    }

    public function isBound(): bool
    {
        return $this->bound;
    }

    /** * @param string $password WARNING: When the LDAP server allows unauthenticated binds, a blank $password will always be valid * * @return void */

    public function __destruct()
    {
        if ($this->_connection instanceof Zend_Mail_Protocol_Smtp) {
            try {
                $this->_connection->quit();
            } catch (Zend_Mail_Protocol_Exception $e) {
                // ignore             }
            $this->_connection->disconnect();
        }
    }


    /** * Sets the connection protocol instance * * @param Zend_Mail_Protocol_Abstract $client * * @return void */
    
Home | Imprint | This part of the site doesn't use cookies.