Searched refs:to_read (Results 1 – 5 of 5) sorted by relevance
/PHP-5.3/ext/mysqlnd/ |
H A D | mysqlnd_net.c | 67 size_t to_read = count, ret; in MYSQLND_METHOD() local 71 conn->net->stream->chunk_size = MIN(to_read, conn->net->options.net_read_buffer_size); in MYSQLND_METHOD() 72 while (to_read) { in MYSQLND_METHOD() 73 if (!(ret = php_stream_read(conn->net->stream, (char *) buffer, to_read))) { in MYSQLND_METHOD() 79 to_read -= ret; in MYSQLND_METHOD() 523 size_t to_read = count; in MYSQLND_METHOD() local 536 to_read -= to_read_from_buffer; in MYSQLND_METHOD() 538 DBG_INF_FMT("left %u to read", to_read); in MYSQLND_METHOD() 544 if (to_read) { in MYSQLND_METHOD() 575 DBG_RETURN(net->m.receive(conn, p, to_read TSRMLS_CC)); in MYSQLND_METHOD() [all …]
|
/PHP-5.3/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.3/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.3/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.3/ext/session/ |
H A D | session.c | 434 int to_read = PS(entropy_length); in php_session_create_id() 436 while (to_read > 0) { in php_session_create_id() 437 n = read(fd, rbuf, MIN(to_read, sizeof(rbuf))); in php_session_create_id() 453 to_read -= n; in php_session_create_id()
|
Completed in 20 milliseconds