Re: php.ini under Windows
| From: | Zeev Suraski | Date: | Fri, 24 Mar 2000 09:54:34 +0000 |
| Subject: | Re: php.ini under Windows | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-17193@lists.php.net to get a copy of this message | ||
On Fri, 24 Mar 2000, Flavien LEBARBE wrote:
> Zeev Suraski wrote:
> >
> > For historical reasons (in other words, I have no idea why it's like
> > that), under Windows, PHP will refuse to start up if it doesn't find the
> > php.ini file. Especially under ISAPI when this error cannot be conveyed
> > to the user, this can be quite problematic.
> > Does anyone see the point in this behavior? I want to change it so that
> > PHP will happily start up under Windows, regardless of the availability of
> > the php.ini file, like it does under other platforms.
>
>
> Given the current implementation (which we already said we'll change in the
> future, and I'm planing on giving it a look sometime during the next month
> or so), I personaly think it is a bad idea.
It could be my senile brain, but who said anything about changing the
current implementation?
> Remember : if no php.ini file is parsed, configuration_hash is empty, so
> get_cfg_var() always returns an empty string, and that's _very_ confusing.
You should never use get_cfg_var() in PHP 4.0 (well, almost never, unless
you have a good idea of what you're doing). You should use ini_get()
instead.
Zeev
--
Zeev Suraski <zeev@zend.com>
http://www.zend.com/