wez Tue Mar 18 17:25:03 2003 EDT Modified files: (Branch: PHP_4_3) /php4/main streams.c Log: WS Fix: I forgot to apply Q} to my comment. Index: php4/main/streams.c diff -u php4/main/streams.c:1.125.2.42 php4/main/streams.c:1.125.2.43 --- php4/main/streams.c:1.125.2.42 Tue Mar 18 11:39:06 2003 +++ php4/main/streams.c Tue Mar 18 17:25:02 2003 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.125.2.42 2003/03/18 16:39:06 wez Exp $ */ +/* $Id: streams.c,v 1.125.2.43 2003/03/18 22:25:02 wez Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -1136,12 +1136,12 @@ } #endif - /* 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 {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php