Lines Matching refs:state
196 enum state enum
265 #define PARSING_HEADER(state) (state <= s_headers_almost_done && 0 == (parser->flags & F_TRAILING)) argument
332 enum state state = (enum state) parser->state; in php_http_parser_execute() local
348 if (state == s_body_identity_eof) { in php_http_parser_execute()
354 if (state == s_header_field) in php_http_parser_execute()
356 if (state == s_header_value) in php_http_parser_execute()
358 if (state == s_req_fragment) in php_http_parser_execute()
360 if (state == s_req_query_string) in php_http_parser_execute()
362 if (state == s_req_path) in php_http_parser_execute()
364 if (state == s_req_path || state == s_req_schema || state == s_req_schema_slash in php_http_parser_execute()
365 || state == s_req_schema_slash_slash || state == s_req_port in php_http_parser_execute()
366 || state == s_req_query_string_start || state == s_req_query_string in php_http_parser_execute()
367 || state == s_req_host in php_http_parser_execute()
368 || state == s_req_fragment_start || state == s_req_fragment) in php_http_parser_execute()
374 if (PARSING_HEADER(state)) { in php_http_parser_execute()
380 switch (state) { in php_http_parser_execute()
398 state = s_res_or_resp_H; in php_http_parser_execute()
409 state = s_res_HT; in php_http_parser_execute()
415 state = s_req_method; in php_http_parser_execute()
428 state = s_res_H; in php_http_parser_execute()
443 state = s_res_HT; in php_http_parser_execute()
448 state = s_res_HTT; in php_http_parser_execute()
453 state = s_res_HTTP; in php_http_parser_execute()
458 state = s_res_first_http_major; in php_http_parser_execute()
464 state = s_res_http_major; in php_http_parser_execute()
471 state = s_res_first_http_minor; in php_http_parser_execute()
488 state = s_res_http_minor; in php_http_parser_execute()
495 state = s_res_first_status_code; in php_http_parser_execute()
517 state = s_res_status_code; in php_http_parser_execute()
526 state = s_res_status; in php_http_parser_execute()
529 state = s_res_line_almost_done; in php_http_parser_execute()
532 state = s_header_field_start; in php_http_parser_execute()
551 state = s_res_line_almost_done; in php_http_parser_execute()
556 state = s_header_field_start; in php_http_parser_execute()
563 state = s_header_field_start; in php_http_parser_execute()
596 state = s_req_method; in php_http_parser_execute()
608 state = s_req_spaces_before_url; in php_http_parser_execute()
651 state = s_req_path; in php_http_parser_execute()
659 state = s_req_schema; in php_http_parser_execute()
673 state = s_req_schema_slash; in php_http_parser_execute()
676 state = s_req_host; in php_http_parser_execute()
679 state = s_req_host; in php_http_parser_execute()
688 state = s_req_schema_slash_slash; in php_http_parser_execute()
693 state = s_req_host; in php_http_parser_execute()
703 state = s_req_port; in php_http_parser_execute()
707 state = s_req_path; in php_http_parser_execute()
715 state = s_req_http_start; in php_http_parser_execute()
729 state = s_req_path; in php_http_parser_execute()
737 state = s_req_http_start; in php_http_parser_execute()
753 state = s_req_http_start; in php_http_parser_execute()
760 state = s_req_line_almost_done; in php_http_parser_execute()
767 state = s_header_field_start; in php_http_parser_execute()
771 state = s_req_query_string_start; in php_http_parser_execute()
775 state = s_req_fragment_start; in php_http_parser_execute()
787 state = s_req_query_string; in php_http_parser_execute()
796 state = s_req_http_start; in php_http_parser_execute()
802 state = s_req_line_almost_done; in php_http_parser_execute()
808 state = s_header_field_start; in php_http_parser_execute()
811 state = s_req_fragment_start; in php_http_parser_execute()
830 state = s_req_http_start; in php_http_parser_execute()
837 state = s_req_line_almost_done; in php_http_parser_execute()
844 state = s_header_field_start; in php_http_parser_execute()
848 state = s_req_fragment_start; in php_http_parser_execute()
860 state = s_req_fragment; in php_http_parser_execute()
867 state = s_req_http_start; in php_http_parser_execute()
873 state = s_req_line_almost_done; in php_http_parser_execute()
879 state = s_header_field_start; in php_http_parser_execute()
883 state = s_req_fragment; in php_http_parser_execute()
901 state = s_req_http_start; in php_http_parser_execute()
908 state = s_req_line_almost_done; in php_http_parser_execute()
915 state = s_header_field_start; in php_http_parser_execute()
929 state = s_req_http_H; in php_http_parser_execute()
940 state = s_req_http_HT; in php_http_parser_execute()
945 state = s_req_http_HTT; in php_http_parser_execute()
950 state = s_req_http_HTTP; in php_http_parser_execute()
955 state = s_req_first_http_major; in php_http_parser_execute()
962 state = s_req_http_major; in php_http_parser_execute()
969 state = s_req_first_http_minor; in php_http_parser_execute()
986 state = s_req_http_minor; in php_http_parser_execute()
993 state = s_req_line_almost_done; in php_http_parser_execute()
998 state = s_header_field_start; in php_http_parser_execute()
1017 state = s_header_field_start; in php_http_parser_execute()
1024 state = s_headers_almost_done; in php_http_parser_execute()
1031 state = s_headers_almost_done; in php_http_parser_execute()
1042 state = s_header_field; in php_http_parser_execute()
1178 state = s_header_value_start; in php_http_parser_execute()
1183 state = s_header_almost_done; in php_http_parser_execute()
1190 state = s_header_field_start; in php_http_parser_execute()
1203 state = s_header_value; in php_http_parser_execute()
1211 state = s_header_almost_done; in php_http_parser_execute()
1217 state = s_header_field_start; in php_http_parser_execute()
1266 state = s_header_almost_done; in php_http_parser_execute()
1330 state = s_header_value; in php_http_parser_execute()
1342 state = s_header_field_start; in php_http_parser_execute()
1368 state = NEW_MESSAGE(); in php_http_parser_execute()
1406 state = NEW_MESSAGE(); in php_http_parser_execute()
1409 state = s_chunk_size_start; in php_http_parser_execute()
1414 state = NEW_MESSAGE(); in php_http_parser_execute()
1417 state = s_body_identity; in php_http_parser_execute()
1422 state = NEW_MESSAGE(); in php_http_parser_execute()
1425 state = s_body_identity_eof; in php_http_parser_execute()
1441 state = NEW_MESSAGE(); in php_http_parser_execute()
1462 state = s_chunk_size; in php_http_parser_execute()
1471 state = s_chunk_size_almost_done; in php_http_parser_execute()
1479 state = s_chunk_parameters; in php_http_parser_execute()
1495 state = s_chunk_size_almost_done; in php_http_parser_execute()
1508 state = s_header_field_start; in php_http_parser_execute()
1510 state = s_chunk_data; in php_http_parser_execute()
1527 state = s_chunk_data_almost_done; in php_http_parser_execute()
1537 state = s_chunk_data_done; in php_http_parser_execute()
1543 state = s_chunk_size_start; in php_http_parser_execute()
1559 parser->state = state; in php_http_parser_execute()
1567 parser->state = s_dead; in php_http_parser_execute()
1603 …parser->state = (t == PHP_HTTP_REQUEST ? s_start_req : (t == PHP_HTTP_RESPONSE ? s_start_res : s_s… in php_http_parser_init()