/PHP-5.6/ext/standard/tests/http/ |
H A D | server.inc | 48 $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.6/sapi/cli/ |
H A D | php_http_parser.c | 394 parser->content_length = -1; in php_http_parser_execute() 423 parser->content_length = -1; in php_http_parser_execute() 572 parser->content_length = -1; in php_http_parser_execute() 1297 parser->content_length *= 10; in php_http_parser_execute() 1421 if (parser->content_length == 0) { in php_http_parser_execute() 1448 parser->content_length -= to_read; in php_http_parser_execute() 1471 parser->content_length = c; in php_http_parser_execute() 1495 parser->content_length *= 16; in php_http_parser_execute() 1496 parser->content_length += c; in php_http_parser_execute() 1516 if (parser->content_length == 0) { in php_http_parser_execute() [all …]
|
H A D | php_http_parser.h | 122 ssize_t content_length; member
|
/PHP-5.6/sapi/nsapi/ |
H A D | nsapi.c | 596 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.6/sapi/continuity/ |
H A D | capi.c | 204 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.6/sapi/fpm/fpm/ |
H A D | fpm_request.c | 97 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 D | fpm_scoreboard.h | 37 size_t content_length; /* used with POST only */ member
|
H A D | fpm_main.c | 503 size_t remaining = SG(request_info).content_length - SG(read_post_bytes); in sapi_cgi_read_post() 1080 SG(request_info).content_length = 0; 1089 …char *content_length = sapi_cgibin_getenv("CONTENT_LENGTH", sizeof("CONTENT_LENGTH") - 1 TSRMLS_CC… local 1426 SG(request_info).content_length = (content_length ? atol(content_length) : 0);
|
H A D | fpm_php.c | 192 return SG(request_info).content_length; in fpm_php_content_length()
|
/PHP-5.6/main/ |
H A D | rfc1867.h | 35 size_t content_length; member
|
H A D | rfc1867.c | 715 if (SG(post_max_size) > 0 && SG(request_info).content_length > SG(post_max_size)) { 716 …ength of %ld bytes exceeds the limit of %ld bytes", SG(request_info).content_length, SG(post_max_s… 781 event_start.content_length = SG(request_info).content_length;
|
H A D | SAPI.h | 84 long content_length; member
|
/PHP-5.6/sapi/phttpd/ |
H A D | phttpd.c | 213 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.6/sapi/apache2handler/ |
H A D | sapi_apache2.c | 473 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.6/sapi/apache2filter/ |
H A D | sapi_apache2.c | 399 char *content_length; in php_apache_request_ctor() local 418 content_length = (char *) apr_table_get(f->r->headers_in, "Content-Length"); in php_apache_request_ctor() 419 SG(request_info).content_length = (content_length ? atol(content_length) : 0); in php_apache_request_ctor()
|
/PHP-5.6/sapi/apache/ |
H A D | mod_php5.c | 523 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.6/ext/session/tests/ |
H A D | rfc1867.phpt | 87 [%u|b%"content_length"]=>
|
H A D | rfc1867_sid_cookie.phpt | 86 [%u|b%"content_length"]=>
|
H A D | rfc1867_sid_get.phpt | 84 [%u|b%"content_length"]=>
|
H A D | rfc1867_sid_get_2.phpt | 86 [%u|b%"content_length"]=>
|
H A D | rfc1867_sid_only_cookie.phpt | 86 [%u|b%"content_length"]=>
|
H A D | rfc1867_sid_post.phpt | 82 [%u|b%"content_length"]=>
|
H A D | rfc1867_inter.phpt | 90 [%u|b%"content_length"]=>
|
/PHP-5.6/sapi/aolserver/ |
H A D | aolserver.c | 455 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.6/sapi/cgi/ |
H A D | cgi_main.c | 516 count_bytes = MIN(count_bytes, SG(request_info).content_length - SG(read_post_bytes)); in sapi_cgi_read_post() 532 size_t remaining = SG(request_info).content_length - SG(read_post_bytes); in sapi_fcgi_read_post() 1166 SG(request_info).content_length = 0; 1175 char *content_length = CGI_GETENV("CONTENT_LENGTH"); local 1432 SG(request_info).content_length = (content_length ? atol(content_length) : 0);
|