Searched refs:content_length (Results 1 - 25 of 35) sorted by relevance

12

/PHP_TRUNK/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_TRUNK/sapi/fpm/fpm/
H A Dfpm_scoreboard.h37 size_t content_length; /* used with POST only */ member in struct:fpm_scoreboard_proc_s
H A Dfpm_log.c250 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.content_length);
H A Dfpm_request.c97 proc->content_length = 0;
113 size_t content_length = fpm_php_content_length(); local
143 proc->content_length = content_length;
H A Dfpm_status.c455 proc.content_length,
H A Dfpm_main.c456 size_t remaining = SG(request_info).content_length - SG(read_post_bytes);
1015 SG(request_info).content_length = 0;
1024 char *content_length = sapi_cgibin_getenv("CONTENT_LENGTH", sizeof("CONTENT_LENGTH") - 1); local
1337 SG(request_info).content_length = (content_length ? atol(content_length) : 0);
H A Dfpm_php.c191 return SG(request_info).content_length;
/PHP_TRUNK/sapi/cli/
H A Dphp_http_parser.h121 ssize_t content_length; member in struct:php_http_parser
H A Dphp_http_parser.c393 parser->content_length = -1;
422 parser->content_length = -1;
571 parser->content_length = -1;
1238 parser->content_length = ch - '0';
1287 parser->content_length *= 10;
1288 parser->content_length += ch - '0';
1411 if (parser->content_length == 0) {
1415 } else if (parser->content_length > 0) {
1436 to_read = MIN((size_t)(pe - p), (size_t)parser->content_length);
1440 parser->content_length
[all...]
/PHP_TRUNK/
H A Drun-tests.php1745 $content_length = strlen($post); variable
1749 $env['CONTENT_LENGTH'] = $content_length;
1760 $content_length = strlen($post); variable
1764 $env['CONTENT_LENGTH'] = $content_length;
1773 $content_length = strlen($post); variable
1777 $env['CONTENT_LENGTH'] = $content_length;
/PHP_TRUNK/ext/session/
H A Dphp_session.h112 size_t content_length; member in struct:_php_session_rfc1867_progress
/PHP_TRUNK/main/
H A DSAPI.h85 zend_long content_length; member in struct:__anon254
H A Drfc1867.h35 size_t content_length; member in struct:_multipart_event_start
/PHP_TRUNK/sapi/aolserver/
H A Daolserver.c455 SG(request_info).content_length = Ns_ConnContentLength(NSG(conn));
471 NSG(data_avail) = SG(request_info).content_length;
/PHP_TRUNK/sapi/apache/
H A Dmod_php7.c522 char *content_length = (char *) table_get(r->subprocess_env, "CONTENT_LENGTH"); local
531 SG(request_info).content_length = (content_length ? atol(content_length) : 0);
/PHP_TRUNK/sapi/apache2filter/
H A Dsapi_apache2.c397 char *content_length; local
416 content_length = (char *) apr_table_get(f->r->headers_in, "Content-Length");
417 SG(request_info).content_length = (content_length ? atol(content_length) : 0);
/PHP_TRUNK/sapi/apache2handler/
H A Dsapi_apache2.c476 char *content_length; local
488 content_length = (char *) apr_table_get(r->headers_in, "Content-Length");
489 if (content_length) {
490 ZEND_ATOL(SG(request_info).content_length, content_length);
492 SG(request_info).content_length = 0;
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php7.c574 char *content_length = (char *) table_get(r->subprocess_env, "CONTENT_LENGTH"); local
584 SG(request_info).content_length = (content_length ? atol(content_length) : 0);
/PHP_TRUNK/sapi/continuity/
H A Dcapi.c204 max_read = MIN(count_bytes, SG(request_info).content_length);
208 max_read = MIN(count_bytes, (SG(request_info).content_length - rc->read_post_bytes));
419 char *content_length = lstFset_get(NSG(t->req_hdrs), "content-length"); local
426 SG(request_info).content_length = (content_length == NULL) ? 0 : strtoul(content_length, 0, 0);
/PHP_TRUNK/sapi/nsapi/
H A Dnsapi.c595 int length, content_length = 0; local
601 count_bytes = MIN(count_bytes, SG(request_info).content_length-rc->read_post_bytes);
602 content_length = SG(request_info).content_length;
604 if (content_length <= 0) {
617 content_length -= length;
624 while (content_length > 0 && bytes_read < count_bytes) {
627 if (content_length < bytes_to_read) {
628 bytes_to_read = content_length;
639 content_length
970 char *content_length = pblock_findval("content-length", rq->headers); local
[all...]
/PHP_TRUNK/sapi/phttpd/
H A Dphttpd.c213 SG(request_info).content_length = Ns_ConnContentLength(NSG(conn));
230 NSG(data_avail) = SG(request_info).content_length;
/PHP_TRUNK/sapi/pi3web/
H A Dpi3web_sapi.c274 SG(request_info).content_length = lpCB->cbTotalBytes;
/PHP_TRUNK/sapi/thttpd/
H A Dthttpd.c461 SG(request_info).content_length = TG(hc)->contentlength == -1 ? 0
464 TG(unconsumed_length) = SG(request_info).content_length;
/PHP_TRUNK/sapi/webjames/
H A Dwebjames.c187 SG(request_info).content_length = WG(conn)->bodysize;
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c469 assert(SG(request_info).content_length >= SG(read_post_bytes));
471 remaining_bytes = (size_t)(SG(request_info).content_length - SG(read_post_bytes));
496 size_t remaining = SG(request_info).content_length - SG(read_post_bytes);
1123 SG(request_info).content_length = 0;
1132 char *content_length = CGI_GETENV("CONTENT_LENGTH"); local
1389 SG(request_info).content_length = (content_length ? atol(content_length) : 0);

Completed in 53 milliseconds

12