开发者

Problems installing PHP EzComponents using pyrus

It seems that the Ez Components repository will not play nice with pyrus. It seems to 302 when pyrus tries to download the package. Has anyone had any luck installing this? It's a requirement for PHPUnit.

C:\wamp\bin\php\php5.3.5>php pyrus.phar install  ezc/eZComponents
Pyrus version 2.0.0a3 SHA-1: BE7EA9D171AE3873F1BBAF692EEE9165BB14BD5D
Using PEAR installation found at pyrus
Downloading components.ez.no/eZComponents

PEAR2\Pyrus\Package\Exception: Invalid abstract package components.ez.no/eZCompo
nents
 PEAR2\Pyrus\Package\Ex开发者_如何转开发ception: Could not download from "http://components.ez.no
/get/eZComponents-2009.2.1.phar"
  PEAR2\Pyrus\Package\Exception: Download failed, received 302


302 is the status code for FOUND (meaning: Hey, look at Location where to find what you are looking for). Usually a client should follow the link given in the Location-header, but it seems, that Pyrus doesn't. This should be treated as a bug (as mentioned by cweiske).


This is not the only problem. ezComponents Location header redirects to /. So I don't think fixing this bug alone will help. It seems ezComponents has quite a weird setup that pyrus can't deal with.

Pyrus works fine with phpunit.de and so on.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜