Re: php.ini search path
| From: | Edin Kadribasic | Date: | Thu, 14 Feb 2002 16:49:32 +0000 |
| Subject: | Re: php.ini search path | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80045@lists.php.net to get a copy of this message | ||
> > Currently php searches for php.ini in the current working directory,
PHPRC
> > environment variable and the compiled in default dir (in that order).
> > Searching in the CWD first is IMHO not a very good thing, especially
when
> > dealing with cli scripts.
> >
> > Are there any objections to removing CWD from php.ini search path?
>
> Speaking from a developers view I found it quite handy to
> look in current dir first (testing bugs from bugs.php.net,
> for every category I've my own dir with php files and
> php.ini for special settings, like module load). But then,
> what does the developers view count when it's a possibly
> security prblem in real life? . Hum ;)
It is handy for debuging. But a single "export PHPRC=." would fix that.
Edin