Home
last modified time | relevance | path

Searched refs:content_length (Results 1 – 25 of 45) sorted by relevance

12

/PHP-5.5/ext/standard/tests/http/
H A Dserver.inc48 $content_length = 0;
64 $content_length = (int) $matches[1];
72 if ($content_length > 0) {
73 stream_copy_to_stream($sock, $output, $content_length);
/PHP-5.5/sapi/cli/
H A Dphp_http_parser.c393 parser->content_length = -1; in php_http_parser_execute()
422 parser->content_length = -1; in php_http_parser_execute()
571 parser->content_length = -1; in php_http_parser_execute()
1287 parser->content_length *= 10; in php_http_parser_execute()
1411 if (parser->content_length == 0) { in php_http_parser_execute()
1438 parser->content_length -= to_read; in php_http_parser_execute()
1461 parser->content_length = c; in php_http_parser_execute()
1485 parser->content_length *= 16; in php_http_parser_execute()
1486 parser->content_length += c; in php_http_parser_execute()
1506 if (parser->content_length == 0) { in php_http_parser_execute()
[all …]
H A Dphp_http_parser.h123 ssize_t content_length; member
/PHP-5.5/sapi/nsapi/
H A Dnsapi.c596 int length, content_length = 0; in sapi_nsapi_read_post() local
602 count_bytes = MIN(count_bytes, SG(request_info).content_length-rc->read_post_bytes); in sapi_nsapi_read_post()
603 content_length = SG(request_info).content_length; in sapi_nsapi_read_post()
605 if (content_length <= 0) { in sapi_nsapi_read_post()
618 content_length -= length; in sapi_nsapi_read_post()
625 while (content_length > 0 && bytes_read < count_bytes) { in sapi_nsapi_read_post()
628 if (content_length < bytes_to_read) { in sapi_nsapi_read_post()
629 bytes_to_read = content_length; in sapi_nsapi_read_post()
640 content_length -= length; in sapi_nsapi_read_post()
971 char *content_length = pblock_findval("content-length", rq->headers); in php5_execute() local
[all …]
/PHP-5.5/sapi/continuity/
H A Dcapi.c204 max_read = MIN(count_bytes, SG(request_info).content_length); in sapi_capi_read_post()
208 max_read = MIN(count_bytes, (SG(request_info).content_length - rc->read_post_bytes)); in sapi_capi_read_post()
419 char *content_length = lstFset_get(NSG(t->req_hdrs), "content-length"); in capi_request_ctor() local
426 SG(request_info).content_length = (content_length == NULL) ? 0 : strtoul(content_length, 0, 0); in capi_request_ctor()
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_request.c97 proc->content_length = 0; in fpm_request_reading_headers()
114 size_t content_length = fpm_php_content_length(TSRMLS_C); in fpm_request_info() local
144 proc->content_length = content_length; in fpm_request_info()
H A Dfpm_scoreboard.h37 size_t content_length; /* used with POST only */ member
H A Dfpm_main.c502 count_bytes = MIN(count_bytes, (uint) SG(request_info).content_length - SG(read_post_bytes)); in sapi_cgi_read_post()
1073 SG(request_info).content_length = 0;
1082 …char *content_length = sapi_cgibin_getenv("CONTENT_LENGTH", sizeof("CONTENT_LENGTH") - 1 TSRMLS_CC… local
1395 SG(request_info).content_length = (content_length ? atol(content_length) : 0);
H A Dfpm_php.c192 return SG(request_info).content_length; in fpm_php_content_length()
/PHP-5.5/main/
H A Drfc1867.h35 size_t content_length; member
H A Drfc1867.c709 if (SG(post_max_size) > 0 && SG(request_info).content_length > SG(post_max_size)) {
710 …ength of %ld bytes exceeds the limit of %ld bytes", SG(request_info).content_length, SG(post_max_s…
775 event_start.content_length = SG(request_info).content_length;
H A DSAPI.h84 long content_length; member
/PHP-5.5/sapi/phttpd/
H A Dphttpd.c213 SG(request_info).content_length = Ns_ConnContentLength(NSG(conn)); in php_phttpd_request_ctor()
230 NSG(data_avail) = SG(request_info).content_length; in php_phttpd_request_ctor()
/PHP-5.5/sapi/apache2handler/
H A Dsapi_apache2.c473 char *content_length; in php_apache_request_ctor() local
485 content_length = (char *) apr_table_get(r->headers_in, "Content-Length"); in php_apache_request_ctor()
486 SG(request_info).content_length = (content_length ? atol(content_length) : 0); in php_apache_request_ctor()
/PHP-5.5/sapi/apache2filter/
H A Dsapi_apache2.c400 char *content_length; in php_apache_request_ctor() local
421 content_length = (char *) apr_table_get(f->r->headers_in, "Content-Length"); in php_apache_request_ctor()
422 SG(request_info).content_length = (content_length ? atol(content_length) : 0); in php_apache_request_ctor()
/PHP-5.5/sapi/apache/
H A Dmod_php5.c523 char *content_length = (char *) table_get(r->subprocess_env, "CONTENT_LENGTH"); in init_request_info() local
532 SG(request_info).content_length = (content_length ? atol(content_length) : 0); in init_request_info()
/PHP-5.5/ext/session/tests/
H A Drfc1867_sid_only_cookie.phpt86 [%u|b%"content_length"]=>
H A Drfc1867_sid_post.phpt82 [%u|b%"content_length"]=>
H A Drfc1867.phpt87 [%u|b%"content_length"]=>
H A Drfc1867_inter.phpt90 [%u|b%"content_length"]=>
H A Drfc1867_sid_cookie.phpt86 [%u|b%"content_length"]=>
H A Drfc1867_sid_get.phpt84 [%u|b%"content_length"]=>
H A Drfc1867_sid_get_2.phpt86 [%u|b%"content_length"]=>
/PHP-5.5/sapi/aolserver/
H A Daolserver.c455 SG(request_info).content_length = Ns_ConnContentLength(NSG(conn)); in php_ns_request_ctor()
471 NSG(data_avail) = SG(request_info).content_length; in php_ns_request_ctor()
/PHP-5.5/sapi/cgi/
H A Dcgi_main.c511 count_bytes = MIN(count_bytes, (uint) SG(request_info).content_length - SG(read_post_bytes)); in sapi_cgi_read_post()
528 count_bytes = MIN(count_bytes, (uint) SG(request_info).content_length - SG(read_post_bytes)); in sapi_fcgi_read_post()
1158 SG(request_info).content_length = 0;
1167 char *content_length = CGI_GETENV("CONTENT_LENGTH"); local
1424 SG(request_info).content_length = (content_length ? atol(content_length) : 0);

Completed in 197 milliseconds

12