Zend Framework

Zend_Application_Resource_Mail and registering default transport with ini file

Details

Description

Hi,

When using new Mail resource and ini files and register option for Zend_Transport:

resources.mail.transport.register = true // does not work, as it is converted to (int) 1

but as string it works:
resources.mail.transport.register = "true"

In Zend_Application_Resource_Mail and in method getMail()
there is following code:

if(!isset($options['transport']['register']) ||
                   (isset($options['transport']['register']) &&
                        !is_numeric($options['transport']['register']) &&
                        (bool) $options['transport']['register'] == true))
                {
                    Zend_Mail::setDefaultTransport($this->_transport);
                }

br, Marko

Activity

Hide
Dolf Schimmel (Freeaqingme) added a comment -

Resolved issue, thank you for reporting.

Show
Dolf Schimmel (Freeaqingme) added a comment - Resolved issue, thank you for reporting.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: