Searched refs:to_read (Results 1 – 6 of 6) sorted by relevance
/PHP-5.4/sapi/cli/ |
H A D | php_http_parser.c | 330 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.4/ext/mysqlnd/ |
H A D | mysqlnd_net.c | 70 size_t to_read = count, ret; in MYSQLND_METHOD() local 77 net->stream->chunk_size = MIN(to_read, net->options.net_read_buffer_size); in MYSQLND_METHOD() 78 while (to_read) { in MYSQLND_METHOD() 79 if (!(ret = php_stream_read(net->stream, (char *) p, to_read))) { in MYSQLND_METHOD() 85 to_read -= ret; in MYSQLND_METHOD() 87 MYSQLND_INC_CONN_STATISTIC_W_VALUE(stats, STAT_BYTES_RECEIVED, count - to_read); in MYSQLND_METHOD() 588 size_t to_read = count; in MYSQLND_METHOD() local 600 to_read -= to_read_from_buffer; in MYSQLND_METHOD() 602 DBG_INF_FMT("left %u to read", to_read); in MYSQLND_METHOD() 608 if (to_read) { in MYSQLND_METHOD() [all …]
|
/PHP-5.4/ext/phar/ |
H A D | dirstream.c | 95 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.4/sapi/apache2filter/ |
H A D | sapi_apache2.c | 159 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.4/ext/standard/ |
H A D | streamsfuncs.c | 360 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.4/ext/session/ |
H A D | session.c | 370 int to_read = PS(entropy_length); in php_session_create_id() 372 while (to_read > 0) { in php_session_create_id() 373 n = read(fd, rbuf, MIN(to_read, sizeof(rbuf))); in php_session_create_id() 389 to_read -= n; in php_session_create_id()
|
Completed in 42 milliseconds