ZF-8981: Zend_Application_Resource_Mail and registering default transport with ini file

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

Comments

Resolved issue, thank you for reporting.