Home
last modified time | relevance | path

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

/PHP-5.5/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 …]
H A Dpassword.c137 size_t read_bytes = 0; in php_password_make_salt() local
140 while (read_bytes < raw_length) { in php_password_make_salt()
141 n = read(fd, buffer + read_bytes, raw_length - read_bytes); in php_password_make_salt()
145 read_bytes += (size_t) n; in php_password_make_salt()
149 if (read_bytes >= raw_length) { in php_password_make_salt()
/PHP-5.5/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.5/main/
H A DSAPI.c262 int read_bytes; in SAPI_POST_READER_FUNC() local
273read_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 Drfc1867.c656 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.5/sapi/cgi/
H A Dcgi_main.c508 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.5/sapi/fpm/fpm/
H A Dfpm_main.c499 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.5/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.5/ext/mcrypt/
H A Dmcrypt.c1426 size_t read_bytes = 0; in PHP_FUNCTION()
1437 while (read_bytes < size) { in PHP_FUNCTION()
1438 n = read(*fd, iv + read_bytes, size - read_bytes); in PHP_FUNCTION()
1442 read_bytes += n; in PHP_FUNCTION()
1444 n = read_bytes; in PHP_FUNCTION()
/PHP-5.5/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 64 milliseconds