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.
This commit is contained in:
Ilia Alshanetsky 2002-10-22 14:02:14 +00:00
parent cb856e6717
commit 5c53cdafcb

View 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"));
}
}
}