Home
last modified time | relevance | path

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

/PHP-5.5/sapi/cli/
H A Dphp_http_parser.c330 size_t to_read; in php_http_parser_execute() local
1435 if (to_read > 0) { in php_http_parser_execute()
1437 p += to_read - 1; in php_http_parser_execute()
1438 parser->content_length -= to_read; in php_http_parser_execute()
1448 to_read = pe - p; in php_http_parser_execute()
1449 if (to_read > 0) { in php_http_parser_execute()
1451 p += to_read - 1; in php_http_parser_execute()
1521 if (to_read > 0) { in php_http_parser_execute()
1523 p += to_read - 1; in php_http_parser_execute()
1526 if (to_read == parser->content_length) { in php_http_parser_execute()
[all …]
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd_net.c72 size_t to_read = count, ret; in MYSQLND_METHOD() local
78 net_stream->chunk_size = MIN(to_read, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
79 while (to_read) { in MYSQLND_METHOD()
80 if (!(ret = php_stream_read(net_stream, (char *) p, to_read))) { in MYSQLND_METHOD()
86 to_read -= ret; in MYSQLND_METHOD()
88 MYSQLND_INC_CONN_STATISTIC_W_VALUE(stats, STAT_BYTES_RECEIVED, count - to_read); in MYSQLND_METHOD()
626 size_t to_read = count; in MYSQLND_METHOD() local
638 to_read -= to_read_from_buffer; in MYSQLND_METHOD()
640 DBG_INF_FMT("left "MYSQLND_SZ_T_SPEC" to read", to_read); in MYSQLND_METHOD()
646 if (to_read) { in MYSQLND_METHOD()
[all …]
/PHP-5.5/ext/phar/
H A Ddirstream.c95 size_t to_read; in phar_dir_read() local
112 to_read = MIN(keylen, count); in phar_dir_read()
114 if (to_read == 0 || count < keylen) { in phar_dir_read()
120 memcpy(((php_stream_dirent *) buf)->d_name, str_key, to_read); in phar_dir_read()
122 ((php_stream_dirent *) buf)->d_name[to_read + 1] = '\0'; in phar_dir_read()
/PHP-5.5/sapi/apache2filter/
H A Dsapi_apache2.c159 int to_read; in php_apache_sapi_read_post() local
162 to_read = ctx->post_len - ctx->post_idx; in php_apache_sapi_read_post()
163 n = MIN(to_read, count_bytes); in php_apache_sapi_read_post()
/PHP-5.5/ext/standard/
H A Dstreamsfuncs.c360 long to_read = 0; in PHP_FUNCTION() local
365 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|lz", &zstream, &to_read, &flags, &zremote… in PHP_FUNCTION()
376 if (to_read <= 0) { in PHP_FUNCTION()
381 read_buf = safe_emalloc(1, to_read, 1); in PHP_FUNCTION()
383 recvd = php_stream_xport_recvfrom(stream, read_buf, to_read, flags, NULL, NULL, in PHP_FUNCTION()
/PHP-5.5/ext/session/
H A Dsession.c376 int to_read = PS(entropy_length); in php_session_create_id()
378 while (to_read > 0) { in php_session_create_id()
379 n = read(fd, rbuf, MIN(to_read, sizeof(rbuf))); in php_session_create_id()
395 to_read -= n; in php_session_create_id()

Completed in 37 milliseconds