mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix for bug #21406; infinite loop during filter flushing.
This commit is contained in:
parent
3d9c3c6662
commit
52a3c29e22
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue