【问题标题】:PHP Extension: Get error (Unable to initialize module) built on vs2017PHP 扩展:在 vs2017 上构建的获取错误(无法初始化模块)
【发布时间】:2021-07-26 11:07:23
【问题描述】:

我有一个基于 vs2017 的 PHP 扩展。

当我在 xampp 上加载它时出现此错误:

PHP Startup: myPhpExt: Unable to initialize module
Module compiled with build ID=API20190902,TS
PHP    compiled with build ID=API20190902,TS,VC15

These options need to match\n in Unknown on line 0

我该如何解决这个问题?尊重是在 vc15 上。

【问题讨论】:

    标签: php xampp php-extension


    【解决方案1】:

    将此添加到 c 文件中:

    #define PHP_COMPILER_ID  "VC15"
    

    所以我构建了 dll。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-05-01
      • 1970-01-01
      • 2012-08-22
      • 1970-01-01
      • 2015-05-22
      • 1970-01-01
      • 2018-02-13
      • 1970-01-01
      相关资源
      最近更新 更多