cvs: pearweb /public_html go-pear
| From: | Pierre-Alain Joye | Date: | Sun, 16 Apr 2006 22:08:40 +0000 |
| Subject: | cvs: pearweb /public_html go-pear | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4725@lists.php.net to get a copy of this message | ||
pajoye Sun Apr 16 22:08:40 2006 UTC
Modified files:
/pearweb/public_html go-pear
Log:
- silent warning when safe_mode is on
http://cvs.php.net/viewcvs.cgi/pearweb/public_html/go-pear?r1=1.81&r2=1.82&diff_format=u
Index: pearweb/public_html/go-pear
diff -u pearweb/public_html/go-pear:1.81 pearweb/public_html/go-pear:1.82
--- pearweb/public_html/go-pear:1.81 Sat Mar 11 14:15:20 2006
+++ pearweb/public_html/go-pear Sun Apr 16 22:08:40 2006
@@ -18,7 +18,7 @@
# | Pierre-Alain Joye <pajoye@pearfr.org> |
# | Greg Beaver <cellog@php.net> |
# +----------------------------------------------------------------------+
-# $Id: go-pear,v 1.81 2006/03/11 14:15:20 pajoye Exp $
+# $Id: go-pear,v 1.82 2006/04/16 22:08:40 pajoye Exp $
#
# Automatically download all the files needed to run the "pear" command
# (the PEAR package installer). Requires PHP 4.1.0 or newer.
@@ -95,7 +95,12 @@
}
$sapi_name = php_sapi_name();
-set_time_limit(0);
+
+$safe_mode = (bool)ini_get('safe_mode');
+if (!$safe_mode) {
+ 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']))));