php扩展:获取基于vs2017构建的错误(无法初始化模块)

6tdlim6h  于 2021-09-29  发布在  Java
关注(0)|答案(1)|浏览(279)

我有一个基于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上。

z31licg0

z31licg01#

将此添加到c文件:


# define PHP_COMPILER_ID  "VC15"

所以我建立了dll。

相关问题