summaryrefslogtreecommitdiff
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
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.
-rw-r--r--NEWS3
-rw-r--r--win32/registry.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 751deb5281..0016183023 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,9 @@
PHP 4 NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
? ? ??? 2002, Version 4.3.0
+- Changed registry entries under "HKLM\SOFTWARE\PHP\Per Directory Values" to
+ work also with administrative directives such as safe_mode, open_basedir,
+ etc. (Claudio Felber)
- Added PGSQL_CONNECT_FORCE_NEW option to pg_connect() (Yasuo)
- ATTENTION! "make install" will *by default* install the CLI SAPI binary in
{PREFIX}/bin/php. If you don't disable the CGI binary, it will be
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++;