Skip to content

Commit 9a9c1b4

Browse files
committed
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.
1 parent 1bb702e commit 9a9c1b4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
PHP 4 NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
? ? ??? 2002, Version 4.3.0
4+
- Changed registry entries under "HKLM\SOFTWARE\PHP\Per Directory Values" to
5+
work also with administrative directives such as safe_mode, open_basedir,
6+
etc. (Claudio Felber)
47
- Added PGSQL_CONNECT_FORCE_NEW option to pg_connect() (Yasuo)
58
- ATTENTION! "make install" will *by default* install the CLI SAPI binary in
69
{PREFIX}/bin/php. If you don't disable the CGI binary, it will be

win32/registry.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void UpdateIniFromRegistry(char *path TSRMLS_DC)
7070
RegEnumValue(hKey, i, namebuf, &namebuf_len, NULL, &lType, valuebuf, &valuebuf_len);
7171

7272
if ((lType == REG_SZ) || (lType == REG_EXPAND_SZ)) {
73-
zend_alter_ini_entry(namebuf, namebuf_len + 1, valuebuf, valuebuf_len, PHP_INI_PERDIR, PHP_INI_STAGE_ACTIVATE);
73+
zend_alter_ini_entry(namebuf, namebuf_len + 1, valuebuf, valuebuf_len, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
7474
}
7575

7676
i++;

0 commit comments

Comments
 (0)