diff options
Diffstat (limited to 'main/streams/filter.c')
| -rw-r--r-- | main/streams/filter.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/main/streams/filter.c b/main/streams/filter.c index abe8d7e7b..1e9fc334e 100644 --- a/main/streams/filter.c +++ b/main/streams/filter.c @@ -2,12 +2,12 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2005 The PHP Group | + | Copyright (c) 1997-2006 The PHP Group | +----------------------------------------------------------------------+ - | This source file is subject to version 3.0 of the PHP license, | + | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | - | http://www.php.net/license/3_0.txt. | + | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: filter.c,v 1.17 2005/08/03 14:08:40 sniper Exp $ */ +/* $Id: filter.c,v 1.17.2.2 2006/01/10 16:14:16 iliaa Exp $ */ #include "php.h" #include "php_globals.h" @@ -204,6 +204,10 @@ PHPAPI void php_stream_bucket_prepend(php_stream_bucket_brigade *brigade, php_st PHPAPI void php_stream_bucket_append(php_stream_bucket_brigade *brigade, php_stream_bucket *bucket TSRMLS_DC) { + if (brigade->tail == bucket) { + return; + } + bucket->prev = brigade->tail; bucket->next = NULL; |
