mirror of
https://github.com/php/php-src.git
synced 2025-01-09 20:44:33 +08:00
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:
parent
cb856e6717
commit
5c53cdafcb
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user