Re: Default INI entries overwrite php.ini entries
| From: | Zeev Suraski | Date: | Sun, 14 Jan 2001 08:34:45 +0000 |
| Subject: | Re: Default INI entries overwrite php.ini entries | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-44047@lists.php.net to get a copy of this message | ||
Yeah, we could do that. The behavior until now was that you have to put relevant INI entries before you load the module.
Zeev
At 08:37 14/1/2001, Sascha Schumann wrote:
register_ini_entries(), which is the service function that modules use to register their entries, doesn't use alter_ini_entry(). It checks the configuration hash (=php.ini) for a default value. If it exists, it uses it as the default value (it doesn't use alter_ini_entry()), if it doesn't - it uses the built-in default.-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/Ok, that explains why it does not work properly for dynamically loaded extensions. If a custom ini entry is placed after the extension=foo.so line, register_ini_entries has no chance to see the custom ini entry and hence uses the default entry.We could remove that limitation by deferring the load of extensions (and hence the execution of register_ini_entries) in php_config_ini_parser_cb() until all ini entries were properly added to the configuration hash. What do you think?- Sascha