zendframework/zf2 — pull request #661 by shevron (2011-12-10 19:31:48+00:00)
Title: partial view helper vars reset fix

The partial view helper clones the view object and resets the vars() object but along the way it resets the vars of the original object too. This is because the clone is not a deep clone - so calling $view->vars() actually returns the vars object shared between the original and clone objects.

This small fix calls setVars() on the cloned object instead of accessing the shared vars() object, thus avoiding the problem.