cvs: pearweb /public_html go-pear
| From: | Pierre-Alain Joye | Date: | Thu, 08 Jun 2006 22:34:20 +0000 |
| Subject: | cvs: pearweb /public_html go-pear | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4782@lists.php.net to get a copy of this message | ||
pajoye Thu Jun 8 22:34:20 2006 UTC
Modified files:
/pearweb/public_html go-pear
Log:
- raise a fatal error when no valid temp dir has given or found
http://cvs.php.net/viewcvs.cgi/pearweb/public_html/go-pear?r1=1.89&r2=1.90&diff_format=u
Index: pearweb/public_html/go-pear
diff -u pearweb/public_html/go-pear:1.89 pearweb/public_html/go-pear:1.90
--- pearweb/public_html/go-pear:1.89 Fri May 5 23:45:11 2006
+++ pearweb/public_html/go-pear Thu Jun 8 22:34:19 2006
@@ -18,7 +18,7 @@
# | Pierre-Alain Joye <pierre@php.net> |
# | Greg Beaver <cellog@php.net> |
# +----------------------------------------------------------------------+
-# $Id: go-pear,v 1.89 2006/05/05 23:45:11 pajoye Exp $
+# $Id: go-pear,v 1.90 2006/06/08 22:34:19 pajoye Exp $
#
# Automatically download all the files needed to run the "pear" command
# (the PEAR package installer). Requires PHP 4.1.0 or newer.
@@ -103,6 +103,8 @@
set_time_limit(0);
}
+
+
@ob_end_clean();
ob_implicit_flush(true);
define('WEBINSTALLER', ($sapi_name != 'cli' &&
!(substr($sapi_name,0,3)=='cgi' &&
!isset($_SERVER['GATEWAY_INTERFACE']))));
@@ -113,7 +115,7 @@
error_reporting( E_ALL & ~E_NOTICE);
define('WINDOWS', (substr(PHP_OS, 0, 3) == 'WIN'));
-define('GO_PEAR_VER', '0.5.0');
+define('GO_PEAR_VER', '0.6.0');
if (!function_exists('file_get_contents')) {
function file_get_contents($filename)
@@ -132,7 +134,6 @@
/*
* See bug #23069
*/
-
if ( WEBINSTALLER && WINDOWS ) {
$php_sapi_name = win32DetectPHPSAPI();
if($php_sapi_name=='cgi'){
@@ -527,6 +528,7 @@
if (!$_found) {
print "
+
******************************************************************************
FATAL ERROR! We cannot initialize the temp directory. Please be sure to give
full write access to this directory and the install directory.
@@ -536,6 +538,7 @@
if (!empty($tmp_dir)) {
print "'$tmp_dir' was given.";
}
+ exit();
}
$foo = $ptmp;
@@ -1173,6 +1176,10 @@
global $ptmp, $prefix;
if ($default) {
+ if (!@is_readable($default)) {
+ return false;
+ }
+
if (!is_dir($default)) {
if (!mkdir_p($default)) {
return false;
@@ -1256,7 +1263,7 @@
// Adjust TEMPDIR envvars
if (!isset($_ENV)) {
$_ENV = array();
- };
+ }
$_ENV['TMPDIR'] = $_ENV['TEMP'] = $prefix.'/tmp';
}
$tmp_dir = $ptmp = $_temp;