PHP 7.4.2 [扩展] 在视窗上生成错误

我正在使用一个包(SAP RFC连接器)一段时间了,从这里检索到 https://github.com/gkralik/php7-sapnwrfc


该软件包在所有PHP版本上都按预期工作,直到7.4.2与源代码构建。


我已经从VS2015和VS2019的源代码构建了php_sapnwrfc.dll,但由于这些错误,我无法解决它的工作。


对于构建,我使用了以下过程:


https://gkralik.github.io/php7-sapnwrfc/building.html#building-on-windows

https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2

有人知道如何解决这个问题吗?


使用VS2019,我得到了这个错误,但没有人知道它是什么意思,特别是带有核心编号的警告。


Warning: PHP Startup:

Can't load module 'C:/ownprograms/wamp/bin/php/php7.4.2/ext/php_sapnwrfc.dll' as it's linked with 14.24, but the core is linked with 14.16 in Unknown on line 0

使用VS2015,我得到了这个错误,但这是由于编译器。


[17-Feb-2020 10:48:43 UTC] PHP Warning:  PHP Startup: sapnwrfc: Unable to initialize module

Module compiled with build ID=API20190902,TS,VS16

PHP    compiled with build ID=API20190902,TS,VC15

These options need to match

英文版版本: 7.4.2 交易标准版


任何帮助将不胜感激。


慕斯709654
浏览 88回答 1
1回答

慕哥9229398

有人解决了我的问题,这是他的回答。尝试使用附加的 DLL。我已经为7.4.2和7.4.3构建了它,扩展版本为1.3.0,vc15,ts和x64。它应该工作。php_sapnwrfc.zip对于除主分支> 7.2 的任何 PHP 版本,您需要使用 VC15(Visual Studio 2017)。我在你的痕迹中看到你正在使用VC16(视觉工作室2019)。我可以确认我尝试使用VS2015和VS2019构建它,而不是使用VS2017。谢谢,问题解决了。
打开App,查看更多内容
随时随地看视频慕课网APP