cvs: pearweb /public_html go-pear

From: Date: Fri, 09 Jun 2006 02:01:44 +0000
Subject: cvs: pearweb /public_html go-pear
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-4792@lists.php.net to get a copy of this message
pajoye Fri Jun 9 02:01:44 2006 UTC Modified files: /pearweb/public_html go-pear Log: - remove debug code - use set_include_path (safe_mode compliant) http://cvs.php.net/viewcvs.cgi/pearweb/public_html/go-pear?r1=1.92&r2=1.93&diff_format=u Index: pearweb/public_html/go-pear diff -u pearweb/public_html/go-pear:1.92 pearweb/public_html/go-pear:1.93 --- pearweb/public_html/go-pear:1.92 Fri Jun 9 01:58:15 2006 +++ pearweb/public_html/go-pear Fri Jun 9 02:01:44 2006 @@ -18,7 +18,7 @@ # | Pierre-Alain Joye <pierre@php.net> | # | Greg Beaver <cellog@php.net> | # +----------------------------------------------------------------------+ -# $Id: go-pear,v 1.92 2006/06/09 01:58:15 pajoye Exp $ +# $Id: go-pear,v 1.93 2006/06/09 02:01:44 pajoye Exp $ # # Automatically download all the files needed to run the "pear" command # (the PEAR package installer). Requires PHP 4.1.0 or newer. @@ -591,8 +591,7 @@ # Download #### -//ini_set("include_path", $ptmp); -set_include_path('/usr/local/lib/php:.'); +set_include_path($ptmp); if (!extension_loaded('zlib') && !WEBINSTALLER) { // In Web context we could be in multithread env which makes dl() end up with a fatal error. if (WINDOWS) { @@ -761,14 +760,10 @@ putenv('PHP_PEAR_DOWNLOAD_DIR=' . $temp_dir . '/download'); putenv('PHP_PEAR_TEMP_DIR=' . $temp_dir); -$wd= getcwd(); -chdir($prefix); include_once "PEAR.php"; include_once "PEAR/Config.php"; include_once "PEAR/Command.php"; include_once "PEAR/Registry.php"; -chdir($wd); - if (WEBINSTALLER || isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'local') { $config = &PEAR_Config::singleton($prefix."/pear.conf", '');

« previous php.pear.core (#4792) next »