@Till

I'm using the autoloader, so I have very few include statements (and none for the class in question).

@Matthew

The only place my include_path changes is in Bootstrap.php, which has the following code:

// Set include path
set_include_path(implode(PATH_SEPARATOR, array(
                        dirname(dirname(__FILE__)) .'/library',
                        get_include_path()
                )
        )
);

Matthew Weier O'Phinney wrote:
-- Steven Szymczak <[email protected]> wrote
(on Wednesday, 16 September 2009, 08:17 PM +0900):
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?

We ran across similar issues when getting ZF 1.9 ready for PHP 5.3. In
most cases, there was code that was changing the include_path, and PHP
then managed to include the same file twice. Find where the include_path
changes, and you can fix the issue.


--
スティーブン

Reply via email to