Re: php.ini under Windows
| From: | Faisal Nasim | Date: | Fri, 24 Mar 2000 09:33:49 +0000 |
| Subject: | Re: php.ini under Windows | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-17192@lists.php.net to get a copy of this message | ||
: 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.
: 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.
How about a default value, as in the standard php.ini?
blah = get_from_phpini ( "max_execution_time" ) || 30;
Where 30 is the default execution time in php.ini.
and blah goes into the configuration_hash, thus get_cfg_var()
works as it does now.
Any drawbacks or something?
Faisal