ZF-5152: startMvc("../application/layouts") fails if an instance already exists

Description

Calling startMvc() with a string path before an instance has been created works as expected, however, calling it after an instance has been created causes the following error:

Zend_Layout_Exception: setOptions() expects either an array or a Zend_Config object in /home/jhendric/workspace/SandysWebStore/library/Zend/Layout.php on line 232

Reproduced with:


Zend_Layout::startMvc("../application/layouts"); // ok
Zend_Layout::startMvc("../application/layouts"); // fails with error

Comments

r13016 is the fix