Lines Matching refs:start

542     p = nxt_cpymem(p, str.start, str.length);  in nxt_php_set_target()
554 target->root.start = p; in nxt_php_set_target()
572 p = nxt_cpymem(p, target->root.start, target->root.length); in nxt_php_set_target()
575 p = nxt_cpymem(p, str.start, str.length); in nxt_php_set_target()
587 target->script_filename.start = p; in nxt_php_set_target()
590 target->root.start, target->root.length)) in nxt_php_set_target()
604 target->script_name.start = target->script_filename.start in nxt_php_set_target()
618 nxt_memcpy(tmp, str.start, str.length); in nxt_php_set_target()
621 target->index.start = tmp; in nxt_php_set_target()
636 u_char *p, *start; in nxt_php_set_ini_path() local
638 if (ini_path->start[0] == '/' || workdir == NULL) { in nxt_php_set_ini_path()
644 start = p; in nxt_php_set_ini_path()
654 start = p; in nxt_php_set_ini_path()
663 p = nxt_cpymem(p, ini_path->start, ini_path->length); in nxt_php_set_ini_path()
666 nxt_php_sapi_module.php_ini_path_override = (char *) start; in nxt_php_set_ini_path()
732 zs = zend_string_init((char *) value->start, value->length, 1); in nxt_php_alter_option()
768 nxt_memcpy(cstr, value->start, value->length); in nxt_php_alter_option()
804 nxt_memcpy(p, str->start, str->length); in nxt_php_disable_functions()
819 char c, *p, *start; in nxt_php_disable() local
832 nxt_memcpy(p, value->start, value->length); in nxt_php_disable()
835 start = p; in nxt_php_disable()
842 if (p != start) { in nxt_php_disable()
846 if (disable(start, p - start) in nxt_php_disable()
848 if (disable(start, p - start TSRMLS_CC) in nxt_php_disable()
854 start, type); in nxt_php_disable()
858 start = p + 1; in nxt_php_disable()
872 if (file->length == 0 || file->start[0] != '/') { in nxt_php_dirname()
880 while (file->start[length - 1] != '/') { in nxt_php_dirname()
885 dir->start = nxt_malloc(length + 1); in nxt_php_dirname()
886 if (nxt_slow_path(dir->start == NULL)) { in nxt_php_dirname()
890 nxt_memcpy(dir->start, file->start, length); in nxt_php_dirname()
892 dir->start[length] = '\0'; in nxt_php_dirname()
901 while (str->length > 0 && str->start[str->length - 1] == t) { in nxt_php_str_trim_trail()
905 str->start[str->length] = '\0'; in nxt_php_str_trim_trail()
912 while (str->length > 0 && str->start[0] == t) { in nxt_php_str_trim_lead()
914 str->start++; in nxt_php_str_trim_lead()
1024 path.start = nxt_unit_sptr_get(&r->path); in nxt_php_dynamic_request()
1028 ctx->path_info.start = (u_char *) strstr((char *) path.start, ".php/"); in nxt_php_dynamic_request()
1029 if (ctx->path_info.start != NULL) { in nxt_php_dynamic_request()
1030 ctx->path_info.start += 4; in nxt_php_dynamic_request()
1031 path.length = ctx->path_info.start - path.start; in nxt_php_dynamic_request()
1035 } else if (path.start[path.length - 1] == '/') { in nxt_php_dynamic_request()
1039 || memcmp(path.start + (path.length - 4), ".php", 4) != 0) in nxt_php_dynamic_request()
1053 p = nxt_cpymem(tpath, ctx->root->start, ctx->root->length); in nxt_php_dynamic_request()
1054 p = nxt_cpymem(p, path.start, path.length); in nxt_php_dynamic_request()
1078 ctx->script_filename.start = p; in nxt_php_dynamic_request()
1081 ctx->script_name.start = p + ctx->root->length; in nxt_php_dynamic_request()
1083 p = nxt_cpymem(p, ctx->root->start, ctx->root->length); in nxt_php_dynamic_request()
1084 p = nxt_cpymem(p, path.start, path.length); in nxt_php_dynamic_request()
1087 p = nxt_cpymem(p, script_name.start, script_name.length); in nxt_php_dynamic_request()
1097 nxt_free(ctx->script_filename.start); in nxt_php_dynamic_request()
1104 nxt_free(ctx->script_filename.start); in nxt_php_dynamic_request()
1105 nxt_free(ctx->script_dirname.start); in nxt_php_dynamic_request()
1121 ctx->script_filename.start);
1178 nxt_php_vcwd_chdir(ctx->req, ctx->script_dirname.start);
1185 file_handle.filename = zend_string_init((char *) ctx->script_filename.start,
1189 file_handle.filename = (char *) ctx->script_filename.start;
1385 (char *) nxt_server.start,
1504 nxt_php_set_cstr(req, name, (char *) s->start, s->length,
1514 return zend_hash_str_find_ptr(ht, (const char *) str->start, str->length);
1530 nxt_memcpy(buf, str->start, str->length);