[請益] 編譯extension 要怎麼不帶debug

作者: alpho (Whyyyyy)   2021-12-01 09:45:44
如題,
PHP 5.5.38
OS CentOS 6.5
以前專案是接mysql 的,最近有需要連mssql 查詢,我參考:
https://blog.csdn.net/21aspnet/article/details/47451253
除了freetds 和sql版本變新以外沒什麼問題,也能連上測試用的sql server
不過build出來的mssql.so ,要用的時候遇到問題:
PHP Warning: PHP Startup: mssql: Unable to initialize module
Module compiled with build ID=AP20121212,NTS,debug
PHP compiled with build ID=AP20121212,NTS
These options need to match
簡單說就是build出來的和原本php版本不合。
後續我只查到不要在debug mode 裡,用make clean all之後重build一次
我改完 php-config (只有把—enable-debug 刪掉) 後重build , 或重新解壓縮用乾淨的ext/mssql 重跑都還是會有那個debug
請問怎麼build出不帶debug的so, 或怎麼關掉debug mode .
感謝

Links booklink

Contact Us: admin [ a t ] ucptt.com