Re: cvs: pear /PEAR_Frontend_Web WebInstaller.php
| From: | Tomas V.V.Cox | Date: | Tue, 11 Jun 2002 10:32:10 +0000 |
| Subject: | Re: cvs: pear /PEAR_Frontend_Web WebInstaller.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-4539@lists.php.net to get a copy of this message | ||
Stig, in the medium/long term we should provide a tmp_dir new config
entry for solving the problem with PHP and safe mode enabled.
Tomas V.V.Cox
Christian Dickmann wrote:
>
> dickmann Mon Jun 10 15:07:35 2002 EDT
>
> Modified files:
> /pear/PEAR_Frontend_Web WebInstaller.php
> Log:
> fix for SAFE MODE
>
> Index: pear/PEAR_Frontend_Web/WebInstaller.php
> diff -u pear/PEAR_Frontend_Web/WebInstaller.php:1.9
> pear/PEAR_Frontend_Web/WebInstaller.php:1.10
> --- pear/PEAR_Frontend_Web/WebInstaller.php:1.9 Sun Jun 9 17:35:16 2002
> +++ pear/PEAR_Frontend_Web/WebInstaller.php Mon Jun 10 15:07:34 2002
> @@ -16,7 +16,7 @@
> | Author: Christian Dickmann <dickmann@php.net> |
> +----------------------------------------------------------------------+
>
> - $Id: WebInstaller.php,v 1.9 2002/06/09 21:35:16 dickmann Exp $
> + $Id: WebInstaller.php,v 1.10 2002/06/10 19:07:34 dickmann Exp $
> */
> define('PEAR_Frontend_Web',1);
> @session_start();
> @@ -50,13 +50,14 @@
> $opts = array();
> $params = array();
> $URL =
> 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
> + $dir = substr(dirname(__FILE__), 0, -strlen('PEAR/PEAR')); // strip PEAR/PEAR
> + $_ENV['TMPDIR'] = $_ENV['TEMP'] = $dir.'/tmp';
>
> if (!file_exists($pear_user_config)) {
> // I think PEAR_Frontend_Web is running for the first time!
> // Install it properly ...
>
> // First of all set some config-vars:
> - $dir = substr(dirname(__FILE__), 0, -strlen('PEAR/PEAR')); // strip
> PEAR/PEAR
> $cmd = PEAR_Command::factory('config-set', $config);
> $ok = $cmd->run('config-set', array(), array('php_dir',
> $dir.'PEAR'));
> $ok = $cmd->run('config-set', array(), array('doc_dir',
> $dir.'docs'));
>
> --
> PEAR CVS Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php