I tried to create some php extension.
For the first, I compiled php 5.3.6 with --enable-debug --enable-maintainer-zts . Then I paused the extension and used the standard procedure for it
phpize ./configure --with-EXTNAME make
Then copy extname.so to my php extension directory and change php.ini
And when I try to use php from cli, I got an error
Unable to initialize module Module compiled with build ID=API20090626,NTS PHP compiled with build ID=API20090626,TS,debug
When i try
./configure --enable-debug --enable-maintainer-zts
For the extension, I received a warning that these parameters are not recognized by the configure script.
So, how can I compile my extension for use with PHP compiled with the parameters I describe above without recompiling php itself?
source share