summaryrefslogtreecommitdiff
path: root/main/php_streams.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-01-06 14:00:57 +0000
committerWez Furlong <wez@php.net>2003-01-06 14:00:57 +0000
commit52a3c29e22a63a5ed3c93be184898975b0eb4df1 (patch)
tree5ca7886e2bddd036d3df0e8e94bc6d778540f682 /main/php_streams.h
parent3d9c3c66627b89f054ffde4eb68e577a9f906051 (diff)
downloadphp-git-52a3c29e22a63a5ed3c93be184898975b0eb4df1.tar.gz
Fix for bug #21406; infinite loop during filter flushing.
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-xmain/php_streams.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/php_streams.h b/main/php_streams.h
index 783d84462d..afd74f4521 100755
--- a/main/php_streams.h
+++ b/main/php_streams.h
@@ -213,11 +213,11 @@ struct _php_stream_filter {
: (stream)->ops->read((stream), (buf), (size) TSRMLS_CC)
#define php_stream_filter_flush_next(stream, thisfilter, closing) \
- (thisfilter)->next ? (thisfilter)->next->fops->flush((stream), (thisfilter), (closing) TSRMLS_CC) \
+ (thisfilter)->next ? (thisfilter)->next->fops->flush((stream), (thisfilter)->next, (closing) TSRMLS_CC) \
: (stream)->ops->flush((stream) TSRMLS_CC)
#define php_stream_filter_eof_next(stream, thisfilter) \
- (thisfilter)->next ? (thisfilter)->next->fops->eof((stream), (thisfilter) TSRMLS_CC) \
+ (thisfilter)->next ? (thisfilter)->next->fops->eof((stream), (thisfilter)->next TSRMLS_CC) \
: (stream)->ops->read((stream), NULL, 0 TSRMLS_CC) == EOF ? 1 : 0
#define PHP_STREAM_FLAG_NO_SEEK 1