8a9 > #include 216,217c217,221 < nxt_str_t type; < nxt_conf_value_t *type_value; --- > nxt_str_t type; > nxt_uint_t n; > nxt_thread_t *thread; > nxt_conf_value_t *type_value; > nxt_app_lang_module_t *lang; 220a225,230 > static void *members[] = { > nxt_conf_vldt_python_members, > nxt_conf_vldt_php_members, > nxt_conf_vldt_go_members, > }; > 233,235c243 < if (nxt_str_eq(&type, "python", 6)) { < return nxt_conf_vldt_object(conf, value, nxt_conf_vldt_python_members); < } --- > thread = nxt_thread(); 237,238c245,247 < if (nxt_str_eq(&type, "php", 3)) { < return nxt_conf_vldt_object(conf, value, nxt_conf_vldt_php_members); --- > lang = nxt_app_lang_module(thread->runtime, &type); > if (lang == NULL) { > return NXT_ERROR; 241,242c250,252 < if (nxt_str_eq(&type, "go", 2)) { < return nxt_conf_vldt_object(conf, value, nxt_conf_vldt_go_members); --- > n = nxt_app_parse_type(&lang->type); > if (n != NXT_APP_UNKNOWN) { > return nxt_conf_vldt_object(conf, value, members[n]);