On Wed, Sep 16, 2009 at 1:17 PM, Steven Szymczak <[email protected]> wrote: > When I upgraded by development environment to OS X 10.6 (Snow Leopard) it > also automatically upgraded my PHP install to 5.3, and this seems to have > broken something within ZF. > > Previously, everything was working as expected. The production site code is > perfectly in sync with that on the development side as I haven't made any > changes in the last 3 weeks (which was also before I upgraded to Snow > Leopard). Now I'm getting the following error on the development side: > > Fatal error: Cannot redeclare class Fs_Controller_Action in > /Users/Steven/Sites/farstrider.eu/library/fs/Controller/Action.php on line > 41 > > While the production side continues to function (PHP 5.2.9). > > Any ideas on how to fix this? > > Cheers,
Sounds like you are including it twice. Doesn't necessarily have to do with 5.3.0. Is Fs_Controller_Action your "default" controller which you extend from? fgrep -r 'fs/Controller/Action.php' I'd suggest to use autoload, or clean up include/require statements. If performance permits, try include_once (or require_once). Till
