Lines Matching refs:ch

328   char c, ch;  in php_http_parser_execute()  local
372 ch = *p; in php_http_parser_execute()
390 if (ch == CR || ch == LF) in php_http_parser_execute()
397 if (ch == 'H') in php_http_parser_execute()
407 if (ch == 'T') { in php_http_parser_execute()
411 if (ch != 'E') goto error; in php_http_parser_execute()
426 switch (ch) { in php_http_parser_execute()
442 STRICT_CHECK(ch != 'T'); in php_http_parser_execute()
447 STRICT_CHECK(ch != 'T'); in php_http_parser_execute()
452 STRICT_CHECK(ch != 'P'); in php_http_parser_execute()
457 STRICT_CHECK(ch != '/'); in php_http_parser_execute()
462 if (ch < '1' || ch > '9') goto error; in php_http_parser_execute()
463 parser->http_major = ch - '0'; in php_http_parser_execute()
470 if (ch == '.') { in php_http_parser_execute()
475 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
478 parser->http_major += ch - '0'; in php_http_parser_execute()
486 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
487 parser->http_minor = ch - '0'; in php_http_parser_execute()
494 if (ch == ' ') { in php_http_parser_execute()
499 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
502 parser->http_minor += ch - '0'; in php_http_parser_execute()
510 if (ch < '0' || ch > '9') { in php_http_parser_execute()
511 if (ch == ' ') { in php_http_parser_execute()
516 parser->status_code = ch - '0'; in php_http_parser_execute()
523 if (ch < '0' || ch > '9') { in php_http_parser_execute()
524 switch (ch) { in php_http_parser_execute()
541 parser->status_code += ch - '0'; in php_http_parser_execute()
550 if (ch == CR) { in php_http_parser_execute()
555 if (ch == LF) { in php_http_parser_execute()
562 STRICT_CHECK(ch != LF); in php_http_parser_execute()
568 if (ch == CR || ch == LF) in php_http_parser_execute()
575 if (ch < 'A' || 'Z' < ch) goto error; in php_http_parser_execute()
580 switch (ch) { in php_http_parser_execute()
603 if (ch == '\0') in php_http_parser_execute()
607 if (ch == ' ' && (matcher[index] == '\0' || parser->method == PHP_HTTP_NOT_IMPLEMENTED)) { in php_http_parser_execute()
609 } else if (ch == matcher[index]) { in php_http_parser_execute()
612 if (index == 1 && ch == 'H') { in php_http_parser_execute()
614 } else if (index == 2 && ch == 'P') { in php_http_parser_execute()
618 if (index == 1 && ch == 'O') { in php_http_parser_execute()
620 } else if (index == 1 && ch == 'E') { in php_http_parser_execute()
622 } else if (index == 1 && ch == '-') { in php_http_parser_execute()
624 } else if (index == 2 && ch == 'A') { in php_http_parser_execute()
627 } else if (index == 1 && parser->method == PHP_HTTP_POST && ch == 'R') { in php_http_parser_execute()
629 } else if (index == 1 && parser->method == PHP_HTTP_POST && ch == 'U') { in php_http_parser_execute()
631 } else if (index == 1 && parser->method == PHP_HTTP_POST && ch == 'A') { in php_http_parser_execute()
633 } else if (index == 2 && parser->method == PHP_HTTP_UNLOCK && ch == 'S') { in php_http_parser_execute()
635 } else if (index == 4 && parser->method == PHP_HTTP_PROPFIND && ch == 'P') { in php_http_parser_execute()
646 if (ch == ' ') break; in php_http_parser_execute()
648 if (ch == '/' || ch == '*') { in php_http_parser_execute()
655 c = LOWER(ch); in php_http_parser_execute()
668 c = LOWER(ch); in php_http_parser_execute()
672 if (ch == ':') { in php_http_parser_execute()
675 } else if (ch == '.') { in php_http_parser_execute()
678 } else if ('0' <= ch && ch <= '9') { in php_http_parser_execute()
687 STRICT_CHECK(ch != '/'); in php_http_parser_execute()
692 STRICT_CHECK(ch != '/'); in php_http_parser_execute()
698 c = LOWER(ch); in php_http_parser_execute()
700 if ((ch >= '0' && ch <= '9') || ch == '.' || ch == '-') break; in php_http_parser_execute()
701 switch (ch) { in php_http_parser_execute()
725 if (ch >= '0' && ch <= '9') break; in php_http_parser_execute()
726 switch (ch) { in php_http_parser_execute()
747 if (normal_url_char[(unsigned char)ch]) break; in php_http_parser_execute()
749 switch (ch) { in php_http_parser_execute()
785 if (normal_url_char[(unsigned char)ch]) { in php_http_parser_execute()
791 switch (ch) { in php_http_parser_execute()
821 if (normal_url_char[(unsigned char)ch]) break; in php_http_parser_execute()
823 switch (ch) { in php_http_parser_execute()
858 if (normal_url_char[(unsigned char)ch]) { in php_http_parser_execute()
864 switch (ch) { in php_http_parser_execute()
895 if (normal_url_char[(unsigned char)ch]) break; in php_http_parser_execute()
897 switch (ch) { in php_http_parser_execute()
927 switch (ch) { in php_http_parser_execute()
939 STRICT_CHECK(ch != 'T'); in php_http_parser_execute()
944 STRICT_CHECK(ch != 'T'); in php_http_parser_execute()
949 STRICT_CHECK(ch != 'P'); in php_http_parser_execute()
954 STRICT_CHECK(ch != '/'); in php_http_parser_execute()
960 if (ch < '1' || ch > '9') goto error; in php_http_parser_execute()
961 parser->http_major = ch - '0'; in php_http_parser_execute()
968 if (ch == '.') { in php_http_parser_execute()
973 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
976 parser->http_major += ch - '0'; in php_http_parser_execute()
984 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
985 parser->http_minor = ch - '0'; in php_http_parser_execute()
992 if (ch == CR) { in php_http_parser_execute()
997 if (ch == LF) { in php_http_parser_execute()
1004 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
1007 parser->http_minor += ch - '0'; in php_http_parser_execute()
1016 if (ch != LF) goto error; in php_http_parser_execute()
1023 if (ch == CR) { in php_http_parser_execute()
1028 if (ch == LF) { in php_http_parser_execute()
1035 c = TOKEN(ch); in php_http_parser_execute()
1070 c = TOKEN(ch); in php_http_parser_execute()
1166 if (ch != ' ') header_state = h_general; in php_http_parser_execute()
1176 if (ch == ':') { in php_http_parser_execute()
1182 if (ch == CR) { in php_http_parser_execute()
1188 if (ch == LF) { in php_http_parser_execute()
1199 if (ch == ' ') break; in php_http_parser_execute()
1206 c = LOWER(ch); in php_http_parser_execute()
1208 if (ch == CR) { in php_http_parser_execute()
1215 if (ch == LF) { in php_http_parser_execute()
1237 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
1238 parser->content_length = ch - '0'; in php_http_parser_execute()
1262 c = LOWER(ch); in php_http_parser_execute()
1264 if (ch == CR) { in php_http_parser_execute()
1270 if (ch == LF) { in php_http_parser_execute()
1285 if (ch == ' ') break; in php_http_parser_execute()
1286 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
1288 parser->content_length += ch - '0'; in php_http_parser_execute()
1326 if (ch != ' ') header_state = h_general; in php_http_parser_execute()
1340 STRICT_CHECK(ch != LF); in php_http_parser_execute()
1363 STRICT_CHECK(ch != LF); in php_http_parser_execute()
1459 c = unhex[(unsigned char)ch]; in php_http_parser_execute()
1470 if (ch == CR) { in php_http_parser_execute()
1475 c = unhex[(unsigned char)ch]; in php_http_parser_execute()
1478 if (ch == ';' || ch == ' ') { in php_http_parser_execute()
1494 if (ch == CR) { in php_http_parser_execute()
1504 STRICT_CHECK(ch != LF); in php_http_parser_execute()
1536 STRICT_CHECK(ch != CR); in php_http_parser_execute()
1542 STRICT_CHECK(ch != LF); in php_http_parser_execute()