看板 PHP 關於我們 聯絡資訊
如題, 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 . 感謝 ----- Sent from JPTT on my iPhone -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.137.170.47 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/PHP/M.1638323149.A.60D.html ※ 編輯: alpho (223.137.170.47 臺灣), 12/01/2021 11:26:10