ZF-11514: Zend_Mail_Message incorrectly merges configuration flags supplied via constructor

Description

{{Zend_Mail_Message}}, Line 76:


$this->_flags = array_combine($params['flags'], $params['flags']);

This just combines the supplied array with itself then assigns to class member. Should be:


$this->_flags = array_merge($this->_flags, array_combine($params['flags'], $params['flags']));

To merge it into the member without overwriting the pre-existing defaults.

I've marked this as trivial since {{Zend_Mail_Message}} doesn't currently define any default values, so overwriting the class member doesn't have any negative effect.

Comments

Fixed in trunk r24162 Merged to release-1.11 in r24163