cvs: pear-core(PEAR_1_3) /scripts pearcmd.php
| From: | Greg Beaver | Date: | Wed, 27 Oct 2004 05:58:22 +0000 |
| Subject: | cvs: pear-core(PEAR_1_3) /scripts pearcmd.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1163@lists.php.net to get a copy of this message | ||
cellog Wed Oct 27 01:58:22 2004 EDT
Modified files: (Branch: PEAR_1_3)
/pear-core/scripts pearcmd.php
Log:
remove at least 1 safe_mode problem, add a possible
warning that might help things
http://cvs.php.net/diff.php/pear-core/scripts/pearcmd.php?r1=1.13&r2=1.13.2.1&ty=u
Index: pear-core/scripts/pearcmd.php
diff -u pear-core/scripts/pearcmd.php:1.13 pear-core/scripts/pearcmd.php:1.13.2.1
--- pear-core/scripts/pearcmd.php:1.13 Tue Jun 8 13:49:19 2004
+++ pear-core/scripts/pearcmd.php Wed Oct 27 01:58:21 2004
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: pearcmd.php,v 1.13 2004/06/08 17:49:19 cellog Exp $
+// $Id: pearcmd.php,v 1.13.2.1 2004/10/27 05:58:21 cellog Exp $
ob_end_clean();
/**
@@ -29,7 +29,7 @@
}
ini_set('allow_url_fopen', true);
if (!ini_get('safe_mode')) {
- set_time_limit(0);
+ @set_time_limit(0);
}
ob_implicit_flush(true);
ini_set('track_errors', true);
@@ -75,6 +75,11 @@
PEAR_Command::setFrontendType($fetype);
$ui = &PEAR_Command::getFrontendObject();
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($ui, "displayFatalError"));
+if (ini_get('safe_mode')) {
+ $ui->outputData('WARNING: running in safe mode requires that all files created ' .
+ 'be the same uid as the current script. PHP reports this script is uid: ' .
+ @getmyuid() . ', and current user is: ' . @get_current_user());
+}
$pear_user_config = '';
$pear_system_config = '';