wez Mon Jul 12 16:59:24 2004 EDT Modified files: /php-src/main/streams streams.c Log: Fix file_get_contents() bug... http://cvs.php.net/diff.php/php-src/main/streams/streams.c?r1=1.59&r2=1.60&ty=u Index: php-src/main/streams/streams.c diff -u php-src/main/streams/streams.c:1.59 php-src/main/streams/streams.c:1.60 --- php-src/main/streams/streams.c:1.59 Sat Jul 10 06:54:09 2004 +++ php-src/main/streams/streams.c Mon Jul 12 16:59:24 2004 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.59 2004/07/10 10:54:09 wez Exp $ */ +/* $Id: streams.c,v 1.60 2004/07/12 20:59:24 wez Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -1231,6 +1231,8 @@ *buf = perealloc_rel_orig(*buf, max_len + step, persistent); max_len += step; ptr = *buf + len; + } else { + ptr += ret; } } if (len) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php