Issues

ZF2-118: Zend\Mail\Mail::getDefaultTransport() bug

Issue Type: Bug Created: 2011-12-08T01:21:57.000+0000 Last Updated: 2011-12-09T11:02:00.000+0000 Status: Resolved Fix version(s): Reporter: Alrik Zachert (az) Assignee: Alrik Zachert (az) Tags: - Zend\Mail

  • mail

Related issues: Attachments:

Description

simple bug:

<pre class="highlight">

public static function getDefaultTransport()
{
    if (! self::$_defaultTransport instanceof AbstractTransport) {
        $transport = new Transport\Sendmail();
    }
    return self::$_defaultTransport;
}

should be:

<pre class="highlight">

public static function getDefaultTransport()
{
    if (! self::$_defaultTransport instanceof AbstractTransport) {
        self::$_defaultTransport = new Transport\Sendmail();
    }
    return self::$_defaultTransport;
}

Comments

Posted by Alrik Zachert (az) on 2011-12-08T03:09:20.000+0000

fixed. can be pulled here: https://github.com/zendframework/zf2/pull/654

thanks

Posted by Alrik Zachert (az) on 2011-12-09T11:02:00.000+0000

See: reason.

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