]> granicus.if.org Git - php/commitdiff
what they totally screw up on one hand, MS compilers almost compensate with on
authorWez Furlong <wez@php.net>
Fri, 12 Aug 2005 23:59:59 +0000 (23:59 +0000)
committerWez Furlong <wez@php.net>
Fri, 12 Aug 2005 23:59:59 +0000 (23:59 +0000)
the other.

ext/standard/filters.c

index bc38389033671cd59b5f50fa22fadc7486127f94..27cdf062227a06eabf6b400750ae1f74f7c68ec6 100644 (file)
@@ -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);