Searched refs:read_bytes (Results 1 – 9 of 9) sorted by relevance
/PHP-5.4/ext/standard/ |
H A D | php_fopen_wrapper.c | 75 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.4/sapi/thttpd/ |
H A D | thttpd.c | 250 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.4/main/ |
H A D | SAPI.c | 262 int read_bytes; in SAPI_POST_READER_FUNC() local 273 …read_bytes = sapi_module.read_post(SG(request_info).post_data+SG(read_post_bytes), SAPI_POST_BLOCK… in SAPI_POST_READER_FUNC() 274 if (read_bytes<=0) { in SAPI_POST_READER_FUNC() 277 SG(read_post_bytes) += read_bytes; in SAPI_POST_READER_FUNC() 282 if (read_bytes < SAPI_POST_BLOCK_SIZE) { in SAPI_POST_READER_FUNC() 510 int read_bytes; in sapi_deactivate() local 512 while((read_bytes = sapi_module.read_post(dummy, sizeof(dummy)-1 TSRMLS_CC)) > 0) { in sapi_deactivate() 513 SG(read_post_bytes) += read_bytes; in sapi_deactivate()
|
H A D | rfc1867.c | 656 int total_bytes=0, read_bytes=0; in multipart_buffer_read_body() local 658 while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL TSRMLS_CC))) { in multipart_buffer_read_body() 659 out = erealloc(out, total_bytes + read_bytes + 1); in multipart_buffer_read_body() 660 memcpy(out + total_bytes, buf, read_bytes); in multipart_buffer_read_body() 661 total_bytes += read_bytes; in multipart_buffer_read_body()
|
/PHP-5.4/sapi/cgi/ |
H A D | cgi_main.c | 508 uint read_bytes = 0; in sapi_cgi_read_post() local 512 while (read_bytes < count_bytes) { in sapi_cgi_read_post() 513 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post() 517 read_bytes += tmp_read_bytes; in sapi_cgi_read_post() 519 return read_bytes; in sapi_cgi_read_post() 524 uint read_bytes = 0; in sapi_fcgi_read_post() local 529 while (read_bytes < count_bytes) { in sapi_fcgi_read_post() 530 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_fcgi_read_post() 534 read_bytes += tmp_read_bytes; in sapi_fcgi_read_post() 536 return read_bytes; in sapi_fcgi_read_post()
|
/PHP-5.4/sapi/fpm/fpm/ |
H A D | fpm_main.c | 499 uint read_bytes = 0; in sapi_cgi_read_post() local 503 while (read_bytes < count_bytes) { in sapi_cgi_read_post() 522 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post() 524 tmp_read_bytes = read(request_body_fd, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post() 529 read_bytes += tmp_read_bytes; in sapi_cgi_read_post() 531 return read_bytes; in sapi_cgi_read_post()
|
/PHP-5.4/ext/mcrypt/ |
H A D | mcrypt.c | 1407 size_t read_bytes = 0; in PHP_FUNCTION() 1415 while (read_bytes < size) { in PHP_FUNCTION() 1416 n = read(fd, iv + read_bytes, size - read_bytes); in PHP_FUNCTION() 1420 read_bytes += n; in PHP_FUNCTION() 1422 n = read_bytes; in PHP_FUNCTION()
|
/PHP-5.4/sapi/apache/ |
H A D | mod_php5.c | 127 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.4/sapi/apache_hooks/ |
H A D | mod_php5.c | 272 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 72 milliseconds