Browse Source

Only wind filters when appending to the read chain.

PEAR_1_4DEV
Sara Golemon 22 years ago
parent
commit
fac9416797
  1. 2
      main/streams/filter.c

2
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;

Loading…
Cancel
Save