]> granicus.if.org Git - php/commitdiff
Fix for bug #21406; infinite loop during filter flushing.
authorWez Furlong <wez@php.net>
Mon, 6 Jan 2003 14:00:57 +0000 (14:00 +0000)
committerWez Furlong <wez@php.net>
Mon, 6 Jan 2003 14:00:57 +0000 (14:00 +0000)
main/php_streams.h

index 783d84462d9563a129c3b70d1b26d33fb3e617bd..afd74f4521adc465749c7939b70439f010f4aa15 100755 (executable)
@@ -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