Lines Matching refs:req
1393 static void php_cli_server_request_ctor(php_cli_server_request *req) /* {{{ */ in php_cli_server_request_ctor() argument
1395 req->protocol_version = 0; in php_cli_server_request_ctor()
1396 req->request_uri = NULL; in php_cli_server_request_ctor()
1397 req->vpath = NULL; in php_cli_server_request_ctor()
1398 req->vpath_len = 0; in php_cli_server_request_ctor()
1399 req->path_translated = NULL; in php_cli_server_request_ctor()
1400 req->path_translated_len = 0; in php_cli_server_request_ctor()
1401 req->path_info = NULL; in php_cli_server_request_ctor()
1402 req->path_info_len = 0; in php_cli_server_request_ctor()
1403 req->query_string = NULL; in php_cli_server_request_ctor()
1404 req->query_string_len = 0; in php_cli_server_request_ctor()
1405 zend_hash_init(&req->headers, 0, NULL, cli_header_value_dtor, 1); in php_cli_server_request_ctor()
1407 GC_MAKE_PERSISTENT_LOCAL(&req->headers); in php_cli_server_request_ctor()
1408 zend_hash_init(&req->headers_original_case, 0, NULL, NULL, 1); in php_cli_server_request_ctor()
1409 GC_MAKE_PERSISTENT_LOCAL(&req->headers_original_case); in php_cli_server_request_ctor()
1410 req->content = NULL; in php_cli_server_request_ctor()
1411 req->content_len = 0; in php_cli_server_request_ctor()
1412 req->ext = NULL; in php_cli_server_request_ctor()
1413 req->ext_len = 0; in php_cli_server_request_ctor()
1416 static void php_cli_server_request_dtor(php_cli_server_request *req) /* {{{ */ in php_cli_server_request_dtor() argument
1418 if (req->request_uri) { in php_cli_server_request_dtor()
1419 zend_string_release_ex(req->request_uri, /* persistent */ true); in php_cli_server_request_dtor()
1421 if (req->vpath) { in php_cli_server_request_dtor()
1422 pefree(req->vpath, 1); in php_cli_server_request_dtor()
1424 if (req->path_translated) { in php_cli_server_request_dtor()
1425 pefree(req->path_translated, 1); in php_cli_server_request_dtor()
1427 if (req->path_info) { in php_cli_server_request_dtor()
1428 pefree(req->path_info, 1); in php_cli_server_request_dtor()
1430 if (req->query_string) { in php_cli_server_request_dtor()
1431 pefree(req->query_string, 1); in php_cli_server_request_dtor()
1433 zend_hash_destroy(&req->headers); in php_cli_server_request_dtor()
1434 zend_hash_destroy(&req->headers_original_case); in php_cli_server_request_dtor()
1435 if (req->content) { in php_cli_server_request_dtor()
1436 pefree(req->content, 1); in php_cli_server_request_dtor()