The PEAR PHP installer fails to discover channels and install packages
hosted on google code since several weeks now.
The issue itself is documented in http://pear.php.net/bugs/bug.php?id=17234
and is as follows:
- The PEAR installer sends a HTTP request to google code, i.e. for
- The HTTP request contains a "Host:" header
- The Host header is "Host: pear-smarty.googlecode.com:80"
The port number is the problem here. Without the port number, it works
fine. With it, we all get a 404 error.
The HTTP RFC http://www.faqs.org/rfcs/rfc2616.html actually allows
adding the port:
> 14.23 Host
> Host = "Host" ":" host [ ":" port ] ; Section 3.2.2
So for me, google code is broken.
We could of course roll a new release of the PEAR installer, but I'd
rather see the google servers obey the standards.