cvs: pearweb /public_html go-pear

From: Date: Wed, 06 Nov 2002 14:25:24 +0000
Subject: cvs: pearweb /public_html go-pear
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7295@lists.php.net to get a copy of this message
ssb Wed Nov 6 09:25:24 2002 EDT Modified files: /pearweb/public_html go-pear Log: * use "wb" instead of just "w" when saving package files Index: pearweb/public_html/go-pear diff -u pearweb/public_html/go-pear:1.27 pearweb/public_html/go-pear:1.28 --- pearweb/public_html/go-pear:1.27 Fri Oct 11 21:31:23 2002 +++ pearweb/public_html/go-pear Wed Nov 6 09:25:24 2002 @@ -16,7 +16,7 @@ # | Stig Sæther Bakken <stig@php.net> | # +----------------------------------------------------------------------+ # -# $Id: go-pear,v 1.27 2002/10/12 01:31:23 ssb Exp $ +# $Id: go-pear,v 1.28 2002/11/06 14:25:24 ssb Exp $ # # Automatically download all the files needed to run the "pear" command # (the PEAR package installer). Requires PHP 4.1.0 or newer. @@ -135,7 +135,7 @@ 'php_dir' => 'PHP code directory', 'doc_dir' => 'Documentation base directory', 'data_dir' => 'Data base directory', - 'tests_dir' => 'Tests base directory', + 'test_dir' => 'Tests base directory', ); $config_vars = array_keys($config_desc); // make indices run from 1... @@ -466,6 +466,8 @@ $fp = fsockopen($tmp['host'], $tmp['port'], $errno, $errstr); //print "\nconnecting to $tmp[host]:$tmp[port]\n"; } else { + $proxy = eregi_replace('^http://', '', $proxy); + $proxy = ereg_replace('/.*', '', $proxy); list($phost, $pport) = explode(":", $proxy); $fp = fsockopen($phost, $pport, $errno, $errstr); //print "\nconnecting to $phost:$pport\n"; @@ -499,7 +501,7 @@ } } } - $wp = fopen($destfile, "w"); + $wp = fopen($destfile, "wb"); if (!$wp) { bail("could not open $destfile for writing\n"); } @@ -659,7 +661,7 @@ // {{{ detect_install_dirs() function detect_install_dirs($_prefix = null) { - global $prefix, $bin_dir, $php_dir, $doc_dir, $data_dir, $tests_dir; + global $prefix, $bin_dir, $php_dir, $doc_dir, $data_dir, $test_dir; if (WINDOWS) { if ($_prefix === null) { $prefix = PHP_BINDIR; @@ -677,7 +679,7 @@ $php_dir = '$prefix\pear'; $doc_dir = '$php_dir\docs'; $data_dir = '$php_dir\data'; - $tests_dir = '$php_dir\tests'; + $test_dir = '$php_dir\tests'; } else { if ($_prefix === null) { $prefix = dirname(PHP_BINDIR); @@ -688,7 +690,7 @@ $php_dir = '$prefix/share/pear'; $doc_dir = '$php_dir/docs'; $data_dir = '$php_dir/data'; - $tests_dir = '$php_dir/tests'; + $test_dir = '$php_dir/tests'; // check if the user has installed PHP with PHP or GNU layout if (@is_dir("$prefix/lib/php/.registry")) { $php_dir = '$prefix/lib/php'; @@ -696,7 +698,7 @@ $php_dir = '$prefix/share/pear/lib'; $doc_dir = '$prefix/share/pear/docs'; $data_dir = '$prefix/share/pear/data'; - $tests_dir = '$prefix/share/pear/tests'; + $test_dir = '$prefix/share/pear/tests'; } elseif (@is_dir("$prefix/share/php/.registry")) { $php_dir = '$prefix/share/php'; }

« previous php.pear.cvs (#7295) next »