Topic: Building zts-enabled third-party extension
Hi,
I have ZTS-enabled PHP 5.5 and need to compile an extension for it.
I use php-devel-5.5.17-2.el6.remi.x86_64 rpm and do the following
# cd /var/saxon-HEC/Saxon-C-API/
# zts-phpize
# ./configure --enable-saxon --enable-maintainer-zts --with-php-config=/usr/bin/zts-php-config
# make
# make install
# apachectl restart
# tail /var/log/httpd/error_log
But apache's log says:
PHP Warning: PHP Startup: Saxon/C: Unable to initialize module
Module compiled with build ID=API20121212,NTS
PHP compiled with build ID=API20121212,TS
These options need to match\n in Unknown on line 0
Also, I am getting this waring from configure:
configure: WARNING: unrecognized options: --enable-maintainer-zts
Basically it is the same result as if I just compiled with non-zts phpize and php-config.
What am I doing wrong?