Issues

ZF-2534: A exception was threw in the Zend_Mail_Transport_Smtp's method __destruct.

Issue Type: Bug Created: 2008-01-31T03:00:08.000+0000 Last Updated: 2009-11-17T14:37:48.000+0000 Status: Resolved Fix version(s): Reporter: Xing Xing (mikespook) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Mail

Related issues: - ZF-2075

Attachments:

Description

First, look here http://bugs.php.net/bug.php?id=33598&edit=1 this is the php's bug.

And in the line 139:

<pre class="highlight">
    public function __destruct()
    {
        if ($this->_connection instanceof Zend_Mail_Protocol_Smtp) {
            $this->_connection->quit();
            $this->_connection->disconnect();
        }
    }

We will get: Fatal error: Exception thrown without a stack frame in Unknown on line 0

The real exception is: No connection has been established to smtpserver

Comments

Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-09-01T18:06:08.000+0000

This issue may be outdated. I can not find the functions that are pointed out.

Posted by Marcos Gil Fuertes (marcis) on 2009-09-29T06:53:10.000+0000

I'm having the same problem (Fatal error: Exception thrown without a stack frame in Unknown on line 0) with version 1.0.4.

Class: Zend_Mail_Transport_Smtp Line: 139

Posted by Marcos Gil Fuertes (marcis) on 2009-09-29T07:02:40.000+0000

I guess the connection is already closed and the call to:

        $this->_send('QUIT');

At Zend_Mail_Protocol_Smtp, line 364, throws an exception (same Class, line 260):

protected function _send($request)
{
    if (!is_resource($this->_socket)) {
        require_once 'Zend/Mail/Protocol/Exception.php';
        throw new Zend_Mail_Protocol_Exception('No connection has been established to ' . $this->_host);
    }
...

Posted by Satoru Yoshida (satoruyoshida) on 2009-09-29T18:05:28.000+0000

reopen it for Marcos ;-)

Posted by Satoru Yoshida (satoruyoshida) on 2009-11-14T06:27:01.000+0000

Memo: Zend_Mail_Protocol_Abstract has _send() .

Posted by Satoru Yoshida (satoruyoshida) on 2009-11-17T14:36:49.000+0000

I search over SVN trunk today and find same problem was fixed at SVN r6661 (2007/10/20).

The change was done for ZF-2075 . The issue was solved in Ver 1.5.0.

I suggest you update your version to the latest to solve this issue.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts