cvs: php4 / NEWS /win32 registry.c
| From: | Zeev Suraski | Date: | Mon, 14 Oct 2002 12:05:09 +0000 |
| Subject: | cvs: php4 / NEWS /win32 registry.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14916@lists.php.net to get a copy of this message | ||
zeev Mon Oct 14 08:05:09 2002 EDT
Modified files:
/php4 NEWS
/php4/win32 registry.c
Log:
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.
Index: php4/NEWS
diff -u php4/NEWS:1.1203 php4/NEWS:1.1204
--- php4/NEWS:1.1203 Sun Oct 13 20:36:11 2002
+++ php4/NEWS Mon Oct 14 08:05:09 2002
@@ -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
Index: php4/win32/registry.c
diff -u php4/win32/registry.c:1.11 php4/win32/registry.c:1.12
--- php4/win32/registry.c:1.11 Sat Aug 4 21:42:48 2001
+++ php4/win32/registry.c Mon Oct 14 08:05:09 2002
@@ -70,7 +70,7 @@
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++;