dmitry          Fri Feb 20 10:38:40 2004 EDT

  Modified files:              
    /php-src/ext/soap   php_http.c 
  Log:
  BUGFIX: bug in HTTP chunked encoding was fixed
  
  
http://cvs.php.net/diff.php/php-src/ext/soap/php_http.c?r1=1.44&r2=1.45&ty=u
Index: php-src/ext/soap/php_http.c
diff -u php-src/ext/soap/php_http.c:1.44 php-src/ext/soap/php_http.c:1.45
--- php-src/ext/soap/php_http.c:1.44    Thu Feb 19 11:49:50 2004
+++ php-src/ext/soap/php_http.c Fri Feb 20 10:38:39 2004
@@ -17,7 +17,7 @@
   |          Dmitry Stogov <[EMAIL PROTECTED]>                             |
   +----------------------------------------------------------------------+
 */
-/* $Id: php_http.c,v 1.44 2004/02/19 16:49:50 dmitry Exp $ */
+/* $Id: php_http.c,v 1.45 2004/02/20 15:38:39 dmitry Exp $ */
 
 #include "php_soap.h"
 #include "ext/standard/base64.h"
@@ -662,11 +662,11 @@
                while (!done) {
                        int buf_size = 0;
 
-                       php_stream_gets(stream, chunk_size, sizeof(chunk_size));       
         
+                       php_stream_gets(stream, chunk_size, sizeof(chunk_size));
                        if (sscanf(chunk_size, "%x", &buf_size) > 0 ) {
                                if (buf_size > 0) {
                                        int len_size = 0;
-               
+
                                        http_buf = erealloc(http_buf, http_buf_size + 
buf_size + 1);
 
                                        while (len_size < buf_size) {
@@ -677,14 +677,14 @@
                                                  break;
                                                }
                                                len_size += len_read;
-                                               http_buf_size += len_size;
+                                               http_buf_size += len_read;
                                        }
                                }
-                               
+
                                /* Eat up '\r' '\n' */
                                php_stream_getc(stream);
                                php_stream_getc(stream);
-                       } else {                                
+                       } else {
                                /* Somthing wrong in chunked encoding */
                                efree(http_buf);
                                return FALSE;

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

Reply via email to