/usr/local/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so: undefined symbol: output_globals
php 4.3.4 with ts
For those of you having trouble getting turck-mmcache to work properly with Apache 2.0 with worker mpm and thread safe php:
This will fix the undefined symbol: output_globals error.
grab turck-mmcache from CVS
then do this exactly (making sure the paths are right for you):
./configure --enable-mmcache=shared --with-php-config=/usr/bin/php-config.mod_php
if you don't have a php-config.mod_pjp just use php-config
edit Makefile and add -DZTS -DPTHREADS to the DEFS = line
then check your mod_php's php.ini to ensure that mmcache is loaded using zend_extension_ts=
restart apache and enjoy
why does this work? when php is thread safe, ouput_globals_id is defined instead of outpug_globals so we have to make sure that the php includes that turck-mmcache uses are in threadsafe mode. To do this we must ensure that ZTS and PTHREADS are defined.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.