]> granicus.if.org Git - php/commitdiff
Fix ini_restore variable length
authorStanislav Malyshev <stas@php.net>
Tue, 5 Sep 2000 14:23:16 +0000 (14:23 +0000)
committerStanislav Malyshev <stas@php.net>
Tue, 5 Sep 2000 14:23:16 +0000 (14:23 +0000)
ext/standard/basic_functions.c

index b8d160885ee60b1c80d62304174d56a7a2965a93..4a0ae534e3766d081dfa24bd1ba9ba5cc7ebbcbe 100644 (file)
@@ -1889,7 +1889,7 @@ PHP_FUNCTION(ini_restore)
 
        convert_to_string_ex(varname);
 
-       php_restore_ini_entry((*varname)->value.str.val, (*varname)->value.str.len, PHP_INI_STAGE_RUNTIME);
+       php_restore_ini_entry((*varname)->value.str.val, (*varname)->value.str.len+1, PHP_INI_STAGE_RUNTIME);
 }
 /* }}} */