Lines Matching refs:ch

261   char ch;  in php_http_parser_execute()  local
306 ch = *p; in php_http_parser_execute()
324 if (ch == CR || ch == LF) in php_http_parser_execute()
331 if (ch == 'H') in php_http_parser_execute()
341 if (ch == 'T') { in php_http_parser_execute()
345 if (ch != 'E') goto error; in php_http_parser_execute()
360 switch (ch) { in php_http_parser_execute()
376 STRICT_CHECK(ch != 'T'); in php_http_parser_execute()
381 STRICT_CHECK(ch != 'T'); in php_http_parser_execute()
386 STRICT_CHECK(ch != 'P'); in php_http_parser_execute()
391 STRICT_CHECK(ch != '/'); in php_http_parser_execute()
396 if (ch < '1' || ch > '9') goto error; in php_http_parser_execute()
397 parser->http_major = ch - '0'; in php_http_parser_execute()
404 if (ch == '.') { in php_http_parser_execute()
409 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
412 parser->http_major += ch - '0'; in php_http_parser_execute()
420 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
421 parser->http_minor = ch - '0'; in php_http_parser_execute()
428 if (ch == ' ') { in php_http_parser_execute()
433 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
436 parser->http_minor += ch - '0'; in php_http_parser_execute()
444 if (ch < '0' || ch > '9') { in php_http_parser_execute()
445 if (ch == ' ') { in php_http_parser_execute()
450 parser->status_code = ch - '0'; in php_http_parser_execute()
457 if (ch < '0' || ch > '9') { in php_http_parser_execute()
458 switch (ch) { in php_http_parser_execute()
475 parser->status_code += ch - '0'; in php_http_parser_execute()
484 if (ch == CR) { in php_http_parser_execute()
489 if (ch == LF) { in php_http_parser_execute()
496 STRICT_CHECK(ch != LF); in php_http_parser_execute()
502 if (ch == CR || ch == LF) in php_http_parser_execute()
509 if (ch < 'A' || 'Z' < ch) goto error; in php_http_parser_execute()
514 switch (ch) { in php_http_parser_execute()
536 if (ch == '\0') in php_http_parser_execute()
540 if (ch == ' ') { in php_http_parser_execute()
545 } else if (parser->method == PHP_HTTP_NOT_IMPLEMENTED || ch == matcher[index]) { in php_http_parser_execute()
548 if (index == 1 && ch == 'H') { in php_http_parser_execute()
550 } else if (index == 2 && ch == 'P') { in php_http_parser_execute()
556 if (index == 1 && ch == 'O') { in php_http_parser_execute()
558 } else if (index == 3 && ch == 'A') { in php_http_parser_execute()
560 } else if (index == 1 && ch == 'E') { in php_http_parser_execute()
562 } else if (index == 1 && ch == '-') { in php_http_parser_execute()
564 } else if (index == 2 && ch == 'A') { in php_http_parser_execute()
569 } else if (index == 1 && parser->method == PHP_HTTP_POST && ch == 'R') { in php_http_parser_execute()
571 } else if (index == 1 && parser->method == PHP_HTTP_POST && ch == 'U') { in php_http_parser_execute()
573 } else if (index == 1 && parser->method == PHP_HTTP_POST && ch == 'A') { in php_http_parser_execute()
575 } else if (index == 1 && parser->method == PHP_HTTP_SUBSCRIBE && ch == 'E') { in php_http_parser_execute()
577 } else if (index == 2 && parser->method == PHP_HTTP_UNLOCK && ch == 'S') { in php_http_parser_execute()
579 } else if (index == 4 && parser->method == PHP_HTTP_PROPFIND && ch == 'P') { in php_http_parser_execute()
590 if (ch == ' ') break; in php_http_parser_execute()
592 if (ch == '/' || ch == '*') { in php_http_parser_execute()
599 c = LOWER(ch); in php_http_parser_execute()
612 c = LOWER(ch); in php_http_parser_execute()
616 if (ch == ':') { in php_http_parser_execute()
619 } else if (ch == '.') { in php_http_parser_execute()
622 } else if ('0' <= ch && ch <= '9') { in php_http_parser_execute()
631 STRICT_CHECK(ch != '/'); in php_http_parser_execute()
636 STRICT_CHECK(ch != '/'); in php_http_parser_execute()
642 c = LOWER(ch); in php_http_parser_execute()
644 if ((ch >= '0' && ch <= '9') || ch == '.' || ch == '-') break; in php_http_parser_execute()
645 switch (ch) { in php_http_parser_execute()
669 if (ch >= '0' && ch <= '9') break; in php_http_parser_execute()
670 switch (ch) { in php_http_parser_execute()
691 if (normal_url_char[(unsigned char)ch]) break; in php_http_parser_execute()
693 switch (ch) { in php_http_parser_execute()
729 if (normal_url_char[(unsigned char)ch]) { in php_http_parser_execute()
735 switch (ch) { in php_http_parser_execute()
765 if (normal_url_char[(unsigned char)ch]) break; in php_http_parser_execute()
767 switch (ch) { in php_http_parser_execute()
802 if (normal_url_char[(unsigned char)ch]) { in php_http_parser_execute()
808 switch (ch) { in php_http_parser_execute()
839 if (normal_url_char[(unsigned char)ch]) break; in php_http_parser_execute()
841 switch (ch) { in php_http_parser_execute()
871 switch (ch) { in php_http_parser_execute()
883 STRICT_CHECK(ch != 'T'); in php_http_parser_execute()
888 STRICT_CHECK(ch != 'T'); in php_http_parser_execute()
893 STRICT_CHECK(ch != 'P'); in php_http_parser_execute()
898 STRICT_CHECK(ch != '/'); in php_http_parser_execute()
904 if (ch < '1' || ch > '9') goto error; in php_http_parser_execute()
905 parser->http_major = ch - '0'; in php_http_parser_execute()
912 if (ch == '.') { in php_http_parser_execute()
917 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
920 parser->http_major += ch - '0'; in php_http_parser_execute()
928 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
929 parser->http_minor = ch - '0'; in php_http_parser_execute()
936 if (ch == CR) { in php_http_parser_execute()
941 if (ch == LF) { in php_http_parser_execute()
948 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
951 parser->http_minor += ch - '0'; in php_http_parser_execute()
960 if (ch != LF) goto error; in php_http_parser_execute()
967 if (ch == CR) { in php_http_parser_execute()
972 if (ch == LF) { in php_http_parser_execute()
979 c = TOKEN(ch); in php_http_parser_execute()
1014 c = TOKEN(ch); in php_http_parser_execute()
1110 if (ch != ' ') header_state = h_general; in php_http_parser_execute()
1120 if (ch == ':') { in php_http_parser_execute()
1126 if (ch == CR) { in php_http_parser_execute()
1132 if (ch == LF) { in php_http_parser_execute()
1143 if (ch == ' ') break; in php_http_parser_execute()
1150 c = LOWER(ch); in php_http_parser_execute()
1152 if (ch == CR) { in php_http_parser_execute()
1159 if (ch == LF) { in php_http_parser_execute()
1181 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
1182 parser->content_length = ch - '0'; in php_http_parser_execute()
1206 c = LOWER(ch); in php_http_parser_execute()
1208 if (ch == CR) { in php_http_parser_execute()
1214 if (ch == LF) { in php_http_parser_execute()
1229 if (ch == ' ') break; in php_http_parser_execute()
1230 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
1232 parser->content_length += ch - '0'; in php_http_parser_execute()
1270 if (ch != ' ') header_state = h_general; in php_http_parser_execute()
1284 STRICT_CHECK(ch != LF); in php_http_parser_execute()
1307 STRICT_CHECK(ch != LF); in php_http_parser_execute()
1410 c = unhex[(unsigned char)ch]; in php_http_parser_execute()
1421 if (ch == CR) { in php_http_parser_execute()
1426 c = unhex[(unsigned char)ch]; in php_http_parser_execute()
1429 if (ch == ';' || ch == ' ') { in php_http_parser_execute()
1445 if (ch == CR) { in php_http_parser_execute()
1455 STRICT_CHECK(ch != LF); in php_http_parser_execute()
1488 STRICT_CHECK(ch != CR); in php_http_parser_execute()
1494 STRICT_CHECK(ch != LF); in php_http_parser_execute()