]> granicus.if.org Git - php/commitdiff
Fix off-by-one on config values set from Apache config
authorStanislav Malyshev <stas@php.net>
Tue, 13 Mar 2001 18:39:38 +0000 (18:39 +0000)
committerStanislav Malyshev <stas@php.net>
Tue, 13 Mar 2001 18:39:38 +0000 (18:39 +0000)
# It didn't really hurt, since the extra character was always \0,
# but the phpinfo() display came out ugly.

sapi/apache/mod_php4.c

index 5a497e2dfa9a1d84258952cac781ce5a3f293823..237e7e0aa7e6abda676411275acbb7c26bce2f9e 100644 (file)
@@ -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;
 }