应用pear.php.net补丁

时间:2014-05-20 13:39:58

标签: php pear patch

在pecl软件包安装期间,我收到了错误

Download of "pecl/pecl_http" succeeded, but it is not a valid package archive
Error: cannot download "pecl/pecl_http"

我在博客上发现了一个解决方案here,它要求我应用https://pear.php.net/bugs/bug.php?id=19746&edit=12&patch=archive_tar_php55.patch&revision=1355241213中提供的补丁文件

但我对如何应用它没有任何想法。如果有人向我解释这个程序会很有帮助。求救!

1 个答案:

答案 0 :(得分:1)

$ pear info archive_tar|head -n1
ABOUT PEAR.PHP.NET/ARCHIVE_TAR-1.3.8
$ cd `pear config-get php_dir`
$ wget -O /tmp/archive.diff "https://pear.php.net/bugs/patch-download.php?id=19746&patch=archive_tar_php55.patch&revision=1355241213"
$ patch -p1 < /tmp/archive.diff
$ pear upgrade-all
... works

来源:http://cweiske.de/tagebuch/pear-php-5.5.htm