Re: configuration
| From: | Tomas V.V.Cox | Date: | Tue, 22 May 2001 17:53:04 +0000 |
| Subject: | Re: configuration | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-447@lists.php.net to get a copy of this message | ||
Stig Sæther Bakken wrote:
>
> [Nicolas Hoizey <nhoizey@phpheaven.net>]
> > Hi,
> >
> > > I think it's time to find a standard way of giving applications
> > > parameters without having to modify library code.
> >
> > Yes, it's time to do it, it is really needed !!! :)
> >
> > > To access the configuration we can either use ini_get() or make a
> > > new set of pear_ini_* functions.
> >
> > Do these functions access the '*.ini' file every time they are called,
> > or is the whole configuration loaded somewhere in memory ?
>
> The php.ini file is loaded when PHP starts up, which is once per httpd
> process for Apache. But SAPI backends have the opportunity to
> override individual ini directives on each request.
>
I realize that PHP script reads an alternative php.ini if it founds it
in the same directory where you launch it, overriding the default
--with-config-file-path. Is this a bug?
Linux OS an PHP 4.0.7-dev from today's CVS.
Tomas V.V.Cox