Date: 01/14/01
- Next message: Ron Chmara: "[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] Moving errata notes around."
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] PHP 4.0.4 patchlevel 1 released"
- Next in thread: Cynic: "Re: [PHP-DEV] Default INI entries overwrite php.ini entries"
- Reply: Cynic: "Re: [PHP-DEV] Default INI entries overwrite php.ini entries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
>
> 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
-- Zeev Suraski <zeev <email protected>> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Ron Chmara: "[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] Moving errata notes around."
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] PHP 4.0.4 patchlevel 1 released"
- Next in thread: Cynic: "Re: [PHP-DEV] Default INI entries overwrite php.ini entries"
- Reply: Cynic: "Re: [PHP-DEV] Default INI entries overwrite php.ini entries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

