Lines Matching refs:target

84 static nxt_int_t nxt_php_set_target(nxt_task_t *task, nxt_php_target_t *target,
516 nxt_php_set_target(nxt_task_t *task, nxt_php_target_t *target, in nxt_php_set_target() argument
550 target->root.length = nxt_strlen(p); in nxt_php_set_target()
551 target->root.start = p; in nxt_php_set_target()
553 nxt_php_str_trim_trail(&target->root, '/'); in nxt_php_set_target()
562 tmp = nxt_malloc(target->root.length + 1 + str.length + 1); in nxt_php_set_target()
569 p = nxt_cpymem(p, target->root.start, target->root.length); in nxt_php_set_target()
583 target->script_filename.length = nxt_strlen(p); in nxt_php_set_target()
584 target->script_filename.start = p; in nxt_php_set_target()
586 if (!nxt_str_start(&target->script_filename, in nxt_php_set_target()
587 target->root.start, target->root.length)) in nxt_php_set_target()
593 ret = nxt_php_dirname(&target->script_filename, in nxt_php_set_target()
594 &target->script_dirname); in nxt_php_set_target()
599 target->script_name.length = target->script_filename.length in nxt_php_set_target()
600 - target->root.length; in nxt_php_set_target()
601 target->script_name.start = target->script_filename.start in nxt_php_set_target()
602 + target->root.length; in nxt_php_set_target()
617 target->index.length = str.length; in nxt_php_set_target()
618 target->index.start = tmp; in nxt_php_set_target()
621 nxt_str_set(&target->index, "index.php"); in nxt_php_set_target()
926 nxt_php_target_t *target; in nxt_php_request_handler() local
931 target = &nxt_php_targets[r->app_target]; in nxt_php_request_handler()
936 ctx.root = &target->root; in nxt_php_request_handler()
937 ctx.index = &target->index; in nxt_php_request_handler()
939 if (target->script_filename.length == 0) { in nxt_php_request_handler()
944 ctx.script_filename = target->script_filename; in nxt_php_request_handler()
945 ctx.script_dirname = target->script_dirname; in nxt_php_request_handler()
946 ctx.script_name = target->script_name; in nxt_php_request_handler()
1047 SG(request_info).request_uri = nxt_unit_sptr_get(&r->target);
1361 nxt_php_set_sptr(req, "REQUEST_URI", &r->target, r->target_length,