[ Zend Platform 2.x ]
[ Linux, Solaris ]
In Zend Platform 2.x with Session Clustering enabled, Apache crashes on startup.
When Zend Session Clustering is installed and enabled (the session.save_handler is set to "cluster"), Apache will not start and crash, and no error message will probably be displayed. If Session Clustering is disabled (the ''session.save_handler'' in php.ini is not set to "cluster") things work as expected.
This problem only appears in some configurations of php, including but not limited to:
- php on Solaris 5.9, in which php 5.0.x was compiled with sqlite
- On Linux 32bit platforms where php is statically compiledinto Apache
It is possible for the problem to appear in other php configurations as well.
This problem is caused by a bug in php(both php4 and php5) related to the session save handlers registration mechanism.
Resolution / Workaround
As of the release of Zend Platform 2.1, no stable version of PHP incorporates the fix for this bug.
Users of php4 up to version 4.4.0 and php5 up to 5.0.5 should apply a patch against php's source code and recompile php to solve the problem.
The patch can be downloaded here in the links below:
The patch should be app
lied on the file session.c in php's source tree. Here is an example on how to apply it:
If the patch is applied well, you can compile and install php again, and if needed (when you use statically compiled php) recompile Apache as well.
This patch is most likely implemented in recent PHP versions.