summaryrefslogtreecommitdiff
path: root/win32/registry.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2002-10-14 12:05:09 +0000
committerZeev Suraski <zeev@php.net>2002-10-14 12:05:09 +0000
commit9a9c1b435c2f0b749f2486d5bd9fabc2baa1bc6a (patch)
tree0897f7f5072208ac37e36ae3989d7e270b473857 /win32/registry.c
parent1bb702e40308048a5c46276d662a4def93369a22 (diff)
downloadphp-git-9a9c1b435c2f0b749f2486d5bd9fabc2baa1bc6a.tar.gz
Change the 'security level' of registry entries to PHP_INI_SYSTEM. They're
in the system hive in the registry, so only people with administrative priveleges can add stuff in there.
Diffstat (limited to 'win32/registry.c')
-rw-r--r--win32/registry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/registry.c b/win32/registry.c
index e36caa94f7..06e6bc0548 100644
--- a/win32/registry.c
+++ b/win32/registry.c
@@ -70,7 +70,7 @@ void UpdateIniFromRegistry(char *path TSRMLS_DC)
RegEnumValue(hKey, i, namebuf, &namebuf_len, NULL, &lType, valuebuf, &valuebuf_len);
if ((lType == REG_SZ) || (lType == REG_EXPAND_SZ)) {
- zend_alter_ini_entry(namebuf, namebuf_len + 1, valuebuf, valuebuf_len, PHP_INI_PERDIR, PHP_INI_STAGE_ACTIVATE);
+ zend_alter_ini_entry(namebuf, namebuf_len + 1, valuebuf, valuebuf_len, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
}
i++;