PHP启动:无法加载动态库 [英] PHP Startup: Unable to load dynamic library

查看:409
本文介绍了PHP启动:无法加载动态库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Firebird 2.5.2.26539用于:

I am trying to use Firebird 2.5.2.26539 with:

  • Windows 8
  • Apache 2.2.22
  • PHP 5.4.10

当我在php中启用firebird扩展名时:

When i enable the extensions of firebird in php:

- extension=php_interbase.dll
- extension=php_pdo_firebird.dll

我得到这些错误:

[2012年12月26日12:08:11 UTC] PHP警告:PHP启动:无法加载动态库'C:\ Program Files(x86)\ PHP \ ext \ php_interbase.dll'-无法找到指定的模块. 在第0行上的未知"中

[26-Dec-2012 12:08:11 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_interbase.dll' - Impossible to locate the specified module. in Unknown on line 0

[2012年12月26日12:08:13 UTC] PHP警告:PHP启动:无法加载动态库'C:\ Program Files(x86)\ PHP \ ext \ php_pdo_firebird.dll'-无法找到指定的模块. 在第0行上的未知"中

[26-Dec-2012 12:08:13 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pdo_firebird.dll' - Impossible to locate the specified module. in Unknown on line 0

如果我在命令行中使PHP -a,则错误消息有所不同:找不到fbclient.dll.

if i make PHP -a in command line, the error message is different: cannot find fbclient.dll.

我运行了Flamerobin,它打开了数据库.因此,我将fbclient.dll复制到PHP根路径. 然后错误更改为:

I have the flamerobin running and it opens the database. So i copy the fbclient.dll to the PHP root path. Then the errors change to:

[2012年12月26日11:55:46 UTC] PHP警告:PHP启动:无法加载动态库'C:\ Program Files(x86)\ PHP \ ext \ php_interbase.dll'-%1不是有效的Win32应用程序. 在第0行上的未知"中

[26-Dec-2012 11:55:46 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_interbase.dll' - %1 is not a valid Win32 application. in Unknown on line 0

[2012年12月26日11:55:46 UTC] PHP警告:PHP启动:无法加载动态库'C:\ Program Files(x86)\ PHP \ ext \ php_pdo_firebird.dll'-%1不是有效的Win32应用程序. 在第0行上的未知"中

[26-Dec-2012 11:55:46 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pdo_firebird.dll' - %1 is not a valid Win32 application. in Unknown on line 0

有人可以帮我吗?我怀疑此版本的Firebird仍然没有为PHP所做的正确扩展. 谢谢.

Can anyone help me on this one? I suspect that this version of Firebird still does not have the correct extensions made for the PHP. Thank you.

推荐答案

Cli和Apache PHP使用两个不同的配置文件运行.这将解释CLI模式下缺少错误消息的情况.可能是此应用程序的扩展名未存储在PHP扩展名文件夹中.我不熟悉Windows下的配置,因此您可能需要Google搜索Windows PHP扩展目录,并确保您的扩展文件在那里.

Cli and Apache PHP run with two different configuration files. That will explain the lacking error message in CLI mode. The likelihood is the extensions for this application where not stored in the PHP extension folder. I'm not versed with the configurations under windows so you may need to google for the Windows PHP extension directory and ensure your extension file is there.

根据您的错误判断,路径为"C:\ Program files(x86)\ PHP \ ext \

Judging by your error the path is "C:\Program files(x86)\PHP\ext\

在尝试加载扩展文件之前,请确保它们已经存在.

Please ensure your extension files are there before attempting to load them.

这篇关于PHP启动:无法加载动态库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆