2009年7月9日星期四

Re: [fw-mvc] apc-error using Zend_Application with Zend_Test

On 9 Jul 2009, at 14:06, Carlton Gibson wrote:
> I'm currently upgrading an existing application to use
> Zend_Application in bootstrapping. The application itself runs
> perfectly well but when I come to modify my test bootstrap file I'm
> getting a strange APC error.
>
> [apc-error] Cannot redeclare class zend_layout
>
> If I comment out these lines in my config file the error goes away:
>
> resources.layout.layout = "layout"
> resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
>
> I guess it's a Plugin Loader problem (or my config regarding them)
> but I'm not sure how to proceed.

Returning to the old method and calling Zend_Layout::startMvc()
manually resolves this issue for me. Both the application and the test
suite run without problem. Obviously this is not ideal but it will do
for me for now.

When I get time I will try to move to the new method again, and I'll
try to put together a reproduce case if the problem persists then.

Thanks,
Carlton

没有评论: