Lines Matching refs:vpath
124 char *vpath; member
681 sapi_cli_server_register_variable(track_vars_array, "SCRIPT_NAME", client->request.vpath); in sapi_cli_server_register_variables()
692 spprintf(&tmp, 0, "%s%s", client->request.vpath, client->request.path_info); in sapi_cli_server_register_variables()
696 sapi_cli_server_register_variable(track_vars_array, "PHP_SELF", client->request.vpath); in sapi_cli_server_register_variables()
1334 req->vpath = NULL; in php_cli_server_request_ctor()
1356 if (req->vpath) { in php_cli_server_request_dtor()
1357 pefree(req->vpath, 1); in php_cli_server_request_dtor()
1380 char *p = buf, *prev_path = NULL, *q, *vpath; in php_cli_server_request_translate_vpath() local
1386 vpath = p; in php_cli_server_request_translate_vpath()
1387 if (request->vpath_len > 0 && request->vpath[0] != '/') { in php_cli_server_request_translate_vpath()
1390 q = request->vpath + request->vpath_len; in php_cli_server_request_translate_vpath()
1391 while (q > request->vpath) { in php_cli_server_request_translate_vpath()
1397 memmove(p, request->vpath, request->vpath_len); in php_cli_server_request_translate_vpath()
1454 pefree(request->vpath, 1); in php_cli_server_request_translate_vpath()
1455 request->vpath = pestrndup(vpath, q - vpath, 1); in php_cli_server_request_translate_vpath()
1456 request->vpath_len = q - vpath; in php_cli_server_request_translate_vpath()
1460 pefree(request->vpath, 1); in php_cli_server_request_translate_vpath()
1461 request->vpath = pestrndup(vpath, q - vpath, 1); in php_cli_server_request_translate_vpath()
1462 request->vpath_len = q - vpath; in php_cli_server_request_translate_vpath()
1470 if (request->vpath[i] == '\\') { in php_cli_server_request_translate_vpath()
1471 request->vpath[i] = '/'; in php_cli_server_request_translate_vpath()
1479 static void normalize_vpath(char **retval, size_t *retval_len, const char *vpath, size_t vpath_len,… in normalize_vpath() argument
1488 decoded_vpath = pestrndup(vpath, vpath_len, persistent); in normalize_vpath()
1570 char *vpath; in php_cli_server_client_read_request_on_path() local
1572 if (UNEXPECTED(client->request.vpath != NULL)) { in php_cli_server_client_read_request_on_path()
1575 normalize_vpath(&vpath, &vpath_len, at, length, 1); in php_cli_server_client_read_request_on_path()
1576 client->request.vpath = vpath; in php_cli_server_client_read_request_on_path()
1743 const char *vpath = client->request.vpath, *end = vpath + client->request.vpath_len, *p = end; in php_cli_server_client_read_request_on_message_complete() local
1746 while (p > vpath) { in php_cli_server_client_read_request_on_message_complete()