diff options
author | Wez Furlong <wez@php.net> | 2003-03-18 22:26:02 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-03-18 22:26:02 +0000 |
commit | 6a8765100606837933bf09ec7bde70e01b36cca9 (patch) | |
tree | 20b42b25904f464289eb31c089e6034a299ab215 | |
parent | 4529fb344cfc873a5db07fd017cde986b38cc478 (diff) | |
download | php-git-6a8765100606837933bf09ec7bde70e01b36cca9.tar.gz |
Q}
-rwxr-xr-x | main/streams/streams.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c index 72d75c4019..e2ff0bd709 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1131,12 +1131,12 @@ PHPAPI size_t _php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen } } - /* avoid many reallocs by allocating a good sized chunk to begin with, if we can. - * Note that the stream may be filtered, in which case the stat result may be inaccurate, - * as the filter may inflate or deflate the number of bytes that we can read. - * In order to avoid an upsize followed by a downsize of the buffer, overestimate by the - * step size (which is 2K). - * */ + /* avoid many reallocs by allocating a good sized chunk to begin with, if + * we can. Note that the stream may be filtered, in which case the stat + * result may be inaccurate, as the filter may inflate or deflate the + * number of bytes that we can read. In order to avoid an upsize followed + * by a downsize of the buffer, overestimate by the step size (which is + * 2K). */ if (php_stream_stat(src, &ssbuf) == 0 && ssbuf.sb.st_size > 0) { max_len = ssbuf.sb.st_size + step; } else { |