]> granicus.if.org Git - php/commitdiff
Fixed a bug that caused the values of options/flags set via
authorIlia Alshanetsky <iliaa@php.net>
Tue, 22 Oct 2002 14:02:14 +0000 (14:02 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 22 Oct 2002 14:02:14 +0000 (14:02 +0000)
httpd.conf/.htaccess and other apache methods to contain a \0 as part of the
value.

sapi/apache2filter/apache_config.c

index 7433db7224532418592f86d81ab7931117399005..a9adad81dee28d55708e7e08d1e70676b59df904 100644 (file)
@@ -160,9 +160,9 @@ void apply_config(void *dummy)
                        zend_hash_move_forward(&d->config)) {
                zend_hash_get_current_data(&d->config, (void **) &data);
                phpapdebug((stderr, "APPLYING (%s)(%s)\n", str, data->value));
-               if (zend_alter_ini_entry(str, str_len, data->value, data->value_len + 1, 
-                               data->status, PHP_INI_STAGE_RUNTIME) == FAILURE)
+               if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status, PHP_INI_STAGE_RUNTIME) == FAILURE) {
                        phpapdebug((stderr, "..FAILED\n"));
+               }       
        }
 }