You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
By default, \Zend\View\Model\ViewModel::$variables is a \Zend\View\Variables instance.
When cloning an instance of ViewModel, if $variables property is a reference to an object instead of a native php array, calling setVariables on the clone will also change the variables in the original ViewModel instance.
This becomes a problem when using zend-view as a view renderer in Zend Expressive on a long-running process (see https://github.com/zendframework/zend-expressive-zendviewrenderer/blob/2.0.0/src/ZendViewRenderer.php#L319), and causes layout variables to be stuck in the same value between requests.