Home
last modified time | relevance | path

Searched refs:read_bytes (Results 1 – 9 of 9) sorted by relevance

/PHP-5.3/ext/standard/
H A Dphp_fopen_wrapper.c75 size_t read_bytes = 0; in php_stream_input_read() local
79 read_bytes = SG(request_info).raw_post_data_length - *position; in php_stream_input_read()
80 if (read_bytes <= count) { in php_stream_input_read()
83 read_bytes = count; in php_stream_input_read()
85 if (read_bytes) { in php_stream_input_read()
89 read_bytes = sapi_module.read_post(buf, count TSRMLS_CC); in php_stream_input_read()
90 if (read_bytes <= 0) { in php_stream_input_read()
92 read_bytes = 0; in php_stream_input_read()
95 SG(read_post_bytes) += read_bytes; in php_stream_input_read()
101 *position += read_bytes; in php_stream_input_read()
[all …]
/PHP-5.3/sapi/thttpd/
H A Dthttpd.c250 size_t read_bytes = 0; in sapi_thttpd_read_post() local
253 read_bytes = MIN(TG(unconsumed_length), count_bytes); in sapi_thttpd_read_post()
254 memcpy(buffer, TG(hc)->read_buf + TG(hc)->checked_idx, read_bytes); in sapi_thttpd_read_post()
255 TG(unconsumed_length) -= read_bytes; in sapi_thttpd_read_post()
256 CONSUME_BYTES(read_bytes); in sapi_thttpd_read_post()
259 return read_bytes; in sapi_thttpd_read_post()
/PHP-5.3/main/
H A DSAPI.c197 int read_bytes; in SAPI_POST_READER_FUNC() local
208read_bytes = sapi_module.read_post(SG(request_info).post_data+SG(read_post_bytes), SAPI_POST_BLOCK… in SAPI_POST_READER_FUNC()
209 if (read_bytes<=0) { in SAPI_POST_READER_FUNC()
212 SG(read_post_bytes) += read_bytes; in SAPI_POST_READER_FUNC()
217 if (read_bytes < SAPI_POST_BLOCK_SIZE) { in SAPI_POST_READER_FUNC()
421 int read_bytes; in sapi_deactivate() local
423 while((read_bytes = sapi_module.read_post(dummy, sizeof(dummy)-1 TSRMLS_CC)) > 0) { in sapi_deactivate()
424 SG(read_post_bytes) += read_bytes; in sapi_deactivate()
H A Drfc1867.c741 int total_bytes=0, read_bytes=0; in multipart_buffer_read_body() local
743 while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL TSRMLS_CC))) { in multipart_buffer_read_body()
744 out = erealloc(out, total_bytes + read_bytes + 1); in multipart_buffer_read_body()
745 memcpy(out + total_bytes, buf, read_bytes); in multipart_buffer_read_body()
746 total_bytes += read_bytes; in multipart_buffer_read_body()
/PHP-5.3/sapi/fpm/fpm/
H A Dfpm_main.c495 uint read_bytes = 0; in sapi_cgi_read_post() local
499 while (read_bytes < count_bytes) { in sapi_cgi_read_post()
518 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
520 tmp_read_bytes = read(request_body_fd, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
525 read_bytes += tmp_read_bytes; in sapi_cgi_read_post()
527 return read_bytes; in sapi_cgi_read_post()
/PHP-5.3/sapi/cgi/
H A Dcgi_main.c492 uint read_bytes = 0; in sapi_cgi_read_post() local
496 while (read_bytes < count_bytes) { in sapi_cgi_read_post()
499 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
501 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
506 read_bytes += tmp_read_bytes; in sapi_cgi_read_post()
508 return read_bytes; in sapi_cgi_read_post()
/PHP-5.3/ext/mcrypt/
H A Dmcrypt.c1403 size_t read_bytes = 0; in PHP_FUNCTION()
1411 while (read_bytes < size) { in PHP_FUNCTION()
1412 n = read(fd, iv + read_bytes, size - read_bytes); in PHP_FUNCTION()
1416 read_bytes += n; in PHP_FUNCTION()
1418 n = read_bytes; in PHP_FUNCTION()
/PHP-5.3/sapi/apache/
H A Dmod_php5.c127 int total_read_bytes=0, read_bytes; in sapi_apache_read_post() local
144 read_bytes = get_client_block(r, buffer+total_read_bytes, count_bytes-total_read_bytes); in sapi_apache_read_post()
146 if (read_bytes<=0) { in sapi_apache_read_post()
149 total_read_bytes += read_bytes; in sapi_apache_read_post()
/PHP-5.3/sapi/apache_hooks/
H A Dmod_php5.c272 uint total_read_bytes=0, read_bytes; in sapi_apache_read_post() local
289 read_bytes = get_client_block(r, buffer+total_read_bytes, count_bytes-total_read_bytes); in sapi_apache_read_post()
291 if (read_bytes<=0) { in sapi_apache_read_post()
294 total_read_bytes += read_bytes; in sapi_apache_read_post()

Completed in 47 milliseconds