Configuration: added checking for presence of mandatory fields.

This commit is contained in:
Valentin Bartenev
2020-07-24 20:25:20 +03:00
parent 2a71a8a9f4
commit 10f90f0d48
3 changed files with 131 additions and 13 deletions

View File

@@ -402,11 +402,6 @@ nxt_php_set_target(nxt_task_t *task, nxt_php_target_t *target,
value = nxt_conf_get_object_member(conf, &root_str, NULL);
if (value == NULL) {
nxt_alert(task, "no php root specified");
return NXT_ERROR;
}
nxt_conf_get_string(value, &str);
tmp = nxt_malloc(str.length + 1);