zendframework/zf2 — pull request #5918 by stefanotorresi (2014-03-06 00:03:10+00:00)
Title: Hotfix/4785 csrf name conflicts

this PR *should* fix #4785

I'm not very sure about it, it is probably not very fancy, but I should have managed to fix the validator without adding any further state to it, actually even removing some, and maintain BC.

As far as I can tell, the only downside is that tokens are not statically cached any more and are regenerated each time a new validator instance is created.

I had to edit `ZendTest\Form\FormElementManagerFactoryTest` because it was a bit of a mess. I didn't delve too much into it, but further cleaning is possible. I honestly don't know how much of a test I can change for this purpose. Also, it is failing in php `5.3.3` only, no clue why. I suppose it's not a problem since this issue was tagged for milestone 2.3.0.