]> granicus.if.org Git - php/commitdiff
Fix -d functionality
authorStanislav Malyshev <stas@php.net>
Tue, 31 Oct 2000 16:16:57 +0000 (16:16 +0000)
committerStanislav Malyshev <stas@php.net>
Tue, 31 Oct 2000 16:16:57 +0000 (16:16 +0000)
sapi/cgi/cgi_main.c

index 04f56c7431ad16def5c3a72a7f3eec3611518157..c5928a24d6b312e070d709cc071a01d5431dcf54 100644 (file)
@@ -336,7 +336,7 @@ static void define_command_line_ini_entry(char *arg)
        } else {
                value = "1";
        }
-       zend_alter_ini_entry(name, strlen(name), value, strlen(value), PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
+       zend_alter_ini_entry(name, strlen(name)+1, value, strlen(value), PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
 }