【问题标题】:PHP 7.2 64bit nts "php.exe - Entry Point Not Found" errors for "C:/php -v"“C:/php -v”的 PHP 7.2 64 位 nts“php.exe - 未找到入口点”错误
【发布时间】:2018-10-31 21:00:40
【问题描述】:

我刚刚使用 Web 平台安装程序为 PHP 7.2 安装了 PHP 7.2.7 (x64) 和 Windows Cache Extension 2.0 (x64)。

但是,当我运行任何 php 命令(例如 php -v)时,会出现以下弹出窗口!

消息框 1:[php.exe - Entry Point Not Found] 程序入口点 vspprintf 无法位于动态链接库 php7.dll 中。

消息框 2:[php.exe - Entry Point Not Found] 程序入口点 strpprintf 无法在动态链接库 php7.dll 中定位。

消息框 3:[php.exe - Entry Point Not Found] 程序入口点 spprintf 无法在动态链接库 php7.dll 中找到。

消息框 4:[php.exe - Entry Point Not Found] 程序入口点 vspprintf 无法位于动态链接库 php7.dll 中。

消息框 5:[php.exe - Entry Point Not Found] 程序入口点 zend_wrong_paramers_count_error@@24 无法在动态链接库 php7.dll 中找到。

消息框 6:[php.exe - Ordinal Not Found] 无法在动态链接库 SSLEAY32.dll 中找到序号 407。

消息框 7 & 8: [php.exe - Entry Point Not Found] 程序入口点 spprintf 无法在动态链接库 php7.dll 中找到。

消息框 9:[php.exe - Entry Point Not Found] 过程入口点 call_user_function_ex 无法在动态链接库 php7.dll 中找到。

消息框 10:[php.exe - Entry Point Not Found] 程序入口点 spprintf 无法在动态链接库 php7.dll 中定位。

消息框 11:[php.exe - Entry Point Not Found] 程序入口点 strpprintf 无法位于动态链接库 php7.dll 中。

消息框 12:[php.exe - Entry Point Not Found] 程序入口点 spprintf 无法位于动态链接库 php7.dll 中。

最后它在命令提示符处输出以下内容:

PHP 7.2.7 (cli)(构建时间:2018 年 6 月 19 日 23:13:48)(NTS MSVC15 (Visual C++ 2017) x64) 版权所有 (c) 1997-2018 PHP 集团 Zend Engine v3.2.0,版权所有 (c) 1998-2018 Zend Technologies

我已尝试禁用扩展程序等,但我不知道还能尝试什么。

【问题讨论】:

    标签: php-7.2


    【解决方案1】:

    “旧”PHPRC 环境变量的存在将导致加载错误的 php.ini 文件。

    PHPRC 系统变量需要更新到正确的路径。

    步骤:

    1. 转至:Control Panel > System and Security > System > System Properties > Environment Variables > System variables

    2. 编辑PHPRC 路径以指向正确的路径。例如,C:\Program Files\PHP\v7.2\

    3. 打开一个新的命令提示符窗口,然后验证 C:/php -v 是否有效。

    【讨论】:

      猜你喜欢
      • 2020-03-11
      • 2019-03-27
      • 2013-09-09
      • 2012-04-03
      • 2016-04-24
      • 1970-01-01
      • 2018-08-15
      • 1970-01-01
      • 2014-08-08
      相关资源
      最近更新 更多