go-pear proxy bug
| From: | Marcelo Subtil Marcal | Date: | Mon, 28 Oct 2002 15:44:27 +0000 |
| Subject: | go-pear proxy bug | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-10310@lists.php.net to get a copy of this message | ||
Hi all,
I realize go-pear script don't works if you have to connect using a proxy
server.
It gets http_proxy environment variable (linux boxes stores this value in
"http://proxy_server:port" format) but the
function 'download_url' splits
this string at ':' char:
list($phost, $pport) = explode(":", $proxy);
As you can see this line assign wrong values to "$phost" and "$pport"
variables.
I'm sending a humble patch that uses 'parse_url()' to get $phost and
$pport values.
regards,
--
Marcelo Subtil Marçal - Linux User #57753
--------------------------------------------------
Gerente Técnico Filial CWB
Conectiva S.A. http://www.conectiva.com.br
# man you
No manual entry for you