tony2001 Wed Oct 5 13:18:09 2005 EDT Modified files: /php-src/main/streams streams.c Log: fix bugs #34743 & #34118 (fseek/fread unicode related problems in HEAD) patch by Alex http://cvs.php.net/diff.php/php-src/main/streams/streams.c?r1=1.87&r2=1.88&ty=u Index: php-src/main/streams/streams.c diff -u php-src/main/streams/streams.c:1.87 php-src/main/streams/streams.c:1.88 --- php-src/main/streams/streams.c:1.87 Mon Aug 22 10:48:25 2005 +++ php-src/main/streams/streams.c Wed Oct 5 13:18:06 2005 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.87 2005/08/22 14:48:25 dmitry Exp $ */ +/* $Id: streams.c,v 1.88 2005/10/05 17:18:06 tony2001 Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -855,6 +855,8 @@ *pnum_chars = num_chars; *pis_unicode = is_unicode; + stream->position += num_bytes; + if (num_chars == 0 && grow_mode) { efree(buf); buf = NULL;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php