Lines Matching refs:document_root
191 char *document_root; member
640 …sapi_cli_server_register_variable(track_vars_array, "DOCUMENT_ROOT", client->server->document_root… in sapi_cli_server_register_variables()
1375 …_request_translate_vpath(php_cli_server_request *request, const char *document_root, size_t docume… in php_cli_server_request_translate_vpath() argument
1384 memmove(p, document_root, document_root_len); in php_cli_server_request_translate_vpath()
1741 …php_cli_server_request_translate_vpath(&client->request, client->server->document_root, client->se… in php_cli_server_client_read_request_on_message_complete()
2273 if (server->document_root) { in php_cli_server_dtor()
2274 pefree(server->document_root, 1); in php_cli_server_dtor()
2417 static int php_cli_server_ctor(php_cli_server *server, const char *addr, const char *document_root,… in php_cli_server_ctor() argument
2469 size_t document_root_len = strlen(document_root); in php_cli_server_ctor()
2470 _document_root = pestrndup(document_root, document_root_len, 1); in php_cli_server_ctor()
2475 server->document_root = _document_root; in php_cli_server_ctor()
2689 const char *document_root = NULL; in do_cli_server() local
2704 document_root = php_optarg; in do_cli_server()
2718 document_root = document_root_tmp; in do_cli_server()
2729 if (document_root) { in do_cli_server()
2732 if (php_sys_stat(document_root, &sb)) { in do_cli_server()
2733 fprintf(stderr, "Directory %s does not exist.\n", document_root); in do_cli_server()
2737 fprintf(stderr, "%s is not a directory.\n", document_root); in do_cli_server()
2740 if (VCWD_REALPATH(document_root, document_root_buf)) { in do_cli_server()
2741 document_root = document_root_buf; in do_cli_server()
2751 document_root = ret ? document_root_buf: "."; in do_cli_server()
2758 if (FAILURE == php_cli_server_ctor(&server, server_bind_address, document_root, router)) { in do_cli_server()