Hmm, a few things to try:
If your application is managing your include_path (which is suggested), try
ensuring that you are adding absolute paths to it. For example, if you have
had this before:
Set_include_path('../library');
Try changing it to this:
set_include_path(dirname(__FILE__) . '/../library')
OR
set_include_path(realpath(dirname(__FILE__) . '/../library'))
I have seen random issues like the one you are describing in the past with
various opcode caches and optimizers and relative include_paths.
-ralph
On 12/2/08 10:56 AM, "OldStyle" <[EMAIL PROTECTED]> wrote:
>
> Hello Community,
>
> I turning to you after many hours of head scratching and frustration. I have
> a site developed using PHP, ZendFramework, MySQL and Apache. The site uses
> Zend_Form extensively to process forms. The code all executes without issue
> on my Local, development, and staging server. However when I deploy the code
> to my production environment I am receiving the following error when calling
> pages with forms.
>
> Fatal error: Cannot redeclare class Zend_Form
>
> I'm running PHP 5.2.6 installed via a FreeBSD port.
>
> I'm not running any opcode caches to the best of my knowledge. However it
> has all the appearance of being a caching issue. Any thoughts on what could
> be causing this issue? Apache restarts doing nothing to correct the issue.
> I'm at the point of rebuilding PHP without using the FreeBSD port to remove
> he possibility of something in the port is causing opcode caching. I'm
> hoping you all can help before going down that path.
>
> Thanks in advance.
--
Ralph Schindler
Software Engineer | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/