pollita Wed Mar 31 22:52:35 2004 EDT
Modified files:
/php-src/main/streams filter.c
Log:
Only wind filters when appending to the read chain.
http://cvs.php.net/diff.php/php-src/main/streams/filter.c?r1=1.10&r2=1.11&ty=u
Index: php-src/main/streams/filter.c
diff -u php-src/main/streams/filter.c:1.10 php-src/main/streams/filter.c:1.11
--- php-src/main/streams/filter.c:1.10 Wed Mar 31 18:48:59 2004
+++ php-src/main/streams/filter.c Wed Mar 31 22:52:34 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filter.c,v 1.10 2004/03/31 23:48:59 pollita Exp $ */
+/* $Id: filter.c,v 1.11 2004/04/01 03:52:34 pollita Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -311,7 +311,7 @@
chain->tail = filter;
filter->chain = chain;
- if ((stream->writepos - stream->readpos) > 0) {
+ if (&(stream->readfilters) == chain && (stream->writepos - stream->readpos) >
0) {
/* Let's going ahead and wind anything in the buffer through this
filter */
php_stream_bucket_brigade brig_in = { NULL, NULL }, brig_out = { NULL,
NULL };
php_stream_bucket_brigade *brig_inp = &brig_in, *brig_outp = &brig_out;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php