gpt4 book ai didi

php - 为什么我在安装 PEAR 时收到错误消息?

转载 作者:可可西里 更新时间:2023-10-31 22:07:09 26 4
gpt4 key购买 nike

我正在尝试安装用于 PHP 的 PEAR。当我在 http://pear.php.net/manual/en/installation.getting.php 阅读安装说明时,我应该运行 C:\wamp\bin\php\php5.3.0 目录中的文件 go-pear.bat。根据我阅读的所有安装指南,它应该安装并询问我一系列安装问题,但我收到以下错误:

phar "C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar"没有签名PHP 警告:require_once(phar://go-pear.par/index.php):无法打开流:phar 错误:无效的 url 或不存在的 phar“phar://go-pear.phar/index.php”在 C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar 1236 行

警告:require_once(phar://go-pear.par/index.php):无法打开流:phar 错误:无效的 url 或不存在的 phar“phar://go-pear.phar/index.php"在 C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar 1236 行按任意键继续...

我不确定为什么会收到此错误。我最近刚刚安装了新的 Wampserver。

最佳答案

也许 this is你在找什么。

步骤如下:

1) Locate the "php.ini" file. In my case, I found it at this path:

C:\wamp\bin\php\php5.3.0\php.ini

Don't use the WAMP system tray icon to edit this file. It didn't work when I tried - you have to manually locate it.

2) Find the following line, in bold:

; http://php.net/phar.require-hash;phar.require_hash = On ; http://php.net/phar.require-hash

;phar.require_hash = On

3) Uncomment the ";phar.require_hash = On" line by removing the semi-colon.

4) Change "On" to "Off".

; http://php.net/phar.require-hash

phar.require_hash = Off

5) Save the file.

After I performed those steps, "go-pear.bat" began working normally again.

关于php - 为什么我在安装 PEAR 时收到错误消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1652941/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com