IIS上的PHP 7:无法找到Call_user_function [英] PHP 7 on IIS: Call_user_function could not be located

查看:433
本文介绍了IIS上的PHP 7:无法找到Call_user_function的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 2012 R2 64位服务器上使用带有PHP 7.1 Not Thread Safe x64的Microsoft SQL Server驱动程序。

I am trying to use the Microsoft SQL Server drivers with PHP 7.1 Not Thread Safe x64 on Windows 2012 R2 64-bit server.

无论我做什么,当我从管理命令提示符运行php时出现错误

No matter what I do I am getting an error when I run php from a admin command prompt


警告:PHP启动:无法加载动态库
'xtxt \ php_pdo_sqlsrv_7_nts.dll' - 指定的程序不能找到

Warning: PHP Startup: Unable to load dynamic library 'ext\php_pdo_sqlsrv_7_nts.dll' - The specified procedure could not be found.

此外它显示一个窗口弹出状态

Additionally it display a windows pop up that states


过程入口点call_user_function无法在
中找到动态链接库C:\ PHP7 \ extra \ php_pdo_dqlsrv7_nts_x64.dll

The procedure entry point call_user_function could not be located in the dynamic link library C:\PHP7\ext\php_pdo_dqlsrv7_nts_x64.dll

I已经验证php.ini指向存在的文件,因为如果我重命名.dll文件,错误消息将更改为找不到指定的模块,而不是指定的过程。

I have verified that the php.ini is pointing to a file that exists, because if I rename the .dll file, the error messages changes to "specified module could not be found", instead of specified procedure.

我已按照PHP 7的要求安装了Microsoft Visual C ++运行时15 x64。

I have installed Microsoft Visual C++ runtime 15 x64 as required by PHP 7.

我已根据Micro的要求安装了Microsoft ODBC驱动程序13软SQL Server驱动程序。

I have installed Microsoft ODBC driver 13 as required by the Microsoft SQL Server driver.

我重新启动了服务器两次。

I have rebooted the server twice.

我无法想到其他任何东西甚至尝试。正如phpinfo所证实的那样,Microsoft WinCache.dll正在加载并在PHP中正常工作。

There is nothing else I can think to even try. The Microsoft WinCache.dll is loading and working fine in PHP, as verified by phpinfo.

推荐答案

确认了@MEmerson上面所说的内容。您需要将PHP降级到7.0.X(?) - 我使用7.0.12。

Confirmed what @MEmerson said above. You need to downgrade PHP to 7.0.X(?) - I used 7.0.12.

完成设置:

  • Windows 10 Pro
  • PHP X64 7.0.12 TS (Bitnami WAMP Stack)
  • Microsoft ODBC Driver 13.1 for SQL Server (https://msdn.microsoft.com/en-us/library/mt703139(v=sql.1).aspx)
  • Microsoft Drivers for PHP for SQL Server 4.0 (https://www.microsoft.com/en-ca/download/details.aspx?id=20098)

与PHP X64 7.1.0相同的驱动程序产生了错误。

Same drivers with PHP X64 7.1.0 produced the error you are getting.

这篇关于IIS上的PHP 7:无法找到Call_user_function的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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