ZF-12006: FlashMessenger does not update messageAdded variable when message is added


The Zend_Controller_Action_Helper_FlashMessenger has a static variable '$_messageAdded', which is never changed. In ZF2, this issue is resolved by $_messageAdded to true after adding a message.


Patch to this problem

Does this solve any particular problem with the ZFv1 flash messenger? The code has changed considerably v1->v2, so is backporting this change appropriate?

After reviewing the suggestion more closely, this is indeed a bug, but it's side-effect is trivial ({{setExpirationHops}} is called on each {{addMessage}} call instead of just the first)

Fixed in trunk (1.12.0): r24813