From: Wez Furlong Date: Fri, 12 Aug 2005 23:59:59 +0000 (+0000) Subject: what they totally screw up on one hand, MS compilers almost compensate with on X-Git-Tag: PRE_NEW_OCI8_EXTENSION~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b7d0703581f34211d28ca6a3d61bc64276a08dd;p=php what they totally screw up on one hand, MS compilers almost compensate with on the other. --- diff --git a/ext/standard/filters.c b/ext/standard/filters.c index bc38389033..27cdf06222 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -279,12 +279,13 @@ static php_stream_filter_status_t strfilter_strip_tags_filter( php_strip_tags_filter *inst = (php_strip_tags_filter *) thisfilter->abstract; while (buckets_in->head) { + bucket = php_stream_bucket_make_writeable(buckets_in->head TSRMLS_CC); + if (bucket->is_unicode) { /* Uh oh! */ return PSFS_ERR_FATAL; } - bucket = php_stream_bucket_make_writeable(buckets_in->head TSRMLS_CC); consumed = bucket->buf.str.len; bucket->buf.str.len = php_strip_tags(bucket->buf.str.val, bucket->buf.str.len, &(inst->state), (char *)inst->allowed_tags, inst->allowed_tags_len);