且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

不加载Firebird扩展

更新时间:2023-12-05 20:23:04

想通了!好吧,首先让基础知识变得简单:

Figured it out! Okay, first to get the basics out of the way:

  • 确保DLL的版本与您的PHP版本匹配.
  • 对于那些使用Windows安装程序的用户,由于某种原因,它没有提供包括Interbase和Firebird模块的选项,因此您必须下载匹配的.zip文件,然后从中的ext文件夹中复制它们.在那里.
  • 仔细检查extension_dir设置中是否有错字,例如未转义的反斜杠.仅当该值未用引号引起来"时才适用.
  • Make sure the version of the DLLs matches your PHP version.
  • For those who use the Windows installer, for some reason it doesn't provide an option to include the Interbase and Firebird modules so you'll have to download the matching .zip file and copy them from the ext folder in there.
  • Double check for any typos, such as unescaped backslashes, in your extension_dir setting. This only applies if the value isn't "wrapped in quotation marks."

现在要接受政变.该错误消息极具误导性.此时,它应该可以找到您的DLL,但缺少一个完整的部分:fbclient.dll,可以在Firebird安装的bin文件夹中找到它.我之前读过的每个地方都说将fbclient.dll放在ext文件夹中,但是如果将它放在PHP文件夹的根目录中,则仅 起作用.

Now for the coup de grace. That error message is extremely misleading. At this point it should be finding your DLLs but it's missing one integral piece: fbclient.dll which can be found in the bin folder of your Firebird installation. Everywhere I read before said to place fbclient.dll in the ext folder but it only works if you put it in the root of your PHP folder.

希望这有助于将来任性的灵魂:)

Hope this helps future wayward souls :)