Home
last modified time | relevance | path

Searched refs:to_read (Results 1 – 7 of 7) sorted by relevance

/PHP-8.0/sapi/cli/
H A Dphp_http_parser.c264 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-8.0/ext/mysqlnd/
H A Dmysqlnd_protocol_frame_codec.c318 size_t to_read = count; in MYSQLND_METHOD() local
325 …from_buffer = MIN(pfc->data->uncompressed_data->bytes_left(pfc->data->uncompressed_data), to_read); in MYSQLND_METHOD()
330 to_read -= to_read_from_buffer; in MYSQLND_METHOD()
332 DBG_INF_FMT("left "MYSQLND_SZ_T_SPEC" to read", to_read); in MYSQLND_METHOD()
338 if (to_read) { in MYSQLND_METHOD()
369 DBG_RETURN(pfc->data->m.receive(pfc, vio, p, to_read, conn_stats, error_info)); in MYSQLND_METHOD()
374 DBG_RETURN(vio->data->m.network_read(vio, p, to_read, conn_stats, error_info)); in MYSQLND_METHOD()
H A Dmysqlnd_vio.c80 size_t to_read = count; in MYSQLND_METHOD() local
86 while (to_read) { in MYSQLND_METHOD()
87 ssize_t ret = php_stream_read(net_stream, (char *) p, to_read); in MYSQLND_METHOD()
94 to_read -= ret; in MYSQLND_METHOD()
96 MYSQLND_INC_CONN_STATISTIC_W_VALUE(stats, STAT_BYTES_RECEIVED, count - to_read); in MYSQLND_METHOD()
/PHP-8.0/ext/session/
H A Dmod_files.c503 unsigned int to_read = ZSTR_LEN(*val) > UINT_MAX ? UINT_MAX : (unsigned int)ZSTR_LEN(*val); in PS_READ_FUNC() local
508 read_in = _read(data->fd, buf, to_read); in PS_READ_FUNC()
512to_read = read_in > -1 ? (ZSTR_LEN(*val) - n > UINT_MAX ? UINT_MAX : (unsigned int)(ZSTR_LEN(*val)… in PS_READ_FUNC()
/PHP-8.0/ext/bz2/
H A Dbz2.c76 int to_read = (int)(remain <= INT_MAX ? remain : INT_MAX); in php_bz2iop_read() local
78 just_read = BZ2_bzread(self->bz_file, buf, to_read); in php_bz2iop_read()
/PHP-8.0/ext/standard/
H A Dstreamsfuncs.c384 zend_long to_read = 0; in PHP_FUNCTION() local
391 Z_PARAM_LONG(to_read) in PHP_FUNCTION()
403 if (to_read <= 0) { in PHP_FUNCTION()
408 read_buf = zend_string_alloc(to_read, 0); in PHP_FUNCTION()
410 recvd = php_stream_xport_recvfrom(stream, ZSTR_VAL(read_buf), to_read, (int)flags, NULL, NULL, in PHP_FUNCTION()
/PHP-8.0/sapi/cgi/
H A Dcgi_main.c488 unsigned int to_read = (diff > UINT_MAX) ? UINT_MAX : (unsigned int)diff; in sapi_cgi_read_post() local
490 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, to_read); in sapi_cgi_read_post()
514 int to_read = (diff > INT_MAX) ? INT_MAX : (int)diff; in sapi_fcgi_read_post() local
516 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, to_read); in sapi_fcgi_read_post()

Completed in 34 milliseconds