The second answer here suggests it is as simple as disabling/re-enabling APC.
However, there is an open Symfony issue (#227) here.
I would suggest installing the APC extension separately and try to disable the built-in Zend Server version. If I remember correctly, the order of how extra extensions are loaded in Zend Server's php.ini
matters.
If you're using Homebrew, install APC with this formula and follow the instructions on the installer (enable with extension
not zend_extension
). You can try it without disabling the built-in APC, but to avoid conflicts I would disable it.
Update #1: A couple more things to try:
- Ensure Zend Optimizer+ is disabled.
- Disable Zend Server's "APC Compatibility Mode"
zend_optimizer.optimization_level = 0
Update #2: Since you need a 32-bit version of APC, try this:
cd /usr/local/src
pecl download apc
tar -zxvf APC-*.tgz
cd APC-*
phpize
./configure MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch i386 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch i386 -g -Os -pipe" CXXFLAGS="-arch i386 -g -Os -pipe" LDFLAGS="-arch i386 -bind_at_load" --enable-apc-debug=no --enable-apc-filehits=no --enable-apc-spinlocks=no --enable-apc-memprotect=no --enable-apc-pthreadmutex=yes --enable-apc-pthreadrwlocks=no
make
make install
After finished, try that one on Zend Server.
Update #3: Check out this article by Ralph Schindler on "Compiling Gearman (or anything) for Zend Server CE on Snow Leopard". And here is one more. Perhaps there is something different in the './configure' commands from those articles that will work for you.