diff options
author | Sara Golemon <pollita@php.net> | 2004-04-01 03:52:34 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2004-04-01 03:52:34 +0000 |
commit | fac9416797aec0a59fbe34b8fe9187c198e9b61e (patch) | |
tree | 7587200c6ec8a334af3755706df3aea80f2b90c4 | |
parent | 1d5a6d3f9f0c8547722de1afa06bc46e88a3c0cb (diff) | |
download | php-git-fac9416797aec0a59fbe34b8fe9187c198e9b61e.tar.gz |
Only wind filters when appending to the read chain.
-rw-r--r-- | main/streams/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/filter.c b/main/streams/filter.c index 708889f97c..7e6df8663c 100644 --- a/main/streams/filter.c +++ b/main/streams/filter.c @@ -311,7 +311,7 @@ PHPAPI void php_stream_filter_append(php_stream_filter_chain *chain, php_stream_ 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; |