From: Ilia Alshanetsky Date: Tue, 22 Oct 2002 14:02:14 +0000 (+0000) Subject: Fixed a bug that caused the values of options/flags set via X-Git-Tag: php-4.3.0pre2~197 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c53cdafcb56babc720228ccd69550ebd57605b2;p=php Fixed a bug that caused the values of options/flags set via httpd.conf/.htaccess and other apache methods to contain a \0 as part of the value. --- diff --git a/sapi/apache2filter/apache_config.c b/sapi/apache2filter/apache_config.c index 7433db7224..a9adad81de 100644 --- a/sapi/apache2filter/apache_config.c +++ b/sapi/apache2filter/apache_config.c @@ -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")); + } } }