]> granicus.if.org Git - php/commitdiff
@Continue processing PHP_INI_SYSTEM knownDirectives after extension=
authorSam Ruby <rubys@php.net>
Sun, 31 Oct 1999 11:56:22 +0000 (11:56 +0000)
committerSam Ruby <rubys@php.net>
Sun, 31 Oct 1999 11:56:22 +0000 (11:56 +0000)
#
# Never saw a response to PHP-DEV post of 25-OCT
#
# Given the existence of knownDirectives, I figured that option 2
# was closest to the original design intent.

main/configuration-parser.y

index db7f950d54987b9f7f8a40b54aec16bd2b76ae3e..ec09c2a155263485a4a0f8b1083a0a638e53f403 100644 (file)
@@ -357,6 +357,9 @@ statement:
                        $3.type = IS_STRING;
                        if (parsing_mode==PARSING_MODE_CFG) {
                                zend_hash_update(active_zend_hash_table, $1.value.str.val, $1.value.str.len+1, &$3, sizeof(pval), NULL);
+                                if (active_zend_hash_table == &configuration_hash) {
+                                       php_alter_ini_entry($1.value.str.val, $1.value.str.len+1, $3.value.str.val, $3.value.str.len+1, PHP_INI_SYSTEM);
+                                }
                        } else if (parsing_mode==PARSING_MODE_BROWSCAP) {
                                php3_str_tolower($1.value.str.val,$1.value.str.len);
                                zend_hash_update(current_section->value.ht, $1.value.str.val, $1.value.str.len+1, &$3, sizeof(pval), NULL);