summaryrefslogtreecommitdiff
path: root/sapi/apache2filter
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-11-02 23:08:20 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-11-02 23:08:20 +0000
commit4886072b4b169718b05a94c4c6b3a778fe7c3408 (patch)
tree81a58d77fbda888bc3311615cc7a7873919722f6 /sapi/apache2filter
parent9e73bcaa33ca8d9ae28aef0b7a7f9ca7a993c064 (diff)
downloadphp-git-4886072b4b169718b05a94c4c6b3a778fe7c3408.tar.gz
Fixed bug #20217. When php_flag & php_value are used, the PHP_INI_PERDIR
flag should be used when setting the ini value. Otherwise, the user cannot modify per-directory ini settings specified via .htaccess.
Diffstat (limited to 'sapi/apache2filter')
-rw-r--r--sapi/apache2filter/apache_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/apache2filter/apache_config.c b/sapi/apache2filter/apache_config.c
index 1b4c1bc1ee..aad4fdef64 100644
--- a/sapi/apache2filter/apache_config.c
+++ b/sapi/apache2filter/apache_config.c
@@ -76,7 +76,7 @@ static const char *real_value_hnd(cmd_parms *cmd, void *dummy,
static const char *php_apache_value_handler(cmd_parms *cmd, void *dummy,
const char *name, const char *value)
{
- return real_value_hnd(cmd, dummy, name, value, PHP_INI_USER);
+ return real_value_hnd(cmd, dummy, name, value, PHP_INI_PERDIR);
}
static const char *php_apache_admin_value_handler(cmd_parms *cmd, void *dummy,
@@ -103,7 +103,7 @@ static const char *real_flag_hnd(cmd_parms *cmd, void *dummy, const char *arg1,
static const char *php_apache_flag_handler(cmd_parms *cmd, void *dummy,
const char *name, const char *value)
{
- return real_flag_hnd(cmd, dummy, name, value, PHP_INI_USER);
+ return real_flag_hnd(cmd, dummy, name, value, PHP_INI_PERDIR);
}
static const char *php_apache_admin_flag_handler(cmd_parms *cmd, void *dummy,