We've been focusing on a work for several several weeks with no problems until some recent updates. The server is running Amazon . com Linux AMI release 2010.11.1, with Apache 2.2.16 and PHP 5.3.3. The project is split right into a couple of separate developer branches, running as virtual hosts, each having a completely separate copy of all of the code including Zend Framework 1.11.3. The project includes Doctrine 2..1, however i don't believe that's where the issue is. I've played around with with APC previously, however i don't have it installed at this time. The problem appears to happen probably the most when multiple customers are striking the server across different branches. I suspect the problem might be associated with varying versions of certain core classes which are needed throughout the Zend Framework bootstrap process, however i can't evaluate which the real cause is. We now have attempted forcing all of the branches to become in the same version from your git repo, after which restarted Apache. This temporarily resolves the problem, however it soon returns. Everything started the other day after i basically installed some mainstream updates for Linux, PHP, and Zend Framework. Once the problem is happening, it even advances into our phpmyadmin virtual host, which does not have anything related to Zend Framework. I'm stumped. Following may be the group of errors we have seen within the Apache log:

[Get married Marly 02 20:32:40 2011] [error] [client 127...1] PHP Warning:  array_secrets() needs parameter 1 to become array, null succumbed /var/world wide web/dev/library/Zend/Loader/Autoloader.php online 251, referer: https://foo.bar/admin/resource_manage/search

[Get married Marly 02 20:32:40 2011] [error] [client 127...1] PHP Warning:  Invalid argument provided for foreach() in /var/world wide web/dev/library/Zend/Loader/Autoloader.php online 345, referer: https://foo.bar/admin/resource_manage/search

[Get married Marly 02 20:32:40 2011] [error] [client 127...1] PHP Warning:  array_key_is available() needs parameter 2 to become array, null succumbed /var/world wide web/dev/library/Zend/Loader/Autoloader.php online 194, referer: https://foo.bar/admin/resource_manage/search

[Get married Marly 02 20:32:40 2011] [error] [client 127...1] PHP Fatal error:  Class 'Zend_Config_Ini' not present in /var/world wide web/dev/library/Zend/Application.php online 383, referer: https://foo.bar/admin/resource_manage/search

Well, after much agony over this problem, it works out the issue was triggered by a general change in the behaviour from the php realpath_cache. After I set realpath_cache_ttl = during my php.ini, the problem using the incorrectly loading classes disappears.

I don't know how this got introduced during these updates, however i don't believe the cache is needed on the dev box, which means this will get me back in line. On the production server, I ought to have only one demonstration of the application running per Apache server anyway (no virtual hosts), and so i could most likely make use of the cache for the reason that scenario.

If anybody has any extra understanding of the reason for the realpath_cache problem, I wouldn't mind hearing it.

We'd exactly the same trouble with an identical server setup - a PHP application using Zend Framework 1.11.1 and Doctrine 2 running on nginx with php-fpm on the Ubuntu instance around the Amazon . com cloud. After restarting php-fpm, the issue appears to possess gone away.

This can be a bug in PHP 5.3.2 (see https://bugs.php.internet/bug.php?id=52083 and https://bugs.php.internet/bug.php?id=50027). The bug is bound in PHP 5.3.3.