summaryrefslogtreecommitdiff
path: root/sapi/apache/mod_php4.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2001-03-13 18:39:38 +0000
committerStanislav Malyshev <stas@php.net>2001-03-13 18:39:38 +0000
commit5c1f7a2f60775bcd047f1bb2b7c36db0c07180a8 (patch)
tree9cdf1ae87cbd6b653ec10570decbfc3be8d224d2 /sapi/apache/mod_php4.c
parent6626f902a8f5e32bf213fb444013a10e93ec9c76 (diff)
downloadphp-git-5c1f7a2f60775bcd047f1bb2b7c36db0c07180a8.tar.gz
Fix off-by-one on config values set from Apache config
# It didn't really hurt, since the extra character was always \0, # but the phpinfo() display came out ugly.
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r--sapi/apache/mod_php4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c
index 5a497e2dfa..237e7e0aa7 100644
--- a/sapi/apache/mod_php4.c
+++ b/sapi/apache/mod_php4.c
@@ -415,7 +415,7 @@ static void init_request_info(SLS_D)
static int php_apache_alter_ini_entries(php_per_dir_entry *per_dir_entry)
{
- zend_alter_ini_entry(per_dir_entry->key, per_dir_entry->key_length+1, per_dir_entry->value, per_dir_entry->value_length+1, per_dir_entry->type, PHP_INI_STAGE_ACTIVATE);
+ zend_alter_ini_entry(per_dir_entry->key, per_dir_entry->key_length+1, per_dir_entry->value, per_dir_entry->value_length, per_dir_entry->type, PHP_INI_STAGE_ACTIVATE);
return 0;
}