V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
alex321
V2EX  ›  问与答

Windows 下 PHP 5.6.32 使用大微软提供的 SQLSRV32.EXE,配置 PHP .ini 之后出错

  •  
  •   alex321 · 2017-12-14 16:44:01 +08:00 · 1534 次点击
    这是一个创建于 2386 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我记得之前 5.6.31 是正常的。现在的错误提示如下。

    A PHP Error was encountered
    Severity: Core Warning
    Message: PHP Startup: sqlsrv: Unable to initialize module Module compiled with build ID=API20131226,NTS,VC11 PHP compiled with build ID=API20131226,TS,VC11 These options need to match
    Filename: Unknown
    Line Number: 0

    5.6.32 不能变,请问如何破呢?
    4 条回复    2017-12-14 21:39:56 +08:00
    wdlth
        1
    wdlth  
       2017-12-14 18:15:55 +08:00 via Android   ❤️ 1
    你的是 TS 版本,但是你使用的是 NTS 的扩展……
    PHP 版本、架构和线程安全类型都要对上。
    alex321
        2
    alex321  
    OP
       2017-12-14 21:13:48 +08:00
    @wdlth 已经确认是 nts 的版本了呀,5.6.31 是正常的。
    ysc3839
        3
    ysc3839  
       2017-12-14 21:17:04 +08:00   ❤️ 1
    @alex321 你给的 Message 里写的很清楚,PHP 是 TS 的
    PHP compiled with build ID=API20131226,TS,VC11
    alex321
        4
    alex321  
    OP
       2017-12-14 21:39:56 +08:00
    @wdlth
    @ysc3839

    重新检查了下 phpinfo,确定是用了 TS 的版本,脑袋大了,没看真。感谢奉上。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1327 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 17:44 · PVG 01:44 · LAX 10:44 · JFK 13:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.