summaryrefslogtreecommitdiff
path: root/main/streams/filter.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-01-26 22:47:35 +0100
committerBob Weinand <bobwei9@hotmail.com>2015-01-26 22:47:35 +0100
commitb8461eb9ac6683ff398ac556e2ed1bffd8e591a5 (patch)
treef407df25b9ed31005a4ecf56913e6be442abff23 /main/streams/filter.c
parentd065a2fc1baa01fa8788c9fb2811ce7707cf5088 (diff)
downloadphp-git-b8461eb9ac6683ff398ac556e2ed1bffd8e591a5.tar.gz
Fix call after close if multiple filters are attached
Diffstat (limited to 'main/streams/filter.c')
-rw-r--r--main/streams/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/filter.c b/main/streams/filter.c
index fa29c0f6e2..f349be4914 100644
--- a/main/streams/filter.c
+++ b/main/streams/filter.c
@@ -449,7 +449,7 @@ PHPAPI int _php_stream_filter_flush(php_stream_filter *filter, int finish TSRMLS
for(current = filter; current; current = current->next) {
php_stream_filter_status_t status;
- status = filter->fops->filter(stream, filter, inp, outp, NULL, flags TSRMLS_CC);
+ status = filter->fops->filter(stream, current, inp, outp, NULL, flags TSRMLS_CC);
if (status == PSFS_FEED_ME) {
/* We've flushed the data far enough */
return SUCCESS;