我尝试创建一些PHP扩展。
首先,我使用--enable-debug --enable-maintainer-zts
编译了php 5.3.6
。
然后,我创建了我的扩展并按照标准程序使用它。
phpize
./configure --with-EXTNAME
make
将extname.so
复制到我的php扩展目录中,并更改php.ini
当我尝试使用cli的php时,我遇到了一个错误
Unable to initialize module
Module compiled with build ID=API20090626,NTS
PHP compiled with build ID=API20090626,TS,debug
当我尝试时
./configure --enable-debug --enable-maintainer-zts
我得到了一个警告,configure脚本不认识这些选项,这是关于扩展的。
那么,我该如何编译我的扩展,以便与使用我上述描述的选项编译的PHP一起使用,而无需重新编译PHP本身?