iliaa                                    Thu, 23 Jul 2009 12:18:40 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=284646

Log:
Fixed bug #49014 (dechunked filter broken when serving more than 8192 bytes in
a chunk)

# Original patch by andreas dot streichardt at globalpark dot com

Bug: http://bugs.php.net/49014 (Open) dechunked filter broken when serving more 
than 8192 bytes in a chunk
      
Changed paths:
    U   php/php-src/branches/PHP_5_3/NEWS
    U   php/php-src/branches/PHP_5_3/ext/standard/filters.c
    U   php/php-src/trunk/ext/standard/filters.c

Modified: php/php-src/branches/PHP_5_3/NEWS
===================================================================
--- php/php-src/branches/PHP_5_3/NEWS   2009-07-23 11:49:41 UTC (rev 284645)
+++ php/php-src/branches/PHP_5_3/NEWS   2009-07-23 12:18:40 UTC (rev 284646)
@@ -16,6 +16,8 @@
   (Ilia)
 - Fixed bug #48929 (Double \r\n after HTTP headers when "header" context
   option is an array). (David Zülke)
+- Fixed bug #49014 (dechunked filter broken when serving more than 8192 bytes 
in
+  a chunk) (andreas dot streichardt at globalpark dot com, Ilia)
 - Fixed bug #48899 (is_callable returns true even if method does not exist in
   parent class). (Felipe)
 - Fixed bug #48893 (Problems compiling with Curl). (Felipe)

Modified: php/php-src/branches/PHP_5_3/ext/standard/filters.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/filters.c 2009-07-23 11:49:41 UTC 
(rev 284645)
+++ php/php-src/branches/PHP_5_3/ext/standard/filters.c 2009-07-23 12:18:40 UTC 
(rev 284646)
@@ -2007,6 +2007,7 @@
                                                memmove(out, p, end - p);
                                        }
                                        data->chunk_size -= end - p;
+                                       data->state=CHUNK_BODY;
                                        out_len += end - p;
                                        return out_len;
                                }

Modified: php/php-src/trunk/ext/standard/filters.c
===================================================================
--- php/php-src/trunk/ext/standard/filters.c    2009-07-23 11:49:41 UTC (rev 
284645)
+++ php/php-src/trunk/ext/standard/filters.c    2009-07-23 12:18:40 UTC (rev 
284646)
@@ -2088,6 +2088,7 @@
                                                memmove(out, p, end - p);
                                        }
                                        data->chunk_size -= end - p;
+                                       data->state=CHUNK_BODY;
                                        out_len += end - p;
                                        return out_len;
                                }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to