Searched refs:to_read (Results 1 – 8 of 8) sorted by relevance
/PHP-7.4/sapi/cli/ |
H A D | php_http_parser.c | 264 size_t to_read; in php_http_parser_execute() local 1386 if (to_read > 0) { in php_http_parser_execute() 1388 p += to_read - 1; in php_http_parser_execute() 1389 parser->content_length -= to_read; in php_http_parser_execute() 1399 to_read = pe - p; in php_http_parser_execute() 1400 if (to_read > 0) { in php_http_parser_execute() 1402 p += to_read - 1; in php_http_parser_execute() 1473 if (to_read > 0) { in php_http_parser_execute() 1475 p += to_read - 1; in php_http_parser_execute() 1478 if (to_read == (size_t)parser->content_length) { in php_http_parser_execute() [all …]
|
/PHP-7.4/ext/mysqlnd/ |
H A D | mysqlnd_protocol_frame_codec.c | 320 size_t to_read = count; in MYSQLND_METHOD() local 327 …from_buffer = MIN(pfc->data->uncompressed_data->bytes_left(pfc->data->uncompressed_data), to_read); in MYSQLND_METHOD() 332 to_read -= to_read_from_buffer; in MYSQLND_METHOD() 334 DBG_INF_FMT("left "MYSQLND_SZ_T_SPEC" to read", to_read); in MYSQLND_METHOD() 340 if (to_read) { in MYSQLND_METHOD() 371 DBG_RETURN(pfc->data->m.receive(pfc, vio, p, to_read, conn_stats, error_info)); in MYSQLND_METHOD() 376 DBG_RETURN(vio->data->m.network_read(vio, p, to_read, conn_stats, error_info)); in MYSQLND_METHOD()
|
H A D | mysqlnd_vio.c | 82 size_t to_read = count; in MYSQLND_METHOD() local 88 while (to_read) { in MYSQLND_METHOD() 89 ssize_t ret = php_stream_read(net_stream, (char *) p, to_read); in MYSQLND_METHOD() 96 to_read -= ret; in MYSQLND_METHOD() 98 MYSQLND_INC_CONN_STATISTIC_W_VALUE(stats, STAT_BYTES_RECEIVED, count - to_read); in MYSQLND_METHOD()
|
/PHP-7.4/ext/phar/ |
H A D | dirstream.c | 94 size_t to_read; in phar_dir_read() local 104 to_read = MIN(ZSTR_LEN(str_key), count); in phar_dir_read() 106 if (to_read == 0 || count < ZSTR_LEN(str_key)) { in phar_dir_read() 111 memcpy(((php_stream_dirent *) buf)->d_name, ZSTR_VAL(str_key), to_read); in phar_dir_read() 112 ((php_stream_dirent *) buf)->d_name[to_read + 1] = '\0'; in phar_dir_read()
|
/PHP-7.4/ext/session/ |
H A D | mod_files.c | 505 unsigned int to_read = ZSTR_LEN(*val) > UINT_MAX ? UINT_MAX : (unsigned int)ZSTR_LEN(*val); in PS_READ_FUNC() local 510 read_in = _read(data->fd, buf, to_read); in PS_READ_FUNC() 514 …to_read = read_in > -1 ? (ZSTR_LEN(*val) - n > UINT_MAX ? UINT_MAX : (unsigned int)(ZSTR_LEN(*val)… in PS_READ_FUNC()
|
/PHP-7.4/ext/bz2/ |
H A D | bz2.c | 144 int to_read = (int)(remain <= INT_MAX ? remain : INT_MAX); in php_bz2iop_read() local 146 just_read = BZ2_bzread(self->bz_file, buf, to_read); in php_bz2iop_read()
|
/PHP-7.4/ext/standard/ |
H A D | streamsfuncs.c | 371 zend_long to_read = 0; in PHP_FUNCTION() local 378 Z_PARAM_LONG(to_read) in PHP_FUNCTION() 390 if (to_read <= 0) { in PHP_FUNCTION() 395 read_buf = zend_string_alloc(to_read, 0); in PHP_FUNCTION() 397 recvd = php_stream_xport_recvfrom(stream, ZSTR_VAL(read_buf), to_read, (int)flags, NULL, NULL, in PHP_FUNCTION()
|
/PHP-7.4/sapi/cgi/ |
H A D | cgi_main.c | 492 unsigned int to_read = (diff > UINT_MAX) ? UINT_MAX : (unsigned int)diff; in sapi_cgi_read_post() local 494 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, to_read); in sapi_cgi_read_post() 518 int to_read = (diff > INT_MAX) ? INT_MAX : (int)diff; in sapi_fcgi_read_post() local 520 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, to_read); in sapi_fcgi_read_post()
|
Completed in 61 milliseconds