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
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-02-01T12:02:48.000+0000
Resolved issue, thank you for reporting.